ip6-anycast-add-xe
ip6-anycast-add-xe
ip6-anycast-add-xe
An IPv6 anycast address is an address that is assigned to a set of interfaces that typically belong to different
nodes. Anycast addresses are syntactically indistinguishable from unicast addresses, because anycast addresses
are allocated from the unicast address space.
IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS XE Release 3S
1
IPv6 Anycast Address
How to Configure IPv6 Anycast Address
to more than one interface makes a unicast address an anycast address. Nodes to which the anycast address
is assigned must be explicitly configured to recognize that the address is an anycast address.
Note Anycast addresses can be used only by a device, not a host, and anycast addresses must not be used as the
source address of an IPv6 packet.
The figure below shows the format of the subnet device anycast address; the address has a prefix concatenated
by a series of zeros (the interface ID). The subnet device anycast address can be used to reach a device on the
link that is identified by the prefix in the subnet device anycast address.
1. enable
2. configure terminal
3. interface type number
4. tunnel mode ipv6ip [6rd | 6to4 | auto-tunnel | isatap]
5. tunnel source { ip address | ipv6-address | interface-type interface-number }
6. ipv6 address { ipv6-prefix/prefix-length | prefix-name sub-bits/prefix-length }
7. ipv6 address ipv6-prefix/prefix-length anycast
DETAILED STEPS
IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS XE Release 3S
2
IPv6 Anycast Address
Configuration Examples for IPv6 Anycast Address
Example:
Device# configure terminal
Step 3 interface type number Specifies an interface type and number, and places the
device in interface configuration mode.
Example:
Device(config)# interface tunnel0
Step 4 tunnel mode ipv6ip [6rd | 6to4 | auto-tunnel | isatap] Configures a static IPv6 tunnel interface.
Example:
Device(config-if)# tunnel mode ipv6ip 6to4
Step 5 tunnel source { ip address | ipv6-address | interface-type Sets the source address for a tunnel interface. The
interface-number } address used here is the one assigned to Ethernet
interface 1.
Example:
Device(config-if)# tunnel source GigabitEthernet1
Step 6 ipv6 address { ipv6-prefix/prefix-length | prefix-name Configures an IPv6 address and enables IPv6
sub-bits/prefix-length } processing on an interface.
Example:
Device(config-if)# ipv6 address 2001:db8:A00:1::1/64
Step 7 ipv6 address ipv6-prefix/prefix-length anycast Specifying the ipv6 address anycast command adds
an IPv6 anycast address.
Example:
Device(config-if)# ipv6 address 2002:db8:c058::/128
anycast
IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS XE Release 3S
3
IPv6 Anycast Address
Additional References for IPv6 Source Guard and Prefix Guard
interface gigabitethernet1
ip address 10.0.0.1 255.255.255.0
ip address 192.88.99.1 255.255.255.0 secondary
Standard/RFC Title
RFCs for IPv6 IPv6 RFCs
Technical Assistance
Description Link
The Cisco Support and Documentation website http://www.cisco.com/cisco/web/support/index.html
provides online resources to download documentation,
software, and tools. Use these resources to install and
configure the software and to troubleshoot and resolve
technical issues with Cisco products and technologies.
Access to most tools on the Cisco Support and
Documentation website requires a Cisco.com user ID
and password.
IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS XE Release 3S
4
IPv6 Anycast Address
Feature Information for IPv6 Anycast Address
IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS XE Release 3S
5
IPv6 Anycast Address
Feature Information for IPv6 Anycast Address
IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS XE Release 3S
6