Cisco Nexus 3000 NX-OS Configuring VLAN and VTP


A VLAN is a group of end stations in a switched network that is logically segmented by function or application, without regard to the physical locations of the users. Any switch port can belong to a VLAN, and unicast, broadcast, and multicast packets are forwarded and flooded only to end stations in that VLAN. Each VLAN is considered as a logical network, and packets destined for stations that do not belong to the VLAN must be forwarded through a router.

VLANs as Logically Defined Networks

VLANs are numbered from 1 to 4094. All configured ports belong to the default VLAN when you first bring up the switch. The default VLAN (VLAN1) uses only default values. You cannot create, delete, or suspend activity in the default VLAN.

Creating and Deleting a VLAN

Example, Creating VLAN 20 and name it Finance:

switch# configure terminal 
switch(config)# vlan 20
switch(config-vlan)# name Finance
switch(config-vlan)# state active
switch(config-vlan)# no shutdown

To delete a VLAN:
switch(config)# no vlan 20

Adding Ports 1 to 10 to a VLAN 20

switch# configure terminal
switch(config)# interface ethernet 1/1-10
switch(config-if)# switchport access vlan 5
VLAN Trunking Protocol

VTP is a distributed VLAN database management protocol that synchronizes the VTP VLAN database across domains. A VTP domain includes one or more network switches that share the same VTP domain name and that are connected with trunk interfaces.

Cisco Nexus 3000 NX-OS Limitations for VTP

  • VLAN 1 is required on all trunk ports used for switch interconnects if VTP is supported in the network. Disabling VLAN 1 from any of these ports prevents VTP from functioning properly.
  • If you enable VTP, you must configure either version 1 or version 2.
    The show running-configuration command does not show VLAN or VTP configuration information for VLANs 1 to 1000.
    VTP pruning is not supported.
  • You must enter the copy running-config startup-config command followed by a reload after changing a reserved VLAN range.
  • VTP server mode and VTP client mode are not supported. The only supported mode is transparent mode, which is the default mode.

Configuring VTP:

switch# configure terminal
switch(config)# feature vtp
switch(config)# vtp domain ferdy
switch(config)# vtp version 2
switch(config)# exit

To show the VTP status:
switch(config)# show vtp status

Link to Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide