Configures the IPv6 address of the default gateway on a VLAN.
VLAN configuration mode
If a management VLAN is not configured, the device can have only one IPv6 default gateway in the global configuration.
If a management VLAN is configured, the device can have a maximum of 5 IPv6 default gateways, with an optional metric (1 through 5), under the management VLAN. Multiple gateways can have the same metric value.
Configured gateway addresses and the default gateway address must be in same subnet.
The best default gateway is first chosen as the device whose neighbors are reachable (in the REACH state), in the sequence of metric values. Otherwise, the gateway with the highest priority (the lowest metric value) is chosen.
If a static default gateway is configured, that gateway takes precedence over the best default gateway configured by means of RA. If the static default-gateway configuration is removed, the best default gateway learned by RA is restored.
Use the no form of the command to remove the IPv6 address and disable the default gateway.
Selection of the best default router among configured IPv6 routers occurs under the following conditions:
The following example configures the maximum of 5 IPv6 default gateways with the management VLAN configuration, and specifies metrics for each.
device# configure terminal device(config)# vlan 66 device(config-vlan-66)# default-ipv6-gateway 2620:100:c:fe23:10:37:65:129 3 device(config-vlan-66)# default-ipv6-gateway 2620:100:c:fe23:10:37:65:129 2 device(config-vlan-66)# default-ipv6-gateway 2620:100:c:fe23:10:37:65:130 2 device(config-vlan-66)# default-ipv6-gateway 2620:100:c:fe23:10:37:65:131 1 device(config-vlan-66)# default-ipv6-gateway 2620:100:c:fe23:10:37:65:132 5
Use the show ipv6 command to confirm the configuration and view the best default gateway (router).
device(config)# show ipv6 Global Settings IPv6 is enabled Link-local address(es): fe80::768e:f8ff:fef9:6d80 [Preferred] Global unicast address(es): 2620:100:c:fe23:768e:f8ff:fef9:6d80 [Preferred], subnet is 2620:100:c:fe23::/64 Joined group address(es): ff02::1:fff9:6d80 ff02::1 Best Default Router : 2620:100:c:fe23:10:37:65:129 PMTUS : 0 MTU is 1500 bytes ND DAD is enabled, number of DAD attempts: 3 ND reachable time is 30000 miliseconds ND retransmit interval is 1000 miliseconds Current Hop Limit is 64 Hosts use stateless autoconfig for addresses No Inbound Access List Set No Outbound Access List Set No IPv6 Domain Name Set No IPv6 DNS Server Address set