Setting a Valid BSR Address Range

You can create ACL rules on all devices to filter BootStrap router (BSR) addresses. The devices then receive only the Bootstrap messages with the source addresses being in the valid BSR address range. Thus, BSR spoofing is prevented.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure a basic numbered ACL or a named 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 named ACL.

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

        A named ACL is created, and the named 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 named ACL.

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

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

  3. Run quit

    Return to the system view.

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

    The PIM view is displayed.

  5. Run bsr-policy { bsrPolicyAclNum | acl-name acl-name }

    A valid BSR address range is set.

    • If the source address carried in a Bootstrap message is denied by the ACL or no action is defined in the ACL for processing such a Bootstrap message, the router discards the Bootstrap message.
    • If no ACL rule corresponding to the specified basic-acl-number exists, the router denies all Bootstrap messages.

    • If a BSR message matches an ACL rule and the action is permit, the device permits this message.
    • If a BSR message matches an ACL rule and the action is deny, the device denies this message.
    • If a BSR message does not match any ACL rule, the device denies this message.
    • If a specified ACL does not exist or does not contain rules, the device denies all BSR messages.

  6. Run commit

    The configuration is committed.

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