In this example, configure an RP using the lo0 or loopback interface, which is always up. Use the address statement to specify the unique and routable router ID and the RP address at the [edit interfaces lo0 unit 0 family inet] hierarchy level. In this case, the router ID is 198.58.3.254/32 and the shared RP address is 198.58.3.253/32. Add the flag statement primary to the first address. Using this flag selects the router's primary address from all the preferred addresses on all interfaces.
- interfaces {
-
- lo0 {
- description "PIM RP";
-
- unit 0 {
-
- family inet {
- address 198.58.3.254/32;
- primary;
- address 198.58.3.253/32;
- }
- }
- }
- }
Add the address statement at the [edit protocols pim rp local] hierarchy level to specify the RP address (the same address as the secondary lo0).
For all interfaces, use the mode statement to set the mode to sparse and the version statement to specify PIM version 2 at the [edit protocols pim rp local interface all] hierarchy level. When configuring all interfaces, exclude the fxp0.0 management interface by adding the disable statement for that interface.
- protocols {
-
- pim {
-
- rp {
-
- local {
- family inet;
- address 198.58.3.253;
- }
-
- interface all {
- mode sparse;
- version 2;
- }
-
- interface fxp0.0 {
- disable;
- }
- }
- }
- }
To configure MSDP peering, add the peer statement to configure the address of the MSDP peer at the [edit protocols msdp] hierarchy level. For MSDP peering, use the unique, primary addresses instead of the anycast address. To specify the local address for MSDP peering, add the local-address statement at the [edit protocols msdp peer] hierarchy level.
- protocols {
-
- msdp {
-
- peer 198.58.3.250 {
- local-address address 198.58.3.254;
- }
- }
- }