Configuring an RP
Context
In the anycast rendezvous point (RP) application, configure RPs with the same address on multiple routers in a PIM-SM domain. Before configuring anycast RP on the devices in the PIM-SM domain, configure a loopback interface on each device and assign the same IP address to the loopback interfaces. Then configure these interfaces as static RPs or candidate rendezvous points (C-RPs).
- If you configure a static RP, configure an RP on each router in the PIM-SM domain.
- If you configure a dynamic RP, you only need to configure the dynamic RP on the router as the anycast RP.
After an RP is configured, advertise the IP address of the RP interface through unicast routes to ensure that each router on the network has a reachable route to the RP interface.
Procedure
- Run system-view
The system view is displayed.
- Run interface loopback interface-number
The loopback interface view is displayed.
- Run ip address ip-address { mask | mask-length }
An IP address is configured for the loopback interface.
- (For a dynamic RP) Run pim sm
PIM-SM is enabled on the RP interface.
Before configuring a dynamic RP, run this command. This command is not required if you configure a static RP.
- Run quit
Return to the system view.
- Run pim [ vpn-instance vpn-instance-name ]
The PIM view is displayed.
- Configure the loopback interface address as a static RP address or a C-RP address.
Configure a static RP.
Run static-rp rp-address
The loopback interface address is configured as a static RP address.
Configure a dynamic RP.
When configuring dynamic RP, configure candidate bootstrap routers (C-BSRs). When configuring MSDP-based anycast RP, ensure that the addresses of the C-BSR and the C-RP are different. For details on how to configure the C-BSR, see Configuring a C-BSR.
Run c-rp loopback interface-number
The loopback interface address is configured as a C-RP address.