87
switchport
allowed vlan
8021q add [VLAN
ID]
[tagged|untagged]
or
switchport
allowed vlan
8021q remove
[VLAN ID]
or
no switchport
allowed vlan8021q
Interface
configuration
mode
Add port to the VLAN
Remove port to the VLAN
Remove port from all VLAN
except default VLAN
switch(config)#
interface
gigaethernet 1
switch(config-if)#
switchport allowed vlan 8021q
add 2 tagged
or
switch(config-if)#
switchport allowed vlan 8021q
remove 2
or
switch(config-if)#
no switchport allowed vlan
8021q
switchport native
vlan [PVID]
or
no switchport
native vlan
Interface
configuration
mode
Set Port PVID
1
switch(config)#
interface gigaethernet 1
switch(config-if)#
switchport native vlan 2
or
switch(config-if)#
no switchport native vlan
switchport
acceptable-frame-
types [all|tagged]
or
no switchport
acceptable-frame-
types
Interface
configuration
mode
Set accept frame type
all
switch(config)#
interface gigaethernet 1
switch(config-if)#
switchport
acceptable-frame-types all
or
switch(config-if)#
no switchport
acceptable-frame-types