7-13
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
78-14099-04
Chapter 7 Configuring LAN Ports for Layer 2 Switching
Configuring LAN Interfaces for Layer 2 Switching
Note Complete the steps in the “Completing Trunk Configuration” section on page 7-13 after performing the
tasks in this section.
Completing Trunk Configuration
To complete Layer 2 trunk configuration, perform this task:
Verifying Layer 2 Trunk Configuration
To verify Layer 2 trunk configuration, perform this task:
Configuration and Verification Examples
This example shows how to configure the Fast Ethernet port 5/8 as an 802.1Q trunk. This example
assumes that the neighbor port is configured to support 802.1Q trunking:
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# interface fastethernet 5/8
Router(config-if)# shutdown
Router(config-if)# switchport
Router(config-if)# switchport mode dynamic desirable
Router(config-if)# switchport trunk encapsulation dot1q
Router(config-if)# no shutdown
Router(config-if)# end
Router# exit
This example shows how to verify the configuration:
Router# show running-config interface fastethernet 5/8
Building configuration...
Current configuration:
!
interface FastEthernet5/8
no ip address
switchport
switchport trunk encapsulation dot1q
end
Command Purpose
Step 1 Router(config-if)# no shutdown Activates the interface. (Required only if you shut down
the interface.)
Step 2 Router(config-if)# end Exits configuration mode.
Command Purpose
Step 1 Router# show running-config interface type1
slot/port
1. type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Displays the running configuration of the interface.
Step 2 Router# show interfaces [type1 slot/port]
switchport
Displays the switch port configuration of the interface.
Step 3 Router# show interfaces [type1 slot/port] trunk Displays the trunk configuration of the interface.