< Home

c-bsr hash-length (IPv6)

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 126.

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 128.

Views

PIM-IPv6 view

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

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.

Example

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

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