Configuring LAN Interfaces for Layer 2 Switching
Configuring a Layer 2 Switching Port as a Trunk
These sections describe configuring a Layer 2 switching port as a trunk:
•
•
•
•
•
•
•
•
•
•
•
Preparing a Layer 2 Switching Port for Configuration as a Trunk
To prepare a Layer 2 switching port for configuration as a trunk, perform this task:
Command
Step 1
Router(config)# interface type
Step 2
Router(config-if)# shutdown
Step 3
Router(config-if)# switchport
1.
type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Configuring the Layer 2 Switching Port as an ISL or 802.1Q Trunk
Complete the steps in the
Note
page 7-8
Cisco 7600 Series Router Cisco IOS Software Configuration Guide—12.1E
7-8
Preparing a Layer 2 Switching Port for Configuration as a Trunk, page 7-8
Configuring the Layer 2 Switching Port as an ISL or 802.1Q Trunk, page 7-8
Configuring the Layer 2 Trunk to Use DTP, page 7-9
Configuring the Layer 2 Trunk Not to Use DTP, page 7-9
Configuring the Default VLAN, page 7-10
Configuring the 802.1Q Native VLAN, page 7-11
Configuring the List of VLANs Allowed on a Trunk, page 7-11
Configuring the List of Prune-Eligible VLANs, page 7-12
Completing Trunk Configuration, page 7-13
Verifying Layer 2 Trunk Configuration, page 7-13
Configuration and Verification Examples, page 7-13
1
slot/port
"Preparing a Layer 2 Switching Port for Configuration as a Trunk" section on
before performing the tasks in this section.
Chapter 7
Configuring LAN Ports for Layer 2 Switching
Purpose
Selects the LAN port to configure.
(Optional) Shuts down the interface to prevent traffic flow
until configuration is complete.
(Optional) Configures the LAN port for Layer 2
switching (required only if the LAN port is not already
configured for Layer 2 switching; see the
LAN Port for Layer 2 Switching" section on page
"Configuring a
7-7).
78-14064-04