Configuring IPv6 PIM Anycast RP
Anycast RP configures several RPs with the same address in an IPv6 PIM-SM domain and establishes peer relationships between RPs so that the multicast source can register with the closest RP and the multicast receiver can join the closest RP. This releases burdens on a single RP, implements RP backup, and optimizes multicast forwarding paths.
Pre-configuration Tasks
Before configuring IPv6 PIM anycast RP, complete the following task:
Configure a unicast routing protocol to ensure connectivity at the network layer.
Configuring Global Anycast RP
Configuring Local Addresses for Anycast RPs
Context
The devices functioning as Anycast RPs are identified by the same logical address so that the RP in the IPv6 PIM-SM domain is unique. However, the devices need to distinguish one another during communication, so the Anycast RP addresses cannot be used. In this situation, you need to configure the Anycast RP local address and Anycast RP peers.
After the local address is configured, the RP uses the local addresses as the source addresses of the packets when sending Register packets to Anycast RP peers.
Procedure
- Run system-view
The system view is displayed.
- Run pim-ipv6
The PIM-IPv6 view is displayed.
- Run anycast-rp rp-address
The Anycast RP view is displayed.
- Run local-address local-address
Local addresses are configured for Anycast RP.
You are advised to use the address of the Loopback interface as the local address of the Anycast RP.
The local address of the Anycast RP must be different from the address of the Anycast RP.
Configuring Anycast RP Peers
Context
The devices functioning as Anycast RPs are identified by the same logical address so that the RP in the IPv6 PIM-SM domain is unique. However, the devices need to distinguish one another during communication, so the Anycast RP addresses cannot be used. In this situation, you need to configure the Anycast RP local address and Anycast RP peers.
After Anycast RP peers are configured, the RP uses the peer addresses as the destination addresses of the packets when sending Register packets to Anycast RP peers.
Procedure
- Run system-view
The system view is displayed.
- Run pim-ipv6
The PIM-IPv6 view is displayed.
- Run anycast-rp rp-address
The Anycast RP view is displayed.
- Run peer peer-address
Anycast RP peers are configured.
In an IPv6 PIM-SM domain, devices functioning as Anycast RP must be fully connected. Anycast RP peer relationships need to be configured between every two Anycast RPs.
Verifying the IPv6 PIM Anycast RP Configuration
Context
After IPv6 PIM for Anycast RP is configured, you can check the IPv6 PIM for Anycast RP configurations.
Procedure
- Run the display pim ipv6 rp-info [ ipv6-group-address ] command to check the RP configuration.
- Run the following commands to check the IPv6 PIM routing table.
- display pim ipv6 routing-table [ ipv6-source-address [ mask mask-length ] | ipv6-group-address [ mask mask-length ] | flags flag-value | fsm | incoming-interface { interface-type interface-number | register } | mode { dm | sm | ssm } | outgoing-interface { exclude | include | match } { interface-type interface-number | none | register } ] * [ outgoing-interface-number [ number ] ]
display pim ipv6 routing-table brief [ ipv6-source-address [ mask mask-length ] | ipv6-group-address [ mask mask-length ] | incoming-interface { interface-type interface-number | register } ] *