Users Guide

Ensure that the anycast IPv4 or IPv6 address is different from the primary IPv4 or IPv6 address, respectively. For IPv6, you
can configure more than one primary IP address. Even when more than one primary IPv6 addresses or subnets are
configured, you can only configure one IPv6 address as gateway IP address.
To ping an IPv6 host present in a remote VLAN, use the ping -I command and specify the interface IP address. The -I
option is not required when you ping an IPv6 local host in a VLAN. For more information, see ping.
Configure anycast IP for a VLAN
To configure anycast gateway routing for a VLAN:
1. Configure the anycast gateway MAC address in GLOBAL CONFIGURATION mode. All virtual addresses on all VLAN
interfaces resolve to this MAC address.
NOTE: Only unicast MAC addresses are accepted
ip virtual-router mac-address mac-address
2. Configure a primary IPv4 or IPv6 address for the VLAN interface in INTERFACE-VLAN mode.
ip address A.B.C.D/mask
ipv6 address A:B/prefix-length
3. Configure an IPv4 or IPv6 anycast address for the VLAN interface in INTERFACE-VLAN mode.
ip virtual-router address ipv4address
ipv6 virtual-router address ipv6address
Configure IPv4 anycast gateway on VLAN interface
OS10# configure terminal
OS10(config)# ip virtual-router mac-address 00:01:01:01:01:01
OS10(config)# interface vlan 100
OS10(conf-if-vl-100)# ip address 10.10.10.1/24
OS10(conf-if-vl-100)# ip virtual-router address 10.10.10.3
Configure IPv6 anycast gateway on VLAN interface
OS10# configure terminal
OS10(config)# ip virtual-router mac-address 00:01:01:01:01:01
OS10(config)# interface vlan 100
OS10(conf-if-vl-100)# ipv6 address 3001::1/64
OS10(conf-if-vl-100)# ipv6 virtual-router address 3001::3
650
Layer 2