Configuring VLANs 593
Configuring VLAN Settings for a LAG
The VLAN mode and memberships settings you configure for a port are also 
valid for a LAG (port channel). Beginning in Privileged EXEC mode, use the 
following commands to configure the VLAN mode for a LAG. Once you 
specify the switchport mode settings for a LAG, you can configure other 
VLAN memberships settings that are valid that the switchport mode.
switchport general pvid 
vlan-id
(Optional) Set the port VLAN ID. Untagged traffic that 
enters the switch through this port is tagged with the 
PVID.
vlan-id
 — PVID. The selected PVID assignment must be 
to an existing VLAN. (Range: 1–4093). Entering a PVID 
value does not remove the previous PVID value from the 
list of allowed VLANs.
switchport general 
acceptable-frame-type 
tagged-only
(Optional) Specifies that the port will only accept tagged 
frames. Untagged frames are dropped 
at ingress.
switchport general 
ingress-filtering disable
(Optional) Turn off ingress filtering so that all received 
tagged frames are forwarded whether or not the port is a 
member of the VLAN in the tag.
CTRL + Z Exit to Privileged EXEC mode.
show interfaces 
switchport 
interface
Display information about the VLAN settings configured 
for the specified interface. The 
interface 
variable includes 
the interface type and number. 
Command Purpose
configure Enter global configuration mode.
interface port-channel 
channel-id
Enter interface configuration mode for the specified 
interface. 
channel-id
 — Specific port channel. (Range 1–48). You 
can also specify a range of LAGs with the interface range 
port-channel command, for example, interface range port-
channel 4-8.
switchport mode 
[access|general|trunk]
Configure the interface as an untagged layer 2 VLAN 
interface.
Command Purpose