Related Documentation
- M Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding RP Mapping with Anycast RP
- MX Series
- Example: Configuring PIM Anycast With or Without MSDP
- PTX Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding PIM Sparse Mode
- Understanding RP Mapping with Anycast RP
- QFX Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding PIM Sparse Mode
- Understanding RP Mapping with Anycast RP
- T Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding PIM Sparse Mode
- Understanding RP Mapping with Anycast RP
Example: Configuring Multiple RPs in a Domain with Anycast RP
This example shows how to configure anycast RP on each RP router in the PIM-SM domain. With this configuration you can deploy more than one RP for a single group range. This enables load balancing and redundancy.
Requirements
Before you begin:
- Configure the router interfaces. See the Junos® OS Network Interfaces.
- Configure an interior gateway protocol or static routing. See the Junos OS Routing Protocols Configuration Guide.
- Configure PIM Sparse Mode on the interfaces. See Enabling PIM Sparse Mode.
Overview
When you configure anycast RP, the RP routers in the PIM-SM domain use a shared address. In this example, the shared address is 10.1.1.2/32. Anycast RP uses Multicast Source Discovery Protocol (MSDP) to discover and maintain a consistent view of the active sources. Anycast RP also requires an RP selection method, such as static, auto-RP, or bootstrap RP. This example uses static RP and shows only one RP router configuration.
Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
RP Routers
Non-RP Routers
Step-by-Step Procedure
The following example requires that you navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
To configure anycast RP:
On each RP router in the domain, configure the shared anycast address on the router’s loopback address.
[edit interfaces]user@host# set lo0 unit 0 family inet address 10.1.1.2/32On each RP router in the domain, make sure that the router’s regular loopback address is the primary address for the interface, and set the router ID.
[edit interfaces]user@host# set lo0 unit 0 family inet address 192.168.132.1/32 primary
[edit routing-options]user@host# set router-id 192.168.132.1On each RP router in the domain, configure the local RP address, using the shared address.
[edit protocols pim]user@host# set rp local address 10.1.1.2On each RP router in the domain, create MSDP sessions to the other RPs in the domain.
[edit protocols msdp]user@host# set local-address 192.168.132.1user@host# set peer 192.168.12.1On each non-RP router in the domain, configure a static RP address using the shared address.
[edit protocols pim]user@host# set rp static address 10.1.1.2If you are done configuring the devices, commit the configuration.
user@host# commit
Results
From configuration mode, confirm your configuration by entering the show interfaces, show protocols, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
On the RP routers:
On the non-RP routers:
Verification
To verify the configuration, run the show pim rps extensive inet command.
Related Documentation
- M Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding RP Mapping with Anycast RP
- MX Series
- Example: Configuring PIM Anycast With or Without MSDP
- PTX Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding PIM Sparse Mode
- Understanding RP Mapping with Anycast RP
- QFX Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding PIM Sparse Mode
- Understanding RP Mapping with Anycast RP
- T Series
- Example: Configuring PIM Anycast With or Without MSDP
- Understanding PIM Sparse Mode
- Understanding RP Mapping with Anycast RP

