8-11
Examples
# Set the maximum number of load balanced routes with equal cost to 2.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] maximum load-balancing 2
# Restore the default.
[Sysname-ripng-100] undo maximum load-balancing
preference
Syntax
preference
[
route-policy
route-policy-name
]
preference
undo preference
[
route-policy
]
View
RIPng view
Default Level
2: System level
Parameters
route-policy-name
: Name of a route policy, in the range of 1 to 19 characters.
preference
: RIPng route priority, in the range of 1 to 255.
Description
Use the
preference
command to specify the RIPng route preference.
Use the
undo preference
command to restore the default.
By default, the RIPng route preference is 100.
Using the
route-policy
keyword can set a preference for RIPng routes matching the specified
route policy:
z
The preference set by the route policy applies to all the matching RIPng routes, and the
preference set by the
preference
command applies to RIPng routes not matching the route
policy.
z
If no preference is set by the route policy, the preference set by the
preference
command
applies to all RIPng routes.
Examples
# Set the RIPng route preference to 120.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] preference 120
# Restore the default RIPng route preference.
[Sysname-ripng-100] undo preference