anycast-rp
PIM anycast RPs are not configured.
PIM router configuration mode
PIM anycast RP is a way to provide load balancing and fast convergence to PIM RPs in an IPv4 or IPv6 multicast domain. The RP address of the anycast RP is a shared address used among multiple PIM routers, known as PIM RP.
The PIM software supports up to eight PIM anycast RP routers. All deny statements in the my-anycast-rp-set-acl ACL are ignored.
The
no form of the command removes the anycast RP configuration.
The following example shows how to configure a PIM anycast RP.
device# configure terminal device(config)# 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-acl
The following example shows how to configure 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 registers the source with the closest RP. The first RP that receives the register re-encapsulates the register to all other anycast RP peers.
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.
The following example shows how to configure a PIM anycast RP for a VRF.
device# configure terminal device(config)# ipv6 router pim vrf blue device(config-ipv6-pim-router-vrf-blue)# rp-address 1001::1 device(config-ipv6-pim-router-vrf-blue)# anycast-rp 1001::1 my-anycast-rp-set-acl
The following example shows how to configure PIM anycast RP 1001:1 so that it avoids using loopback 1.
device# configure terminal device(config)# interface loopback 2 device(config-lbif-2)# ipv6 address 1001::1/96 device(config-lbif-2)# ipv6 pim-sparse device(config-lbif-2)# interface loopback 3 device(config-lbif-3)# ipv6 address 1:1:1::1/96 device(config-lbif-3)# ipv6 pim-sparse device(config-lbif-3)# ipv6 router pim device(config-ipv6-pim-router)# rp-address 1001::1 device(config-ipv6-pim-router)# anycast-rp 1001::1 my-anycast-rp-set device(config-ipv6-pim-router)# ipv6 access-list my-anycast-rp-set device(config-std-ipacl-my-anycast-rp-set)# permit ipv6 host 1:1:1::1 any device(config-std-ipacl-my-anycast-rp-set)# permit ipv6 host 2:2:2::2 any device(config-std-ipacl-my-anycast-rp-set)# permit ipv6 host 3:3:3::3 any