The bsr-policy command limits the range of valid bootstrap router (BSR) addresses, so that a Router discards messages received from the BSRs not in the specified address range, preventing BSR spoofing.
The undo bsr-policy command restores the default configuration.
By default, the range of valid BSR addresses is not limited, so that a Router considers messages received from all BSRs valid.
Parameter | Description | Value |
---|---|---|
bsrPolicyAclNum |
Specifies the number of a basic ACL, which defines a policy for filtering BSR messages based on source addresses. |
The value is an integer ranging from 2000 to 2999. The value of this parameter must be the same as that of the basic-acl-number parameter specified in the acl command. |
acl-name acl-name |
Specifies the name of a named basic ACL. |
The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive). |
Usage Scenario
On a PIM-SM network that uses the BSR mechanism, any Router can be configured as a candidate-bootstrap router (C-BSR) and participate in a BSR election. The winner of the BSR election is responsible for advertising RP information on the network. These mechanisms leave chances for BSR spoofing.
Prerequisites
The multicast routing function has been enabled using the multicast routing-enable command in the public network instance view or VPN instance view.
Configuration Impact
After the bsr-policy command is run, the Router accepts only the BSR messages passing the filtration.
Precautions
The bsr-policy command requires an ACL configured using the acl command. To set the range of source addresses of BSR messages, specify the source parameter in the rule command.
<HUAWEI> system-view [~HUAWEI] acl number 2001 [*HUAWEI-acl4-basic-2001] rule permit source 10.1.1.0 0.0.0.255 [*HUAWEI-acl4-basic-2001] quit [*HUAWEI] multicast routing-enable [*HUAWEI] pim [*HUAWEI-pim] bsr-policy 2001