Example VLAN Trunk Configurations
Note
For examples of configuring trunk links between switches and routers, refer to the Layer 3 Switching
Software Configuration Guide—Catalyst 5000 Family, 4000 Family, 2926G Series, 2926 Series, 2948G,
and 2980G Switches publication.
802.1Q Trunk over Gigabit EtherChannel Link Example
This example configuration shows how to configure an 802.1Q trunk over a Gigabit EtherChannel link
between two switches with 802.1Q-capable hardware. (Use the show port capabilities command to see
if your hardware is 802.1Q-capable.)
Figure 11-1
Figure 11-1 IEEE 802.1Q Trunk Over Gigabit EtherChannel Link
This example shows how to configure the switches to form a four-port Gigabit EtherChannel bundle, and
then configure the EtherChannel bundle as an 802.1Q trunk link.
Note
For complete information on configuring Gigabit EtherChannel, see
EtherChannel and Gigabit EtherChannel."
Step 1
Make sure that all ports on both Switch A and Switch B are assigned to the same VLAN. This VLAN is
used as the 802.1Q native VLAN for the trunk. In this example, all ports are configured as members of
VLAN 1.
Switch_A> (enable) set vlan 1 2/3-6
VLAN
---- -----------------------
1
Switch_A> (enable)
Switch_B> (enable) set vlan 1 3/3-6
VLAN
---- -----------------------
1
Switch_B> (enable)
Confirm the channeling and trunking status of the switches by entering the show port channel and show
Step 2
trunk commands.
Switch_A> (enable) show port channel
No ports channelling
Switch_A> (enable) show trunk
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
11-8
shows two switches connected through four 1000BASE-SX Gigabit Ethernet ports.
2/3
Switch A
2/4
2/5
2/6
Gigabit EtherChannel
IEEE 802.1Q trunk link
Mod/Ports
2/1-6
Mod/Ports
3/1-6
Chapter 11
Configuring VLAN Trunks on Fast Ethernet and Gigabit Ethernet Ports
3/3
Switch B
3/4
3/5
3/6
Chapter 6, "Configuring Fast
78-12647-02