Configuring PIM Anycast RP

PIM Anycast RP can be configured to map RP and Anycast RPs.
Note: MSDP and Anycast RP do not interoperate. If transitioning from MSDP to Anycast RP or vice versa, all RPs in the network must be configured for the same method of RP peering; either Anycast RP or MSDP.
  1. Enter global configuration mode.
    device# configure terminal
  2. Enable PIM
    device(config)# router pim
  3. Configure an RP address.
    device(config-pim-router)# rp-address 100.1.1.1
    The RP address is shared among multiple PIM routers.
  4. Configure PIM Anycast RP.
    device(config-pim-router)# anycast-rp 100.1.1.1 my-anycast-rp-set-acl
    The anycast-rp command defines the mapping of the RP and the Anycast RP peers using a host-based simple ACL to specify the address of the Anycast RP set.
  5. Exit to privileged EXEC mode.
    device(config-pim-router)# end
  6. Display information for a PIM Anycast RP interface.
    device> show ip pim anycast-rp
    
    Number of Anycast RP: 1 
    Anycast RP: 100.1.1.1
      ACL Name: 200
      Peer List: 
        1.1.1.1
        2.2.2.2
        3.3.3.3

The example shown in the following figure is a PIM Anycast-enabled network with 3 RPs, 1 PIM-FH router connecting to its active source and local receiver. Loopback 2 in RP1, RP2, and RP3 have the same IP addresses 100.1.1.1. Loopback 3 in RP1, RP2, and RP3 each have separate IP addresses configured to communicate with their peers in the Anycast RP set.

Example of a PIM Anycast RP Network

The following example is a configuration of PIM Anycast RP 100.1.1.1.The example avoids using loopback 1 interface when configuring PIM Anycast RP because the loopback 1 address could be used as a router-id. A PIM First Hop router will register the source with the closest RP. The first RP that receives the register will re-encapsulate the register to all other Anycast RP peers.

The RP shared address 100.1.1.1 is used in the PIM domain. IP addresses 1.1.1.1, 2.2.2.2, and 3.3.3.3 are listed in the ACL that forms the self-inclusive Anycast RP set. Multiple anycast-rp instances can be configured on a system; each peer with the same or different Anycast RP set.

Note: The PIM software supports up to eight PIM Anycast-RP routers. All deny statements in the anycast_rp_set ACL and additional routers more than eight listed in an access list are ignored.
device# configure terminal
device(config)# interface loopback 2
device(config-lbif-2)# ip address 100.1.1.1/24
device(config-lbif-2)# ip pim-sparse
device(config-lbif-2)# interface loopback 3
device(config-lbif-3)# ip address 1.1.1.1/24
device(config-lbif-3)# ip pim-sparse
device(config-lbif-3)# router pim
device(config-pim-router)# rp-address 100.1.1.1
device(config-pim-router)# anycast-rp 100.1.1.1 my-anycast-rp-set
device(config-pim-router)# ip access-list standard my-anycast-rp-set
device(config-std-ipacl-my-anycast-rp-set)# permit host 1.1.1.1
device(config-std-ipacl-my-anycast-rp-set)# permit host 2.2.2.2
device(config-std-ipacl-my-anycast-rp-set)# permit host 3.3.3.3