Cisco Nexus 9000 Series Configuration Manual page 38

Nx-os layer 2 switching configuration
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Creating and Deleting a VLAN - CLI Version
When you delete a VLAN, ports associated to that VLAN become inactive. Therefore, no traffic flows
Note
and the packets are dropped. On trunk ports, the port remains open and the traffic from all other VLANs
except the deleted VLAN continues to flow.
If you create a range of VLANs and some of these VLANs cannot be created, the software returns a message
listing the failed VLANs, and all the other VLANs in the specified range are created.
You can also create and delete VLANs in the VLAN configuration submode.
Note
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Cisco Nexus 9000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
24
Command or Action
config t
Example:
switch# config t
switch(config)#
vlan {vlan-id | vlan-range}
Example:
switch(config)# vlan 5
switch(config-vlan)#
exit
Example:
switch(config-vlan)# exit
switch(config)#
show vlan
Example:
switch# show vlan
copy running-config startup-config
Example:
switch(config)# copy
running-config startup-config
Purpose
Enters configuration mode.
Creates a VLAN or a range or VLANs. If you enter a
number that is already assigned to a VLAN, the device puts
you into the VLAN configuration submode for that VLAN.
If you enter a number that is assigned to an internally
allocated VLAN, the system returns an error message.
However, if you enter a range of VLANs and one or more
of the specified VLANs is outside the range of internally
allocated VLANs, the command takes effect on only those
VLANs outside the range. The range is from 2 to 3967;
VLAN1 is the default VLAN and cannot be created or
deleted. You cannot create or delete those VLANs that are
reserved for internal use.
Exits the VLAN mode.
(Optional)
Displays information and status of VLANs.
(Optional)
Copies the running configuration to the startup configuration.
Configuring VLANs

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents