multicast longest-match (VPN instance IPv4 address family view)

Function

The multicast longest-match command selects the Reverse Path Forwarding (RPF) route based on the longest matching rule.

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

By default, the route with the highest preference is selected as the RPF route.

Format

multicast longest-match

undo multicast longest-match

Parameters

None

Views

VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mcast-base write

Usage Guidelines

Usage Scenario

When multiple optimal unicast routes exist, the RPF route is selected according to the following rules:

  • By default, the route with the highest priority is selected as the RPF route.
  • If the multicast longest-match command is used, the route with the longest mask is selected as the RPF route.
  • If the multicast load-splitting command is used, multicast load splitting is performed among multiple optimal unicast routes.

Example

# Select routes according to the longest match in the VPN instance named mytest.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance mytest
[*HUAWEI-vpn-instance-mytest] ipv4-family
[*HUAWEI-vpn-instance-mytest-ipv4-family] route-distinguisher 1:100
[*HUAWEI-vpn-instance-mytest-ipv4-family] multicast routing-enable
[*HUAWEI-vpn-instance-mytest-ipv4-family] multicast longest-match
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >