11-22
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
78-17058-01
Chapter 11 Configuring VLANs
Configuring VLAN Trunks
Beginning in privileged EXEC mode, follow these steps to configure the network shown in Figure 11-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
Step 1
configure terminal Enter global configuration mode on Switch A.
Step 2
interface fastethernet0/1 Define the interface to be configured as Trunk port 1, and enter interface
configuration mode.
Step 3
port-type nni Configure the interface as an NNI.
Step 4
switchport mode trunk Configure the port as a trunk port.
Step 5
exit Return to global configuration mode.
Step 6
interface fastethernet0/2 Define the interface to be configured as Trunk port 2, and enter interface
configuration mode.
Step 7
port-type nni Configure the interface as an NNI.
Step 8
switchport mode trunk Configure the port as a trunk port.
Step 9
end Return to privileged EXEC mode.
Step 10
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.
Step 11
show vlan Verify that VLANs 2 through 4 and 8 through 10 are configured on
Switch A. If not, create these VLANs.
Step 12
configure terminal Enter global configuration mode.
Step 13
interface fastethernet0/1 Enter interface configuration mode for Trunk port 2.
Step 14
spanning-tree vlan 2-4 cost 30 Set the spanning-tree path cost to 30 for VLANs 2 through 4.
Step 15
exit Return to global configuration mode.
Step 16
interface fastethernet0/2 Enter interface configuration mode for Trunk port 2.
Step 17
spanning-tree vlan 8-10 cost 30 Set the spanning-tree path cost to 30 for VLANs 2 through 4.
Step 18
exit Return to global configuration mode.
Step 19
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.
Step 20
exit Return to privileged EXEC mode.
Step 21
show running-config Verify your entries. In the display, verify that the path costs are set
correctly for both trunk interfaces.
Step 22
copy running-config startup-config (Optional) Save your entries in the configuration file.