Configuration Guide
156
Configuring 802.1Q VLAN
802.1Q VLAN Configuration
VLAN Name Status Ports
------- -------- --------- ---------
2 RD active
Switch(config-vlan)#end
Switch#copy running-config startup-config
2.2.2 Configuring the PVID of the Port
Follow these steps to configure the port:
Step 1
configure
Enter global configuration mode.
Step 2
interface {
fastEthernet
port
| range fastEthernet
port-list
| gigabitEthernet
port
| range
gigabitEthernet
port-list
}
Enter interface configuration mode.
port| port-list
: The number or the list of the Ethernet port that you want to configure.
Step 3
switchport pvid
vlan-id
Configure the PVID of the port(s). By default, it is 1.
vlan-id
: The default VLAN ID of the port with the values between 1 and 4094.
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to configure the PVID of port 1/0/5 as VLAN 2:
Switch#configure
Switch(config)#interface gigabitEthernet
1/0/5
Switch(config-if)#switchport pvid
2
Switch(config-if)#show interface switchport gigabitEthernet
1/0/5
Port Gi1/0/5:
PVID: 2
Member in LAG: N/A
Link Type: General
Member in VLAN: