
11
CLI
switchport forbidden
vlan (add|remove)
VLAN-LIST
Admin EXEC
This command perport con-
figures the membership of
the specfied VLANs to for-
bidden. Use "show interface
switchport" command to
show configuration.
switch(config)# interface Giga-
bitEthernet 1
switch(config-if)# switchport
mode hybrid
switch(config-if)# switchport
forbidden vlan 100
management-vlan vlan
<1-4094>
no management-vlan
Admin EXEC
(1) Set <1-4094> as man-
agement VLAN ID; it is rec-
ommended to first create
the VLAN and then assign
the port to it.
(2) When using no com-
mand, restore manage-
ment VLAN to default
VLAN.
(3) To view the created
management VLAN, use
"show management-vlan".
(1) The following example
specifies that management
VLAN 2 is created.
switch(config)# management-
vlan vlan 2
(2) The following example
specifies that management-
VLAN is restored to be default
VLAN.
switch(config)# no manage-
ment-vlan
Q-in-Q
Table 10: Q-in-Q
Function
Privilege
Description
Example
switchport outerpvid <1-
4094>
Admin EXEC
This command configures
the hybrid port’s Outer
PVID. Use "show interface
switchport" command to
show configuration.
This example sets gi2's Outer
PVID to 1024.
switch(config)# interface Giga-
bitEthernet 2
switch(config-if)# switchport
outerpvid 1024
switchport qinqmode
(nni|uni)
Admin EXEC
The qinqmode is used to
configure the hybrid port for
different port roles.
Nni: transfer frame will be
add outer tag Vlan-Identifier
Uni: transfer frame will not
be add outer tag Vlan-Iden-
tifier.
This example shows how to
change gi1 to nni mode and
gi2 to uni mode.
switch(config)# interface Giga-
bitEthernet 1
switch(config-if)# switchport
qinqmode nni
switch(config-if)# exit
switch(config)# interface Giga-
bitEthernet 2
switch(config-if)# switchport
qinqmode uni
vlan outertpid <0x0000-
0xFFFF>
Admin EXEC
Use "vlan outertpid" com-
mand to change outer
VLAN's Tag Protocol Identi-
fier(tpid) configuration.
This example shows how to
modify Tag Protocol Identifier
configuration.
switch(config)# vlan outertpid
0x9100
Table 9: VLAN (Continued)
Function
Privilege
Description
Example