INS_CNGE2FE8MSPOE2_REV–
12/20/12 PAGE 89
INSTALLATION AND OPERATION MANUAL
CNGE2FE8MSPOE2
TECH SUPPORT: 1.888.678.9427
Commands Set List—VLAN command set
Commands
Level Description
Example
vlan database
P
Enter VLAN configure mode
switch#vlan database
vlan
[8021q | gvrp]
V
To set switch VLAN mode.
switch(vlan)# vlanmode 802.1q
or
switch(vlan)# vlanmode gvrp
no vlan
[VID]
V
Disable vlan group (by VID)
switch(vlan)#no vlan 2
no gvrp
V
Disable GVRP
switch(vlan)#no gvrp
IEEE 802.1Q VLAN
vlan 8021q port
[PortNumber]
access-link untag
[UntaggedVID]
V
Assign a access link for VLAN by
port, if the port belong to a trunk
group, this command can’t be
applied.
switch(vlan)#vlan 802.1q port 3 access-
link untag 33
vlan 8021q port
[PortNumber]
trunk-link tag
[TaggedVID List]
V
Assign a trunk link for VLAN by
port, if the port belong to a trunk
group, this command can’t be
applied.
switch(vlan)#vlan 8021q port 3 trunk-
link tag 2,3,6,99
or
switch(vlan)#vlan 8021q port 3 trunk-
link tag 3-20
vlan 8021q port
[PortNumber]
hybrid-link untag
[UntaggedVID]
tag
[TaggedVID List]
V
Assign a hybrid link for VLAN by
port, if the port belong to a trunk
group, this command can’t be
applied.
switch(vlan)# vlan 8021q port 3 hybrid-
link untag 4 tag 3,6,8
or
switch(vlan)# vlan 8021q port 3 hybrid-
link untag 5 tag 6-8
vlan 8021q aggreator
[TrunkID]
access-link untag
[UntaggedVID]
V
Assign a access link for VLAN by
trunk group
switch(vlan)#vlan 8021q aggreator 3
access-link untag 33
vlan 8021q aggreator
[TrunkID]
trunk-link tag
[TaggedVID List]
V
Assign a trunk link for VLAN by
trunk group
switch(vlan)#vlan 8021q aggreator 3
trunk-link tag 2,3,6,99
or
switch(vlan)#vlan 8021q aggreator 3
trunk-link tag 3-20
vlan 8021q aggreator
[PortNumber]
hybrid-link untag
[UntaggedVID]
tag
[TaggedVID List]
V
Assign a hybrid link for VLAN by
trunk group
switch(vlan)# vlan 8021q aggreator 3
hybrid-link untag 4 tag 3,6,8
or
switch(vlan)# vlan 8021q aggreator 3
hybrid-link untag 5 tag 6-8
show vlan [VID]
or
show vlan
V
Show VLAN information
switch(vlan)#show vlan 23