< Home

mld-snooping router-learning

Function

The mld-snooping router-learning command enables router port learning in a VLAN.

The undo mld-snooping router-learning command disables router port learning in a VLAN.

By default, router port learning is enabled in a VLAN.

Format

mld-snooping router-learning vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

undo mld-snooping router-learning vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

Parameters

Parameter

Description

Value

vlan vlan-id1 [ to vlan-id2 ]

Enables an interface to function as a router port in the specified VLANs.

vlan-id1 and vlan-id2 are integers that range from 1 to 4094.

all

Enables an interface to function as a router port in all the VLANs.

-

Views

MultiGE interface view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A router port is located on a Layer 2 device and connects to an upstream Layer 3 device (a multicast router or Layer 3 switch). A switch running MLD snooping considers an interface as a router port when the interface receives an MLD General Query message with any source IP address except 0.0.0.0 or a PIM Hello message. A router port provides the following functions:

  • Receives multicast data from the upstream device.
  • Forwards MLD Report/Done messages. MLD Report/Done messages received in a VLAN are forwarded only to router ports in the VLAN.

Prerequisites

MLD snooping has been enabled globally using the mld-snooping enable command.

Follow-up Procedure

The switch does not listen on MLD Query messages in a VLAN after router port learning is disabled in the VLAN. To ensure normal multicast forwarding in the VLAN, run the mld-snooping static-router-port command to configure a static router port.

Precautions

This command takes effect only when the interface has been added to the specified VLANs and MLD snooping has been enabled in these VLANs using the mld-snooping enable command.

Example

# Disable router port learning on GE0/0/1 in VLAN 10.

<HUAWEI> system-view
[HUAWEI] mld-snooping enable
[HUAWEI] vlan 10
[HUAWEI-vlan10] mld-snooping enable
[HUAWEI-vlan10] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo mld-snooping router-learning vlan 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >