![Cisco 2948G - Catalyst Switch Скачать руководство пользователя страница 240](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462240.webp)
11-10
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 11 Configuring VLAN Trunks on Fast Ethernet and Gigabit Ethernet Ports
Example VLAN Trunk Configurations
Switch_B> (enable) set vlan 1 3/3-6
VLAN Mod/Ports
---- -----------------------
1 3/3-6
Switch_B> (enable)
Step 2
Configure one of the ports in the EtherChannel bundle to negotiate an 802.1Q trunk. The configuration
is applied to all of the ports in the bundle. This example assumes that the neighboring ports on Switch B
are configured to use dot1q or negotiate encapsulation and are in auto trunk mode. The system logging
messages provide information about the formation of the 802.1Q trunk.
Switch_A> (enable) set trunk 2/3 desirable dot1q
Port(s) 2/3-6 trunk mode set to desirable.
Port(s) 2/3-6 trunk type set to dot1q.
Switch_A> (enable) %DTP-5-TRUNKPORTON:Port 2/3 has become dot1q trunk
%DTP-5-TRUNKPORTON:Port 2/4 has become dot1q trunk
%ETHC-5-PORTFROMSTP:Port 2/3 left bridge port 2/3-6
%DTP-5-TRUNKPORTON:Port 2/5 has become dot1q trunk
%ETHC-5-PORTFROMSTP:Port 2/4 left bridge port 2/3-6
%ETHC-5-PORTFROMSTP:Port 2/5 left bridge port 2/3-6
%DTP-5-TRUNKPORTON:Port 2/6 has become dot1q trunk
%ETHC-5-PORTFROMSTP:Port 2/6 left bridge port 2/3-6
%ETHC-5-PORTFROMSTP:Port 2/3 left bridge port 2/3
%ETHC-5-PORTTOSTP:Port 2/3 joined bridge port 2/3-6
%ETHC-5-PORTTOSTP:Port 2/4 joined bridge port 2/3-6
%ETHC-5-PORTTOSTP:Port 2/5 joined bridge port 2/3-6
%ETHC-5-PORTTOSTP:Port 2/6 joined bridge port 2/3-6
Switch_B> (enable) %DTP-5-TRUNKPORTON:Port 3/3 has become dot1q trunk
%DTP-5-TRUNKPORTON:Port 3/4 has become dot1q trunk
%ETHC-5-PORTFROMSTP:Port 3/3 left bridge port 3/3-6
%ETHC-5-PORTFROMSTP:Port 3/4 left bridge port 3/3-6
%ETHC-5-PORTFROMSTP:Port 3/5 left bridge port 3/3-6
%ETHC-5-PORTFROMSTP:Port 3/6 left bridge port 3/3-6
%DTP-5-TRUNKPORTON:Port 3/5 has become dot1q trunk
%DTP-5-TRUNKPORTON:Port 3/6 has become dot1q trunk
%ETHC-5-PORTFROMSTP:Port 3/5 left bridge port 3/3-6
%ETHC-5-PORTFROMSTP:Port 3/6 left bridge port 3/3-6
%ETHC-5-PORTTOSTP:Port 3/3 joined bridge port 3/3-6
%ETHC-5-PORTTOSTP:Port 3/4 joined bridge port 3/3-6
%ETHC-5-PORTTOSTP:Port 3/5 joined bridge port 3/3-6
%ETHC-5-PORTTOSTP:Port 3/6 joined bridge port 3/3-6
Step 3
After the 802.1Q trunk link is negotiated, enter the show trunk command to verify the configuration.
Switch_A> (enable) show trunk
Port Mode Encapsulation Status Native vlan
-------- ----------- ------------- ------------ -----------
2/3 desirable dot1q trunking 1
2/4 desirable dot1q trunking 1
2/5 desirable dot1q trunking 1
2/6 desirable dot1q trunking 1
Port Vlans allowed on trunk
-------- ---------------------------------------------------------------------
2/3 1-1005, 1025-4094
2/4 1-1005, 1025-4094
2/5 1-1005, 1025-4094
2/6 1-1005, 1025-4094
Port Vlans allowed and active in management domain
-------- ---------------------------------------------------------------------