Configuring An Ethernet Interface As A Trunk Port; Configuring A Trunk Port - Cisco WS-C3550-12G Software Configuration Manual

Multilayer switch
Hide thumbs Also See for WS-C3550-12G:
Table of Contents

Advertisement

Chapter 9
Creating and Maintaining VLANs

Configuring an Ethernet Interface as a Trunk Port

Because trunk ports send and receive VTP advertisements, you must ensure that at least one trunk port
is configured on the switch and that this trunk port is connected to the trunk port of a second switch.
Otherwise, the switch cannot receive any VTP advertisements.
This section includes these procedures for configuring an Ethernet interface as a trunk port on the switch:
By default, an interface is in Layer 2 mode. The default mode for Layer 2 interfaces is switchport
Note
mode dynamic desirable. If the neighboring interface supports trunking and is configured to allow
trunking, the link is a Layer 2 trunk or, if the interface is in Layer 3 mode, it becomes a Layer 2 trunk
when you enter the switchport interface configuration command. By default, trunks negotiate
encapsulation. If the neighboring interface supports ISL and 802.1Q encapsulation and both
interfaces are set to negotiate the encapsulation type, the trunk uses ISL encapsulation.

Configuring a Trunk Port

Beginning in privileged EXEC mode, follow these steps to configure a port as an ISL or 802.1Q
trunk port:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
switchport trunk encapsulation {isl |
dot1q | negotiate}
Step 4
switchport mode {dynamic {auto |
desirable} | trunk}
Step 5
switchport access vlan vlan-id
Step 6
switchport trunk native vlan vlan-id
Step 7
end
78-11194-03
Configuring a Trunk Port, page 9-25
Defining the Allowed VLANs on a Trunk, page 9-27
Changing the Pruning-Eligible List, page 9-28
Configuring the Native VLAN for Untagged Traffic, page 9-29
Purpose
Enter global configuration mode.
Enter the interface configuration mode and the port to be configured for
trunking.
Configure the port to support ISL or 802.1Q encapsulation or to negotiate
(the default) with the neighboring interface for encapsulation type.
You must configure each end of the link with the same encapsulation type.
Configure the interface as a Layer 2 trunk (required only if the interface
is a Layer 2 access port or to specify the trunking mode).
(Optional) Specify the default VLAN, which is used if the interface stops
trunking.
For 802.1Q trunks, specify the native VLAN.
Return to privileged EXEC mode.
dynamic auto—Set the interface to a trunk link if the neighboring
interface is set to trunk or desirable mode.
dynamic desirable—Set the interface to a trunk link if the
neighboring interface is set to trunk, desirable, or auto mode.
trunk—Set the interface in permanent trunking mode and negotiate
to convert the link to a trunk link even if the neighboring interface is
not a trunk interface.
Catalyst 3550 Multilayer Switch Software Configuration Guide
Understanding VLAN Trunks
9-25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3550

Table of Contents