Vlan - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

The state of any Ethernet port in a VLAN is independent of the VLAN interface state.
Examples
# Shut down VLAN interface 2 and then bring it up.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] shutdown
[Sysname-Vlan-interface2] undo shutdown

vlan

Syntax
vlan { vlan-id1 [ to vlan-id2 ] }
undo vlan { vlan-id1 [ to vlan-id2 ] | all }
View
System view
Default Level
2: System level
Parameters
vlan-id1, vlan-id2: VLAN ID, in the range 1 to 4094.
vlan-id1 to vlan-id2: Specifies a VLAN range. A VLAN ID is in the range 1 to 4094.
all: Creates or removes all VLANs except reserved VLANs.
Description
Use the vlan vlan-id command to create a VLAN and enter its view or enter the view of an existing
VLAN.
Use the vlan vlan-id1 to vlan-id2 command to create a range of VLANs specified by vlan-id1 to vlan-id2,
except reserved VLANs.
Use the undo vlan command to remove the specified VLAN(s).
As the default VLAN, VLAN 1 cannot be created or removed.
You cannot create/remove reserved VLANs reserved for specific functions.
You cannot use the undo vlan command to directly remove reserved VLANs, voice VLANs,
management VLANs, dynamic VLANs, VLANs configured with QoS policies, control VLANs
configured for port mirroring. To remove these VLANs, you need to first remove related
configurations.
Related commands: display vlan.
1-8

Advertisement

Table of Contents
loading

Table of Contents