379
Step Command
Remarks
5.
Set next hops.
apply ip-address next-hop
ip-address
[
direct
]
[
track
track-entry-number
]
[
ip-address
[
direct
]
[
track
track-entry-number
] ]
Optional.
You can specify two next hops at a
time.
•
For local PBR, both the two next
hops take effect to implement
load sharing.
•
For interface PBR, the first next
hop serves as the main next
hop and the second one serves
as the backup next hop.
6.
Set default next hops.
apply ip-address default next-hop
ip-address
[
track
track-entry-number
]
[
ip-address
[
track
track-entry-number
]
]
Optional.
You can specify two next hops at a
time.
•
For local PBR, both the two next
hops take effect to implement
load sharing.
•
For interface PBR, the first next
hop serves as the main next
hop and the second one serves
as the backup next hop.
Configuring local PBR
Only one policy can be referenced for local PBR.
To configure local PBR:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure local PBR based on a
policy.
ip local policy-based-route
policy-name
Not configured by default.
NOTE:
If the specified policy does not exist, the local PBR configuration succeeds, but it takes effect only when the
policy is created.
Configuring interface PBR
Only one policy can be referenced by an interface for interface PBR.
To configure interface PBR:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A