The ipv6 preference command configures the preference of IPv6 routes generated by the IS-IS protocol.
The undo ipv6 preference command restores the default reference of IPv6 routes generated by the IS-IS protocol.
By default, the preference of IPv6 routes generated by the IS-IS protocol is 15.
Parameter | Description | Value |
---|---|---|
route-policy route-policy-name | Specifies the name of a route-policy. | The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
preference | Specifies the preference of IPv6 routes generated by the IS-IS. A smaller value indicates a higher priority. | The value is an integer that ranges from 1 to 255. |
Usage Scenario
The routing policy can be used to set the preference for the filtered routes. If the preference is set, only the routes that pass the route-policy can apply the preference specified by this command; otherwise, routes apply the default value of the preference.
Multiple dynamic routing protocols can be run on a switch at the same time. To properly select routes, the system sets a default preference for each routing protocol. If different protocols find routes to the same destination, the route of the protocol with a higher priority is preferred.
The ipv6 preference command can take effect only after IPv6 is enabled for the IS-IS process by the ipv6 enable command.
Precautions
Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, the configured priority applies to all IS-IS IPv6 routes.