< Home

mld-snooping static-router-port

Function

The mld-snooping static-router-port command configures a static router port in a VLAN.

The undo mld-snooping static-router-port command deletes a static router port in a VLAN.

By default, no static router port is configured in a VLAN.

Format

mld-snooping static-router-port vlan vlan-id

undo mld-snooping static-router-port { all | vlan vlan-id }

Parameters

Parameter

Description

Value

vlan vlan-id

Specifies a VLAN ID. This parameter specifies in which VLAN the current interface functions as a router port.

The value is an integer that ranges from 1 to 4094.

all

Disables the interface from functioning as a router port in all 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

When an interface needs to keep receiving or forwarding multicast data packets for a long time, configure the interface as a static router port.

Prerequisites

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

Precautions

This command takes effect only when the interface is added to the specified VLAN.

Example

# Configure GE0/0/1 as a router port in VLAN 2.

<HUAWEI> system-view
[HUAWEI] mld-snooping enable
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] mld-snooping static-router-port vlan 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >