N o t e
The default status for a Layer 3 VLAN is shutdown. you must use the no
■
shutdown command to enable these ports. You can verify a port's status
by examining the running configuration to see if no shutdown appears for
each port's configuration.
The shutdown and no shutdown commands are not applicable to LAG definition
(configured with the aggregator command) and VLAN definition (configured
with the vlan command), but they are applicable to both LAG interfaces
(configured with the interface lag command) and VLAN interfaces (configured
with the interface vlan command).
Access Port Behavior
■
When an access port is made a member of any other VLAN (switchmode
access vlan <vlan-id>), it is removed from VLAN 1.
If the port is deleted from the VLAN, it is made a member of VLAN 1 again.
■
■
If you change an access port to a trunk port, the native VLAN on the trunk
port is set to VLAN 1.
You must configure a port with the no shutdown command before it
■
becomes active.
Trunk Port Behavior
To change a port from access mode to trunk mode, use the switchport mode
■
trunk command for the desired interface
■
Once the port is made the trunk, the native VLAN for the trunk port is set
to be VLAN 1.
To change the native VLAN for the trunk port using switchport trunk-native
■
vlan <vlan-id>, where VLAN-ID can be from 2-4094).
If you do not need a native VLAN on the trunk port, use the command
■
switchport trunk-native-vlan disallow. This will clear the trunk-native VLAN
and the port will no longer accept any incoming untagged packets
(untagged L2 control packets are fine). Use the command no switchport
trunk-native-vlan disallow will set the native VLAN back to 1.
Trunk port membership is established by using the command switchport
■
trunk-vlans <vlan-id>, where VLAN-ID can be from 2-4094).
Vlan 1 on trunk ports can be used only for native VLAN.
■
■
If you change a trunk port to an access port, it is put in the default VLAN
(VLAN 1).
You must configure a port with the no shutdown command before it
■
becomes active.
VLAN Configuration
Configuring a VLAN
6-7