Configuring a Static RP

To use a static Rendezvous Point (RP) in a PIM-SM domain, configure the same RP address and same address range of multicast groups that the RP serves on all routers in the PIM-SM domain.

Context

If a network is divided into multiple PIM-SM domains and the static RP needs to be used, configure the same static RP address on all the routers in one PIM-SM domain to specify the range of each PIM-SM domain.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure a basic numbered ACL or a naming ACL as needed.

    • Configure a basic numbered ACL.

      1. Run acl [ number ] basic-acl-number [ match-order { auto | config } ]

        A basic numbered ACL is created, and the basic numbered ACL view is displayed.

      2. Run rule [ rule-id ] [ name rule-name ] { deny | permit } source { source-ip-address { source-wildcard | 0 } | any }

        Rules are configured for the basic numbered ACL.

    • Configure a naming ACL.

      1. Run acl name acl-name basic [ match-order { auto | config } ]

        A naming ACL is created, and the naming ACL view is displayed.

      2. Run rule [ rule-id ] [ name rule-name ] { deny | permit } source { source-ip-address { source-wildcard | 0 } | any }

        Rules are configured for the naming ACL.

    Run the rule command and set the source parameter to the multicast group range to be served by the static RP.

  3. Run quit

    Return to the system view.

  4. Run pim [ vpn-instance vpn-instance-name ]

    The PIM view is displayed.

  5. Run static-rp rp-address [ basic-acl-number | acl-name acl-name ] [ preferred ]

    A static RP is specified.

    You can run this command repeatedly to configure multiple static RPs for the router.

    • rp-address: specifies the static RP address.

    • basic-acl-number: specifies an access control list. Such a list defines the range of multicast groups that the static RP serves. If a multicast group is in the service range of more than one static RP, the multicast group is served by the static RP with the largest IP address.

    • preferred: indicates that the static RP takes precedence. If Candidate-Rendezvous Points (C-RPs) are also configured and preferred is specified in the static-rp command, routers prefer the statically specified RP; otherwise, C-RPs are preferred.

    • If no ACL is configured, the static RP serves all multicast groups.
    • If an ACL is configured, the device uses configured ACL rules to filter multicast groups to be served by the static RP.
      • If a multicast group matches an ACL rule and the action is permit, the static RP serves this multicast group.
      • If a multicast group matches an ACL rule and the action is deny, the static RP does not serve this multicast group.
      • If a multicast group does not match any ACL rule or if a specified ACL does not exist or does not contain rules, the static RP serves all multicast groups.

  6. Run commit

    The configuration is committed.

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