console(config)#ipv6 route 2020:1::1/64 2030:1::2
ipv6 route distance
Use the ipv6 route distance command in Global Configuration mode to set the default distance
(preference) for static routes. Lower route preference values are preferred when determining the
best route. The ipv6 route and ipv6 route default commands allow optional setting of the
distance of an individual static route. The default distance is used when no distance is specified
in these commands. Changing the default distance does not update the distance of existing
static routes, even if they were assigned the original default distance. The new default distance
is applied to static routes created after invoking the ipv6 route distance command.
Syntax
integer
ipv6 route distance
integer
no ipv6 route distance
integer — Specifies the distance (preference) of an individual static route. (Range 1-255)
•
Default Configuration
integer
Default value of
is 1.
Command Mode
Global Configuration mode
User Guidelines
Lower route distance values are preferred when determining the best route.
Example
The following example sets the default distance to 80.
console(config)#ipv6 route distance 80
ipv6 unicast-routing
Use the ipv6 unicast-routing command in Global Configuration mode to enable forwarding of
IPv6 unicast datagrams.
Syntax
ipv6 unicast-routing
no ipv6 unicast-routing
675
IPv6 Routing Commands