Configuring 802.1Q VLAN 802.1Q VLAN Configuration
Configuration Guide  
  147
Switch(config-if)#switchport check ingress
Switch(config-if)#switchport acceptable frame all
Switch(config-if)#show interface switchport gigabitEthernet 1/0/5
 Port Gi1/0/5:
 PVID: 2
 Acceptable frame type: All
 Ingress Checking: Enable
 Member in LAG: N/A
 Link Type: General
 Member in VLAN:
 Vlan      Name                       Egress-rule
 ----        -----------                -----------
 1            System-VLAN      Untagged
Switch(config-if)#end
Switch#copy running-config startup-config
2.2.3  Adding the Port to the Specified VLAN
Follow these steps to add the port to the specified VLAN:
Step 1 configure
Enter global configuration mode.
Step 2 interface {fastEthernet 
port
 | range fastEthernet 
port-list
 | gigabitEthernet 
port
 | range 
gigabitEthernet 
port-list
 | ten-gigabitEthernet 
port
 | range ten-gigabitEthernet 
port-list
 | 
port-channel 
port-channel-id
 | range port-channel 
port-channel-list
}
Enter interface configuration mode.
Step 3 switchport general allowed vlan 
vlan-list 
{ tagged | untagged }
Add ports to the specified VLAN.
vlan-list: 
Specify the ID or ID list of the VLAN(s) that the port will be added to. The ID ranges 
from 1 to 4094.
tagged | untagged: Select the egress rule for the port. 
Step 4 show interface switchport [fastEthernet 
port
 | gigabitEthernet 
port 
| ten-gigabitEthernet 
port 
| port-channel 
lag-id
]
Verify the information of the port.
Step 5 end
Return to privileged EXEC mode.
Step 6 copy running-config startup-config
Save the settings in the configuration file.