API 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 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 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 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 and enter the VLAN number in INTERFACE mode, from 1 to 4093.
interface vlan vlan-id
2. Delete a VLAN in CONFIGURATION mode.
no interface vlan vlan-id
Create VLAN
OS10(config)# interface vlan 108
Delete VLAN
OS10(config)# no interface vlan 108
View configured VLANs
OS10(config)# do show interface vlan
Vlan 1 is up, line protocol is up
Address is , Current address is
Interface index is 69208865
Internet address is not set
MTU 1532 bytes
LineSpeed auto
Flowcontrol rx off tx off
ARP type: ARPA, ARP Timeout: 240
510
Layer 2