73
vlan port-based
grpname
[Group Name]
grpid
[VLAN ID]
port
[PortNumbers]
VLAN database
mode
Add new port based VALN
switch(vlan)#
vlan port-based
grpname test grpid 2 port 2-4
or
switch(vlan)#
vlan port-based
grpname test grpid 2 port 2,3,4
802.1Q | 802.1Q with GVRP VLAN mode*
vlan 8021q name
[GroupName] vid
[VLAN ID] media
gigaethernet state
active
or
no vlan 8021q
[VLAN ID]
VLAN database
mode
Change the name of VLAN
group, if the group didn’t exist,
this command can’t be applied.
or
Delete port base group ID
switch(vlan)#
vlan 8021q name RD vid 2
media gigaethernet state
active
or
switch(vlan)#
no vlan 8021q 2
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
witch(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-t
Interface
configuration
Set accept frame type
ALL
switch(config)#
interface gigaethernet 1