R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)

70
Before you configure parameters for a VLAN interface, shut down the VLAN interface with the shutdown
command to prevent the configurations from affecting the network. After you have configured related
parameters for a VLAN interface, use the undo shutdown command to make the settings to take effect.
You can shut down a failed interface with the shutdown command and then bring it up with the undo
shutdown command to see whether it recovers.
In a VLAN, the state of each Ethernet port is independent of the state of the VLAN interface.
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
Use vlan vlan-id to create a VLAN and enter its view or to enter the view of an existing VLAN.
Use vlan vlan-id1 to vlan-id2 to create VLANs from vlan-id1 to vlan-id2, except reserved VLANs.
Use vlan all to create VLANs 1 through 4094.
Use undo vlan to remove the specified VLANs.
Syntax
vlan { vlan-id1 [ to vlan-id2 ] | all }
undo vlan { vlan-id1 [ to vlan-id2 ] | all }
Default
VLAN 1 (system default VLAN) exists.
Views
System view
Predefined user roles
network-admin
Parameters
vlan-id1, vlan-id2: Specifies a VLAN ID. The value range is 1 to 4094.
vlan-id1 to vlan-id2: Specifies a VLAN range. The vlan-id1 and vlan-id2 arguments specify VLAN IDs.
The value range for each of the two arguments is 1 to 4094. The value for vlan-id2 must be equal to or
greater than the value for vlan-id1.
all: Creates or removes all VLANs except reserved VLANs. The keyword is not supported when the
maximum number of VLANs that can be created on a device is less than 4094.
The following matrix shows the support of MSR routers for the all keyword:
Hardware Ke
y
word com
p
atibilit
y
MSR2000 No
MSR3000 Yes