The c-bsr hash-length command configures the global hash mask length of a C-BSR.
The undo c-bsr hash-length command restores the default configuration.
By default, the global hash mask length of a C-BSR is 126.
Parameter | Description | Value |
---|---|---|
hash-length | Specifies the global hash mask length of a C-BSR. | The value is an integer that ranges from 0 to 128. |
Usage Scenario
During dynamic RP election, if C-RPs have the same interface address mask and priority for a specified multicast group, a hash function needs to be executed to select the RP for the multicast group. The switch performs hash calculation for the group address of G, C-RP address, and hash mask length of the C-RPs with the same priority and compares the hash values. The C-RP with the greatest hash value acts as the RP for G.
The hash mask length is used to adjust the hash calculation result.
Prerequisites
IPv6 multicast routing has been enabled using the multicast ipv6 routing-enable command in the system view.
Precautions
You can also run the c-bsr ipv6-address hash-length command in the PIM-IPv6 view configure the hash mask length while configuring a C-BSR address. The c-bsr hash-length hash-length command specifies the global hash mask length. If both the two commands are configured, the hash mask length configured by the c-bsr ipv6-address hash-length command takes effect.