R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
62
Parameters
None
Description
Use shutdown to shut down a VLAN interface.
Use undo shutdown to bring up a VLAN interface.
By default, a VLAN interface is up unless all ports in the VLAN are down.
You can use the undo shutdown command to bring up a VLAN interface after you have configured
related parameters and protocols for the VLAN interface. You can shut down a failed interface with the
shutdown command and then bring it up with the undo shutdown command to see if it recovers.
In a VLAN, the state of any 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
Syntax
vlan { vlan-id1 [ to vlan-id2 ] | all }
undo vlan { vlan-id1 [ to vlan-id2 ] | all }
View
System view
Default level
2: System level
Parameters
vlan-id1, vlan-id2: Specifies a VLAN ID, ranging from 1 to 4094.
vlan-id1 to vlan-id2: Specifies a VLAN range.
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.
Description
Use vlan vlan-id to create a VLAN and enter its view or enter the view of an existing VLAN.
Use vlan vlan-id1 to vlan-id2 to create VLANs ranging from vlan-id1 to vlan-id2, except reserved VLANs.
Use undo vlan to remove the specified VLANs.
You cannot create or remove the default VLAN (VLAN 1).
Related commands: display vlan.
Examples
# Enter VLAN 2 view.