Users Guide

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
simultaneously.
Multiple non-default vlans with physical and port channel ports in Access and Trunk modes
OS10# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
@ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated
Q: A - Access (Untagged), T - Tagged
NUM Status Description Q Ports
* 1 Active A Eth1/1/1,1/1/4-1/1/21,1/1/24
A Po20,41-48,101
A Po40
200 Active T Eth1/1/3:2
T Po40
A Eth1/1/31
320 Active 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
The shutdown command stops L3routed traffic only. L2 traffic continues to pass through the VLAN. If the VLAN is not a
routed VLAN configured with an IP address, the shutdown command has no effect on VLAN traffic.
When you delete a VLAN using the no interface vlan vlan-id command, any interfaces that are assigned to that VLAN
are assigned to the default VLAN as untagged interfaces.
To configure a port-based VLAN, enter INTERFACE-VLAN mode for VLAN-related configuration tasks and create a VLAN. To
enable the VLAN, assign member interfaces in L2 mode.
1. Create a VLAN or a range of VLANs in CONFIGURATION mode. Enter the VLAN ID numbers from 1 to 4093.
interface vlan vlan-id
interface range vlan vlanID-vlanID,[...]
2. Delete a VLAN or a range of VLANs in CONFIGURATION mode.
no interface vlan vlan-id
no interface range vlan vlanID-vlanID,[...]
Create VLAN
OS10(config)# interface vlan 108
Create a range of VLANs
OS10(config)# interface range vlan 2-10
Delete VLAN
OS10(config)# no interface vlan 108
Delete a range of VLANs
OS10(config)# no interface range vlan 2-10
View configured VLANs
OS10# show interface vlan
Vlan 1 is up, line protocol is up
Address is 00:00:00:00:00:c9, Current address is 00:00:00:00:10:c9
Interface index is 69208865
642
Layer 2