background image
202
Chapter 5
Using Spanning Tree with VLANs
Remember that you need to reset the switch after erasing the configura-
tion to clear the configuration. We need to reconfigure the switch with an IP
address and trunking on ports 1/1 and 1/2. Now, we're also going to delete
the configuration on the 1900 so we then will have both switches back to our
STP default:
1900A#delete nvram
This command resets the switch with factory defaults. All system
parameters will revert to their default factory settings. All
static and dynamic addresses will be removed.
Reset system with factory defaults, [Y]es or [N]o? Yes
Now that we have both the switches back to their default configurations,
we'll just configure the IP addresses and turn on trunking on ports 1/1 and
1/2 of the 5000 and ports 0/26 and 0/27 of the 1900:
#config t
(config)#hostname 1900A
1900A(config)#ip address 172.16.10.2 255.255.255.0
1900A(config)#ip default-gateway 172.16.10.1
1900A(config)#int f0/26
1900A(config-if)#trunk on
1900A(config-if)#int f0/27
1900A(config-if)#trunk on
Console> (enable) set prompt Todd5000>
Todd5000> (enable) set int sc0 172.16.10.4 255.255.255.0
Interface sc0 IP address and netmask set.
Todd5000> (enable) set trunk 1/1 on
Port(s) 1/1 trunk mode set to on.
Todd5000> (enable) set trunk 1/2 on
Port(s) 1/2 trunk mode set to on.
Todd5000> (enable)
To verify that the ports are trunking, use the show trunk command:
Todd5000> (enable) sh trunk
Port Mode Encapsulation Status Native vlan
-------- ----------- ------------- ---------- -------
1/1 on isl trunking 1
1/2 on isl trunking 1
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com