Chapter 7
Configuring LAN Ports for Layer 2 Switching
•
•
•
•
Complete the steps in the
Note
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
78-14099-04
With Release 12.1(13)E and later releases, the VLAN IDs can be 1 to 4094, except for reserved
VLANs (see
Table 9-1 on page
With 12.1 E releases earlier than Release 12.1(13)E, the VLAN IDs can be 1 to 1005.
The default list of VLANs allowed to be pruned contains all VLANs.
Network devices in VTP transparent mode do not send VTP Join messages. On Catalyst 6500 series
switches with trunk connections to network devices in VTP transparent mode, configure the VLANs used
by the transparent-mode network devices or that need to be carried across the transparent-mode network
devices as pruning ineligible.
"Completing Trunk Configuration" section on page 7-13
1
slot/port]
1
slot/port] trunk
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
9-2).
Purpose
Activates the interface. (Required only if you shut down
the interface.)
Exits configuration mode.
Purpose
1
Displays the running configuration of the interface.
Displays the switch port configuration of the interface.
Displays the trunk configuration of the interface.
End with CNTL/Z.
Configuring LAN Interfaces for Layer 2 Switching
after performing the
7-13