< Home

Setting Rules for Creating an SA Message

You can set rules for filtering the multicast source of a Source Active (SA) message on the source RP. The source Rendezvous Point (RP) then filters locally registered and active multicast sources, and determines which (S, G) information need be advertised based on the set rules.

Prerequisites

Procedure

  1. Access the system view.

    system-view

  2. Configure a basic or an advanced ACL as required.

    • Configure a basic ACL.

      1. Run the acl [ number ] acl-number [ vpn-instance vpn-instance-name ] command to create a basic ACL and access its view.

      2. Run the rule [ rule-id ] { deny | permit } source { source-ip-address { 0 | source-wildcard } | address-set address-set-name | any } command to configure rules for the basic ACL.

    • Configure an advanced ACL.

      1. Run the acl [ number ] acl-number [ vpn-instance vpn-instance-name ] command to create an advanced ACL and access its view.

      2. Run the rule [ rule-id ] { permit | deny } protocol [ source { source-ip-address { 0 | source-wildcard } | address-set address-set-name | any } | destination { destination-ip-address { 0 | destination-wildcard } | address-set address-set-name | any } ] * command to configure rules for the advanced ACL.

    If a basic ACL is used, run the rule command and set the source parameter to the source address of multicast packets.

    If an advanced ACL is used, run the rule command, set the source parameter to the source address of multicast packets, and set the destination parameter to a multicast group address.

  3. Return to the system view.

    quit

  4. Access the MSDP view.

    msdp [ vpn-instance vpn-instance-name ]

  5. Set rules for filtering the multicast source of an SA message.

    import-source [ acl acl-number ]

    The parameters of the command are explained as follows:

    • acl: specifies the filtering list based on multicast sources. The SA message created by an MSDP peer contains the local source information that matches the filtering rules. The MSDP peer can thus control the local (S, G) information.

    • If the import-source command with acl is used, the SA message does not advertise any information about the local active source.

    • If an SA message matches an ACL rule and the action is permit, the source RP creates an SA message that contains the local active source information.
    • If an SA message matches an ACL rule and the action is deny, the source RP creates an SA message that does not contain the local active source information.
    • If an SA message that does not match any ACL rule, the source RP creates an SA message that does not contain the local active source information.
    • If a specified ACL does not exist or does not contain rules, the source RP creates SA messages that do not contain the local active source information.

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