Cisco Systems N3KC3048TP1GE Configuring Access Host Ports, Configuring Trunk Ports, Procedure

Models: N3KC3064TFAL3 N3KC3048TP1GE

1 164
Download 164 pages 5.98 Kb
Page 68
Image 68
Configuring Access Host Ports

Configuring Access and Trunk Interfaces

Configuring Access Host Ports

Configuring Access Host Ports

By using switchport host, you can make an access port a spanning-tree edge port, and enable bpdu filtering and bpdu guard at the same time.

Before You Begin

Ensure that you are configuring the correct interface; it must be an interface that is connnected to an end station.

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

configuration mode.

Step 3

switch(config-if)# switchport host

Sets the interface to spanning-tree port type edge, turns

 

 

on bpdu filtering and bpdu guard.

 

 

Note

Apply this command only to switchports which

 

 

 

connect to hosts.

This example shows how to set an interface as an Ethernet access host port with EtherChannel disabled:

switch# configure terminal switch(config)# interface ethernet 1/10 switch(config-if)# switchport host

Configuring Trunk Ports

You can configure an Ethernet port as a trunk port; a trunk port transmits untagged packets for the native VLAN plus encapsulated, tagged, packets for multiple VLANs.

Note Cisco NX-OS supports only 802.1Q encapsulation.

To configure a trunk port, perform this task:

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-channelnumber}

configuration mode.

 

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

54

OL-26590-01

Page 68
Image 68
Cisco Systems N3KC3048TP1GE Configuring Access Host Ports, Configuring Trunk Ports, Before You Begin, Procedure, Step