Configuring Access and Trunk Interfaces

Configuring Access and Trunk Interfaces

This feature is supported on all the directly connected Ethernet and EtherChannel interfaces of the Cisco Nexus 3000 Series switch.

Note You can enable the vlan dot1q tag native command by issuing the command in the global configuration mode.

Configuring Access and Trunk Interfaces

Configuring a LAN Interface as an Ethernet Access Port

You can configure an Ethernet interface as an access port. An access port transmits packets on only one, untagged VLAN. You specify which VLAN traffic that the interface carries. If you do not specify a VLAN for an access port, the interface carries traffic only on the default VLAN. The default VLAN is VLAN1.

The VLAN must exist before you can specify that VLAN as an access VLAN. The system shuts down an access port that is assigned to an access VLAN that does not exist.

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# interface {{type

Specifies an interface to configure, and enters interface

 

slot/port} {port-channel

configuration mode.

 

number}}

 

Step 3

switch(config-if)# switchport

Sets the interface as a nontrunking nontagged single-VLAN

 

mode {access trunk}

Ethernet interface. An access port can carry traffic in one

 

 

VLAN only. By default, an access port carries traffic for

 

 

VLAN1; to set the access port to carry traffic for a different

 

 

VLAN, use the switchport access vlan command.

Step 4

switch(config-if)# switchport

Specifies the VLAN for which this access port will carry

 

access vlan vlan-id

traffic. If you do not enter this command, the access port

 

 

carries traffic on VLAN1 only; use this command to change

 

 

the VLAN for which the access port carries traffic.

This example shows how to set an interface as an Ethernet access port that carries traffic for a specific VLAN only:

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

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

OL-26590-01

53

Page 67
Image 67
Cisco Systems N3KC3064TFAL3, N3KC3048TP1GE manual Configuring Access and Trunk Interfaces