< Home

multicast longest-match

Function

The multicast longest-match command configures the switch to select the RPF route based on the longest matching rule.

The undo multicast longest-match command restores the default configuration.

By default, the switch selects the route with the highest preference as the RPF route.

Format

multicast longest-match

undo multicast longest-match

Parameters

None

Views

System view, VPN instance view, VPN IPv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the switch selects the RPF route based on route preference. This command changes the route selection policy used by the switch during RPF check. After you run this command, the switch selects the RPF route with the longest mask. If multiple routes have the same mask length, the switch selects the route with the highest preference.

Prerequisites

IP multicast routing has been enabled using the multicast routing-enable command.

Example

# Select routes according to the longest match on the switch.

<HUAWEI> system-view
[HUAWEI] multicast routing-enable
[HUAWEI] multicast longest-match
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >