< Home

Configuring an RP

Context

To use the Anycast RP feature, configure multiple RPs with the same address in a PIM-SM domain. Before configuring Anycast RP in the PIM-SM domain, configure a loopback interface on each switch and assign the same IP address to the loopback interfaces. Then configure these interfaces as static RPs or candidate rendezvous points (C-RPs).

  • To use a static RP, configure the RP address on each switch in the PIM-SM domain.
  • To use a dynamic RP, C-RP address only on the switches that need to provide the Anycast RP function.

After an RP is configured, the RP interface address needs to be advertised using a unicast routing protocol so that each switch on the network has a reachable route to the RP interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface loopback interface-number

    The loopback interface view is displayed.

  3. Run ip address ip-address { mask | mask-length }

    An IP address is configured for the loopback interface.

  4. (For dynamic RP configuration) Run pim sm

    PIM-SM is enabled on the interface.

    This command is not required if you configure a static RP.

  5. Run quit

    Return to the system view.

  6. Run pim [ vpn-instance vpn-instance-name | all-instance ]

    The PIM view is displayed.

  7. Configure the loopback interface address as a static RP address or 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). Ensure that the C-BSR and the C-RP addresses are different. For details on how to configure a C-BSR, see Configuring a C-BSR.

      Run c-rp loopback interface-number

      The loopback interface address is configured as a C-RP address.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >