mld-snooping static-router-port vlan

Function

The mld-snooping static-router-port vlan command configures a static router port.

The undo mld-snooping static-router-port vlan command cancels the configuration of a static router port.

By default, an interface is a dynamic router interface.

Format

mld-snooping static-router-port vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

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

Parameters

Parameter Description Value
vlan-id1

Specifies the start VLAN ID.

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

to vlan-id2

Specifies the end VLAN ID.

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

all

Indicates all VLANs.

-

Views

Layer 2 100GE interface view, Layer 2 10GE interface view, 25GE-L2 view, 400GE-L2 view, Layer 2 40GE interface view, Layer 2 50GE interface view, Eth-Trunk interface view, Layer 2 GE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

If user hosts need to receive multicast data packets from an interface for a long period of time, run the mld-snooping static-router-port command to configure the interface as a static router interface.

Static router interfaces can be configured on different positions of a network to enable user hosts to regularly receive data.

Prerequisites

MLD snooping has been enabled globally and in the VLAN/VSI view.

Configuration Impact

A static router interface never ages. A static router interface configuration can be canceled only by running the undo mld-snooping static-router-port command.

If the mld-snooping static-router-port command is run more than once, all configurations take effect.

Example

# When LDP is used as the signaling negotiation protocol, configure a PW as a router interface of VSI vsi0.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi0
[*HUAWEI-vsi-vsi0] pwsignal ldp
[*HUAWEI-vsi-vsi0-ldp] vsi-id 1
[*HUAWEI-vsi-vsi0-ldp] quit
[*HUAWEI-vsi-vsi0] mld-snooping static-router-port remote-peer 3.3.3.3
# Configure GE 0/1/1.1 as a router interface of VSI vsi0.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi0
[*HUAWEI-vsi-vsi0] pwsignal ldp
[*HUAWEI-vsi-vsi0-ldp] vsi-id 1
[*HUAWEI-vsi-vsi0-ldp] quit
[*HUAWEI-vsi-vsi0] quit
[*HUAWEI] interface GigabitEthernet0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] mld-snooping static-router-port vsi vsi0
# Configure GE 0/1/1 as a static router interface of VLAN 2.
<HUAWEI> system-view
[~HUAWEI] mld-snooping enable
[*HUAWEI] interface GigabitEthernet0/1/1
[*HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] mld-snooping static-router-port vlan 2
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >