21
Check OK!
NEW: 2 4
Update finished!!
VLAN Commands Set
Commands Command Level Description Defaults Example
Vlan datatbase
Privileged EXEC
mode
To enter the VLAN
configuration interface
Switch# vlan database
Switch(vlan)#
vlanmode [disable|
portbase| 802.1q | gvrp]
VLAN database
mode
To set switch VLAN
mode .U
se the no form of this
command to restore to
default.
Disable
Switch (vlan)# vlanmode
802.1q
Port Base VLAN
vlan [Group Name]
grpid [Group ID] port
[Port Number]
VLAN database
mode
Add new Port Base VLAN
Switch (vlan)# vlan v2 grpid 2
port 1-4
no vlan Group Name]
[Group ID]
VLAN database
mode
Delete port base VLAN
group
Switch (vlan)# no vlan v2 2
show vlan [GroupName]
[GroupID] or show vlan
VLAN database
mode
Show VLAN of Group Name
or Group ID information
Switch (vlan)# Show vlan v2 2
vlan [Group name] add
[port Number] [tagged |
untagged]
VLAN database
mode
Set the port of some port
group tagged or untagged
Switch (vlan)# vlan v2 add 5
tagged
vlan [Group name]
delete [port Number]
VLAN database
mode
Remove the port from it’s
port group.
Switch (vlan)# vlan v2 delete
5
802.1Q | 802.1Q with GVRP VLAN mode
vlan [Group name]
vlanid [Vlan ID] port
[port Number] tag
[port Number]
VLAN database
mode
Add new 802.1Q VLAN
[VLAN name]:
VLAN name
[VLAN ID]: 1 ~ 4094
[port ID]:
port members 1~9
Switch(vlan)# vlan v2 vlanid 2
port 1-4
tag 2-4
no vlan VLAN database Delete 802.1Q VLAN group Switch (vlan)# no vlan v2