The bsr-policy command limits the range of valid bootstrap router (BSR) addresses, so that the 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 the Router considers messages received from all BSRs valid.
Parameter | Description | Value |
---|---|---|
basic-acl6-number |
Specifies the number of a basic IPv6 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 acl6-number parameter specified in the acl ipv6 command. |
acl6-name acl6-name |
Specifies the name of a named basic IPv6 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). The value of this parameter must be the same as that of the acl6-name parameter specified in the acl ipv6 command. |
Usage Scenario
On an IPv6 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 ipv6 routing-enable command in the public network instance view.
Configuration Impact
After the bsr-policy command is run, the Router accepts only BSR messages passing the filtration.
If the bsr-policy command is run more than once, the latest configuration overrides the previous one.Precautions
The bsr-policy command requires an ACL configured using the acl ipv6 command. To set the range of source addresses of BSR messages, specify the source parameter in the rule command in the basic IPv6 ACL view.
When the rule command is used to configure rules for a named IPv6 ACL, the bsr-policy command configuration is effective only for the source address range specified by source in time period specified by time-range.<HUAWEI> system-view [~HUAWEI] acl ipv6 name myacl6 basic [*HUAWEI-acl6-basic-myacl6] rule permit source 2001:DB8:2::2 64 [*HUAWEI-acl6-basic-myacl6] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] pim-ipv6 [*HUAWEI-pim6] bsr-policy acl6-name myacl6
<HUAWEI> system-view [~HUAWEI] acl ipv6 2001 [*HUAWEI-acl6-basic-2001] rule permit source2001:DB8:2::2 64 [*HUAWEI-acl6-basic-2001] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] pim-ipv6 [*HUAWEI-pim] bsr-policy 2001