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 30.
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 32. |
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
IP multicast routing has been enabled using the multicast routing-enable command.
Precautions
You can run the c-bsr interface-type interface-number hash-length command in the PIM view to configure the C-BSR interface and specify the hash mask length. The c-bsr hash-length hash-length command specifies the global hash mask length. If both c-bsr interface-type interface-number hash-length and c-bsr hash-length hash-length are used, the c-bsr interface-type interface-number hash-length command takes effect.