9-31
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter9 Creating and Maintai nin g VLA Ns Understanding VLAN Trunks
Step6 show vlan Verify that the VLANs exist in the database on Switch 1.
Step7 configure terminal Enter global configuration mode.
Step8 interface gigabitethernet 0/1 Enter interface configuration mode, and define Gigabit Ethernet
port0/1 as the interface to be configured as a trunk.
Step9 switchport trunk encapsulation {isl |
dot1q | negotiate}Configure the port to support ISL or 802.1Q encapsulation or to
negotiate with the neighboring interface.
You must configure each end of the link with the same encapsulation
type.
Step10 switchport mode trunk Configure the port as a trunk port.
Step11 end Return to privilege EXEC mode.
Step12 show interfaces gigabitethernet0/1
switchport Verify the VLAN configuration.
Step13 Repeat Steps 7 through 11 on Switch 1 for interface Gi0/2.
Step14 Repeat Steps 7 through 11 on Switch 2 to configure the trunk ports on
interface Gi0/1 and Gi0/2.
Step15 show vlan When the trunk links come up, VTP passes the VTP and VLAN
information to Switch 2. Verify that Switch 2 has learned the VLAN
configuration.
Step16 configure terminal Enter global configuration mode on Switch 1.
Step17 interface gigabitethernet0/1 Enter interface configuration mode, and define the interface to set the
STP port priority.
Step18 spanning-tree vlan 8 port-priority 10 Assign the port priority of 10 for VLAN 8.
Step19 spanning-tree vlan 9 port-priority 10 Assign the port priority of 10 for VLAN 9.
Step20 spanning-tree vlan 10 port-priority 10 Assign the port priority of 10 for VLAN 10.
Step21 exit Return to global configuration mode.
Step22 interface gigabitethernet0/2 Enter interface configuration mode, and define the interface to set the
STP port priority.
Step23 spanning-tree vlan 3 port-priority 10 Assign the port priority of 10 for VLAN 3.
Step24 spanning-tree vlan 4 port-priority 10 Assign the port priority of 10 for VLAN 4.
Step25 spanning-tree vlan 5 port-priority 10 Assign the port priority of 10 for VLAN 5.
Step26 spanning-tree vlan 6 port-priority 10 Assign the port priority of 10 for VLAN 6.
Step27 end Return to privileged EXEC mode.
Step28 show running-config Verify your entries.
Step29 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose