Virtual Local Area Network (VLAN) Commands
1067
OL-32830-01 Command Line Interface Reference Guide
56
Syntax
switchport general pvid
vlan-id
no switchport general pvid
Parameters
•
vlan-id
—Specifies the Port VLAN ID (PVID).
Default Configuration
The PVID is the Default VLAN PVID.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
Examples
Example 1 - The following example sets the gi12 PVID to 234.
switchxxxxxx(config)#
interface
gi12
switchxxxxxx(config-if)#
switchport general pvid
234
Example 2 - The following example performs the following:
•
Adds VLANs 2&3 as tagged, and VLAN 100 as untagged to gi14
•
Defines VID 100 as the PVID
switchxxxxxx(config)#
interface
gi14
switchxxxxxx(config-if)#
switchport mode general
switchxxxxxx(config-if)#
switchport general allowed vlan
add
2-3
tagged
switchxxxxxx(config-if)#
switchport general allowed vlan add
100
untagged
switchxxxxxx(config-if)#
switchport general pvid
100
switchxxxxxx(config-if)#
exit
Summary of Contents for 300 Series
Page 2: ......