11-22
Cisco ME 3400 EthernetAccess Switch SoftwareConfiguration Guide
78-17058-01
Chapter11 Configuring VLANs
Configuring VLAN Trunks
Beginning in privileged EXEC mode, follow these steps to configure the network shown in Figure11-4:
Follow the same steps on Switch B to configure the trunk port for Trunk 1 with a path cost of 30 for
VLANs 2 through 4, and configure the trunk port for Trunk 2 with a path cost of 30 for VLANs 8 through
10.
Command Purpose
Step1 configure terminal Enter global configuration mode on Switch A.
Step2 interface fastethernet0/1 Define the interface to be configured as Trunk port 1, and enter interface
configuration mode.
Step3 port-type nni Configure the interface as an NNI.
Step4 switchport mode trunk Configure the port as a trunk port.
Step5 exit Return to global configuration mode.
Step6 interface fastethernet0/2 Define the interface to be configured as Trunk port 2, and enter interface
configuration mode.
Step7 port-type nni Configure the interface as an NNI.
Step8 switchport mode trunk Configure the port as a trunk port.
Step9 end Return to privileged EXEC mode.
Step10 show running-config Verify your entries. In the display, make sure that the interfaces
configured in Steps 2 and 7 are configured as trunk ports.
Step11 show vlan Verify that VLANs 2 through 4 and 8 through 10 are configured on
Switch A. If not, create these VLANs.
Step12 configure terminal Enter global configuration mode.
Step13 interface fastethernet0/1 Enter interface configuration mode for Trunk port 2.
Step14 spanning-tree vlan 2-4 cost 30 Set the spanning-tree path cost to 30 for VLANs 2 through 4.
Step15 exit Return to global configuration mode.
Step16 interface fastethernet0/2 Enter interface configuration mode for Trunk port 2.
Step17 spanning-tree vlan 8-10 cost 30 Set the spanning-tree path cost to 30 for VLANs 2 through 4.
Step18 exit Return to global configuration mode.
Step19 Repeat Steps 9 through 11 on the other configured trunk interface on
Switch A, and set the spanning-tree path cost to 30 for VLANs 8, 9, and
10.
Step20 exit Return to privileged EXEC mode.
Step21 show running-config Verify your entries. In the display, verify that the path costs are set
correctly for both trunk interfaces.
Step22 copy running-config startup-config (Optional) Save your entries in the configuration file.