Use this command to set a list of default next-hop IPv6 addresses. If more than one IPv6 address is specified, the first next hop specified that appears to be adjacent to the router is used. The other specified IPv6 addresses are tried in turn.
| Format | set ipv6 default next-hop [interface slot/port | vlan link-local address] ipv6-address […ipv6-address] |
| Mode | Route Map Configuration |
| Parameter | Description |
|---|---|
| ipv6-address | The Global IPv6 address of the next hop to which packets are output. It must be the address of an adjacent router. |
| Interface | When the user wants to specify an IPv6 next hop using the link local address - then the interface key word needs to be used. The user can then specify the link-local address along with the interface. A maximum of 4 next-hop global IPv6 addresses and a link-local address can be specified in this 'set' clause. The link-local next hop is prioritized over the global next-hops. |
Usage Guidelines
A packet is routed to the next hop specified by the set ipv6 default next-hop command only if there is no explicit route for the packet's destination address in the routing table. A default route in the routing table is not considered an explicit route for an unknown destination address.
In a route-map statement, set ipv6 next-hop and set ipv6 default next-hop terms are mutually exclusive.However, a set ipv6 next-hop can be configured in a separate route-map statement
When a set ipv6 default next-hop is configured in a route-map and applied on an interface, if a default route is present in the system, it is expected that packets matching route-map rules are still policy route. This is because a default route is not considered explicit route to destination.
Example:
(Routing)(config-route-map)# set ipv6 default next-hop 2002::2