Chapter 7
Configuring LAN Ports for Layer 2 Switching
Note
Complete the steps in the
tasks in this section.
Completing Trunk Configuration
To complete Layer 2 trunk configuration, perform this task:
Command
Step 1
Router(config-if)# no shutdown
Step 2
Router(config-if)# end
Verifying Layer 2 Trunk Configuration
To verify Layer 2 trunk configuration, perform this task:
Command
Step 1
Router# show running-config interface type
slot/port
Step 2
Router# show interfaces [type
switchport
Step 3
Router# show interfaces [type
1.
type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
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.
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
78-14064-04
"Completing Trunk Configuration" section on page 7-13
Purpose
Activates the interface. (Required only if you shut down
the interface.)
Exits configuration mode.
Purpose
1
Displays the running configuration of the interface.
1
Displays the switch port configuration of the interface.
slot/port]
1
Displays the trunk configuration of the interface.
slot/port] trunk
Cisco 7600 Series Router Cisco IOS Software Configuration Guide—12.1E
Configuring LAN Interfaces for Layer 2 Switching
End with CNTL/Z.
after performing the
7-13