Cisco Configuring Trunk Ports

onfigure a trunk port, perform this task:

Command
Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# interface { type slot / port | port-channel number }

Specifies an interface to configure, and enters interface configuration mode.

Step 3

switch(config-if)# switchport mode { access | trunk }

Sets the interface as an Ethernet 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.

This example shows how to set Ethernet 3/1 as an Ethernet trunk port:

switch# configure terminal
switch(config)# interface ethernet 3/1
switch(config-if)# switchport mode trunk