HP Cisco MDS 9140 Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2( - Page 251
vlan (EXEC mode
View all HP Cisco MDS 9140 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 251 highlights
Chapter 2 Ethernet Commands vlan (EXEC mode) Send comments to [email protected] vlan (EXEC mode) To add a VLAN or to enter the VLAN configuration mode, use the vlan command. To delete the VLAN and exit the VLAN configuration mode, use the no form of this command. vlan {vlan-id | vlan-range} no vlan {vlan-id | vlan-range} Syntax Description vlan-id vlan-range Number of the VLAN; the range of valid values is from 1 to 4094. Note You cannot create, delete, or modify VLAN 1 or any of the internally allocated VLANs. Range of configured VLANs; see the "Usage Guidelines" section for a list of valid values. Command Default None Command Modes Configuration mode Note You can also create and delete VLANs in the VLAN configuration mode using these same commands. Command History Release 4.0(0)N1(1a) Modification This command was introduced. Usage Guidelines When you enter the vlan vlan-id command, a new VLAN is created with all default parameters and causes the CLI to enter VLAN configuration mode. If the vlan-id argument that you entered matches an existing VLAN, nothing happens except that you enter VLAN configuration mode. You can enter the vlan-range using a comma (,), a dash (-), and the number. VLAN 1 parameters are factory configured and cannot be changed; you cannot create or delete this VLAN. Additionally, you cannot create or delete VLAN 4095 or any of the internally allocated VLANs. When you delete a VLAN, all the access ports in that VLAN are shut down and no traffic flows. On trunk ports, the traffic continues to flow for the other VLANs allowed on that port, but the packets for the deleted VLAN are dropped. However, the system retains all the VLAN-to-port mapping for that VLAN, and when you reenable, or recreate, that specified VLAN, the switch automatically reinstates all the original ports to that VLAN. Examples This example shows how to add a new VLAN and enter VLAN configuration mode: switch(config)# vlan 2 switch(config-vlan)# OL-16599-01 Cisco Nexus 5000 Series Command Reference 2-103