Configuring VTP
Command or Action
Step 3
switch(config-if)# switchport access vlan vlan-id
This example shows how to configure an Ethernet interface to join VLAN 5:
switch# configure terminal
switch(config)# interface ethernet 1/13
switch(config-if)# switchport access vlan 5
Configuring VTP
Beginning with Cisco NX-OS Release 5.0(2)N2(1), you can configure VTP in the client or server mode on
Cisco Nexus 5000 Series switches. Before Cisco NX-OS Release 5.0(2)N2(1), VTP worked only in transparent
mode.
You can enable VTP and then configure the VTP mode (server [default], client, transparent, or off). If you
enable VTP, you must configure either version 1 or version 2. If you are using VTP in a Token Ring
environment, you must use version 2.
SUMMARY STEPS
1. config t
2. feature vtp
3. vtp domain domain-name
4. vtp version {1 | 2}
5. vtp mode {client | server| transparent| off}
6. vtp file file-name
7. vtp password password-value
8. exit
9. (Optional) show vtp status
10. (Optional) show vtp counters
11. (Optional) show vtp interface
12. (Optional) show vtp password
13. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
config t
Example:
switch# config t
switch(config)#
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)N1(1)
50
Purpose
Sets the access mode of the interface to the specified VLAN.
Purpose
Enters configuration mode.
Configuring VLANs