< Home

igmp-snooping static-router-port

Function

The igmp-snooping static-router-port command configures an interface as a static router port in specified VLANs.

The undo igmp-snooping static-router-port command cancels the router port configuration in specified VLANs.

By default, an interface is not a static router port.

Format

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

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

Parameters

Parameter

Description

Value

vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

Specifies VLAN IDs. This parameter specifies in which VLANs the current interface functions as a router port.
  • vlan-id1 specifies the first VLAN ID.
  • to vlan-id2 specifies the last VLAN ID. If to vlan-id2 is not specified, the interface functions as a router port only in the VLAN specified by vlan-id1.

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

The value of vlan-id2 must be greater than the value of vlan-id1. The vlan-id1 and vlan-id2 parameters identify a range of VLANs.

all

Cancels the static router port configuration in all VLANs on the interface.

-

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 forwarding IGMP Report/Leave messages for a long time, configure the interface as a static router port.

Prerequisites

IGMP snooping has been enabled globally using the igmp-snooping enable (system view) command.

Precautions

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

If you run the igmp-snooping static-router-port command multiple times, all the configurations take effect.

Example

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

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