CLI Reference Guide-R01

Table Of Contents
Chapter 20
| VLAN Commands
Configuring VLAN Interfaces
– 539 –
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
When changing the PVID for a port using access mode, the port will
automatically join the new PVID VLAN and leave the VLAN which it had joined
before.
When using Access mode, and an interface is assigned to a new VLAN, its PVID
is automatically set to the identifier for that VLAN.
The PVID can be set to any VLAN that the port does not join when using hybrid
or trunk mode, and ingress filtering is disabled.
The PVID can only be set to a VLAN that the port joins when using hybrid or
trunk mode, and ingress filtering is enabled.
Example
The following example shows how to set the PVID for port 1 to VLAN 3:
Console(config)#interface ethernet 1/1
Console(config-if)#switchport native vlan 3
Console(config-if)#
vlan-trunking This command allows unknown VLAN groups to pass through the specified
interface. Use the no form to disable this feature.
Syntax
[no] vlan-trunking
Default Setting
Disabled
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
Use this command to configure a tunnel across one or more intermediate
switches which pass traffic for VLAN groups to which they do not belong.
The following figure shows VLANs 1 and 2 configured on switches A and B, with
VLAN trunking being used to pass traffic for these VLAN groups across switches
C, D and E.