The local-address command sets a local address for an anycast-rendezvous point (Anycast-RP).
The undo local-address command deletes the local address of an Anycast-RP.
By default, no local address is set for an Anycast-RP.
Usage Scenario
If PIM Anycast-RP is configured, after an RP receives a Register message, it checks the source address in the Register message. If the Register message is sent by the source's designated router (DR), the RP forwards the Register message to Anycast-RP peers. If the Register message is sent by an Anycast-RP peer, it does not forward the Register message.
When forwarding a PIM Register message to other Anycast-RP peers, the local RP needs to use its own IP address (called the local address) as the source address of the Register message and use the addresses of Anycast-RP peers as the destination addresses of the Register message. In such a manner, Anycast-RP peers can learn source/group information from each other. To set a local address for an Anycast-RP, run the local-address command.Precautions
A local address for an Anycast-RP must be different from the Anycast RP address.
Setting a loopback interface address as the local address for an Anycast-RP is recommended.