The ipv6 address anycast command configures an anycast IPv6 address.
The undo ipv6 address anycast command deletes an anycast IPv6 address.
By default, anycast IPv6 addresses are not configured.
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } anycast
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ]
| Parameter | Description | Value |
|---|---|---|
ipv6-address |
Specifies the prefix of an IPv6 address. |
The prefix is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
prefix-length |
Specifies the prefix length of an IPv6 address. |
The value is an integer that ranges from 1 to 128. Only the IPv6 addresses whose prefix length is 128 bits can be configured on a loopback interface. |
Ethernet interface view, BDIF interface view, Eth-Trunk interface view, Tunnel interface view, Loopback interface view, Dialer interface view, or VLANIF interface view
Application Environment
An anycast address is used to identify a group of interfaces that are configured on different nodes. The packets that are sent to an anycast address are transmitted to an interface that is in the interface group identified by the anycast address and is closest to the source node. (The distance between an interface and the source node is calculated based on a routing protocol).
When the 6to4 tunnel is used for communication between the 6to4 network and the native IPv6 network, you can configure an anycast address whose prefix is 2002:c058:6301/48 on the tunnel interface of the 6to4 relay device. If an anycast address is used, you need to configure the same address for the tunnel interfaces of all devices. In this manner, the number of addresses is reduced.
Prerequisites
Before running this command, run the ipv6 enable command on the interface view to enable the IPv6 function of the tunnel interface.
Configuration Impact
When the undo command is run, if no parameter is specified, all IPv6 addresses (including anycast addresses but excluding the link-local address that is configured automatically) are deleted.
Precautions
An anycast address cannot be used as a source address. Therefore, when a device is used to send packets, a global unicast address is configured for the device.