243
mld-snooping router-port-deny
Syntax
mld-snooping router-port-deny
[
vlan
vlan-list
]
undo mld-snooping router-port-deny
[
vlan
vlan-list
]
View
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
vlan
vlan-list
: Specifies one or multiple VLANs. You can provide up to 10 VLAN lists. For each list, you
can specify an individual VLAN in the form of
vlan-id
, or a VLAN range in the form of
start-vlan-id
to
end-vlan-id
, where the end VLAN ID must be greater than the start VLAN ID. The value range of a VLAN
ID is 1 to 4094.
Description
Use
mld-snooping router-port-deny
to disable a port from becoming a dynamic router port.
Use
undo mld-snooping router-port-deny
to restore the default.
By default, a port can become a dynamic router port.
This command works in both MLD snooping–enabled VLANs and VLANs with MLD enabled on their
VLAN interfaces.
If you do not specify any VLAN when using this command in Layer 2 Ethernet interface view or Layer 2
aggregate interface view, the command takes effect for all VLANs that the interface belongs to. If you
specify one or multiple VLANs, the command takes effect for the specified VLANs that the interface
belongs to.
Examples
# Disable GigabitEthernet 1/0/1 from becoming a dynamic router port in VLAN 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping router-port-deny vlan 2
mld-snooping source-deny
Syntax
mld-snooping source-deny
undo mld-snooping source-deny
View
Layer 2 Ethernet interface view
Default level
2: System level
Parameters
None