igmp-snooping static-router-port vlan

Function

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

The undo igmp-snooping static-router-port vlan command cancels the configuration.

By default, a dynamic router port is used.

Format

igmp-snooping static-router-port vlan { vid1 [ to vid2 ] } &<1-10>

undo igmp-snooping static-router-port vlan { { vid1 [ to vid2 ] } &<1-10> | all }

Parameters

Parameter Description Value
vid1

Specifies a VLAN.

The vlan-id value ranges from 1 to 4094.

to vid2

Specifies a VLAN.

The vlan-id value 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 a port for a long period of time, the igmp-snooping static-router-port vlan command can be used to configure the port as a static router port.

Static router ports can be configured on different positions on a network to enable user hosts to regularly receive data for specific multicast groups or source-specific multicast groups. The commands listed in the following table can be run in any order. Run one or more commands as required to configure static router ports. For details, see Table Description of the igmp-snooping static-router-port vlan command in different scenarios.

Prerequisites

IGMP snooping has been configured globally and in a VLAN.

Configuration Impact

A static router port does not age. To delete a static router port, you must run the undo igmp-snooping static-router-port vlan command.

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

Example

# Configure GE 0/1/1 as a static router port in VLAN 2.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/1
[~HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] igmp-snooping static-router-port vlan 2
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >