Reference Guide
When you assign a port to a non-default VLAN in Trunk mode, the interface remains an untagged member of the default VLAN and a
tagged member of the new VLAN. When you assign a port to a non-default VLAN in Access mode, it removes from the default VLAN and
is assigned to the new VLAN as an untagged member of the new VLAN.
• VLAN 1 is the default VLAN.
• You cannot change or delete the default VLAN.
• You cannot assign an IP address to the default VLAN.
Use the show vlan command to verify that the interface is part of the default VLAN (VLAN 1).
Default VLAN conguration
OS10# show vlan
Codes: * - Default VLAN, G-GVRP VLANs, R-Remote Port Mirroring VLANs, P-Primary, C-Community, I-
Isolated
Q: A-Access (Untagged), T-Tagged
x-Dot1x untagged, X-Dot1x tagged
G-GVRP tagged, M-Vlan-stack, H-VSN tagged
i-Internal untagged, I-Internal tagged, v-VLT untagged, V-VLT tagged
NUM Status Description Q Ports
* 1 up A Eth1/1/1-1/1/54
Create or remove VLANs
You can create VLANs and add physical interfaces or port-channel (LAG) interfaces to the VLAN as tagged or untagged members. You can
add an Ethernet interface as a trunk port or as an access port, but it cannot be added as both at the same time.
Multiple non-default vlans with physical and port channel ports in access and trunk modes
OS10# show vlan
Codes: * - Default VLAN, G-GVRP VLANs, R-Remote Port Mirroring VLANs, P-Primary, C-Community, I-
Isolated
Q: A-Access (Untagged), T-Tagged
x-Dot1x untagged, X-Dot1x tagged
G-GVRP tagged, M-Vlan-stack, H-VSN tagged
i-Internal untagged, I-Internal tagged, v-VLT untagged, V-VLT tagged
NUM Status Description Q Ports
* 1 up A Eth1/1/2 1/1/3:2 1/1/3:3 1/1/3:4 1/1/4
1/1/5 1/1/6 1/1/7 1/1/8 1/1/9 1/1/10 1/1/11 1/1/12 1/1/13 1/1/14 1/1/15 1/1/16 1/1/17 1/1/18
1/1/19 1/1/20 1/1/21 1/1/22 1/1/23 1/1/24 1/1/25:1 1/1/25:2 1/1/25:3 1/1/25:4 1/1/26 1/1/27
1/1/28 1/1/30 1/1/32
A Po40
200 up T Eth1/1/3:2
T Po40
A Eth1/1/31
320 up T Eth1/1/25:4 1/1/32
T Po40
A Eth1/1/3:1
49 1/1/50 1/1/51 1/1/52 1/1/53 1/1/54
The shutdown command stops L3 (routed) trac only. L2 trac continues to pass through the VLAN. If the VLAN is not a routed VLAN
congured with an IP address, the
shutdown command has no eect on VLAN trac.
When you delete a VLAN (no interface vlan vlan-id command), any interfaces assigned to that VLAN are assigned to the
default VLAN as untagged interfaces.
Congure a port-based VLAN, enter INTERFACE-VLAN mode for VLAN related conguration tasks and create a VLAN. Assign interfaces in
L2 mode to the VLAN to enable it.
234
Layer 2