Configuring Anycast Addresses for Interfaces
Context
IPv6 anycast addresses are allocated from the unicast address space. An anycast address identifies a group of network interfaces, which usually belong to different nodes. When using anycast addresses, pay attention to the following points:
- You can use anycast addresses as destination addresses only.
- Packets addressed to an anycast address are delivered to the nearest interface identified by the anycast address, depending on the routing protocols used.
Procedure
- Run system-view
The system view is displayed.
- Run ipv6
IPv6 packet forwarding is enabled on the router.
By default, IPv6 packet forwarding is disabled.
- Run interface interface-type interface-number
The specified interface view is displayed.
- Run ipv6 enable
The IPv6 function is enabled on the interface.
By default, the IPv6 function is disabled on an interface.
- Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } anycast
An IPv6 anycast address is configured for the interface.