Cisco N7K-C7010 Configuration Guide - Page 96
Configuring the Native VLAN for 802.1Q Trunking Ports
UPC - 882658174445
View all Cisco N7K-C7010 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 96 highlights
Configuring Access and Trunk Interfaces Chapter 3 Configuring Layer 2 Interfaces Send document comments to [email protected] DETAILED STEPS Step 1 Command configure terminal Purpose Enters configuration mode. Step 2 Step 3 Step 4 Example: switch# configure terminal switch(config)# interface {type slot/port | port-channel number} Specifies an interface to configure, and enters interface configuration mode. Example: switch(config)# interface ethernet 3/1 switch(config-if)# switchport mode {access | trunk} Example: switch(config-if)# switchport mode trunk Sets the interface as a Layer 2 trunk port. A trunk port can carry traffic in one or more VLANs on the same physical link (VLANs are based on the trunk-allowed VLANs list). By default, a trunk interface can carry traffic for all VLANs. To specify that only certain VLANs are allowed on the specified trunk, use the switchport trunk allowed vlan command. exit Exits the interface mode. Step 5 Example: switch(config-if)# exit switch(config)# show interface Step 6 Example: switch# show interface copy running-config startup-config Example: switch(config)# copy running-config startup-config (Optional) Displays the interface status and information. (Optional Copies the running configuration to the startup configuration. This example shows how to set Ethernet 3/1 as a Layer 2 trunk port: switch# configure terminal switch(config)# interface ethernet 3/1 switch(config-if)# switchport mode trunk switch(config-if)# Configuring the Native VLAN for 802.1Q Trunking Ports You can configure the native VLAN for 802.1Q trunk ports. If you do not configure this parameter, the trunk port uses the default VLAN as the native VLAN ID. Note You cannot configure an FCoE VLAN as a native VLAN for an Ethernet interface. 3-14 Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x OL-23435-03