pim require-genid

Function

The pim require-genid command configures a PIM interface to reject a Hello message without a generation ID.

The undo pim require-genid command restores the default configuration.

By default, a PIM interface permits a Hello message without a generation ID.

Format

pim require-genid

undo pim require-genid

Parameters

None

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, PW-VE sub-interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Virtual template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
pim write

Usage Guidelines

Usage Scenario

After PIM-SM is enabled on an interface of a router, the router generates a random number as the generation ID for Hello messages. Each time the router status changes, the router generates a new generation ID.

If a router receives a Hello message that contains a changed generation ID from the same PIM neighbor, the router considers that the PIM neighbor status has changed. In this manner, the router can detect status changes of its neighbors. To configure a PIM interface to reject Hello messages without a generation ID, run the pim require-genid command, improving communication security.

Prerequisites

The multicast routing function has been enabled using the multicast routing-enable command in the public network instance view or VPN instance view.

Configuration Impact

After the pim require-genid command s run, the Router sets up PIM neighbor relationships only with devices that send Hello messages with a generation ID.

Example

# Configure GE 0/1/0 to reject Hello messages without a generation ID.
[~HUAWEI] multicast routing-enable
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] undo portswitch
[*HUAWEI-GigabitEthernet0/1/0] pim require-genid
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >