< Home

c-bsr hash-length (IPv4)

Function

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.

Format

c-bsr hash-length hash-length

undo c-bsr hash-length

Parameters

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.

Views

PIM view of public network instance or PIM view of VPN instance

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# In the public network instance PIM view, set the global hash mask length of a C-BSR to 16.

<HUAWEI> system-view
[HUAWEI] multicast routing-enable
[HUAWEI] pim
[HUAWEI-pim] c-bsr hash-length 16
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >