Topology
Instructions
Connect to the switch using a console connection. Connect a PC to each switch, or connect the switch to the FastEthernet port on a router:
- Add IP addresses to the PCs or router Ethernet interfaces
- Create VLAN4 on the switches
- Set the ports the PCs connect to as access ports (default, but do it anyway)
- Put the two switch ports into VLAN4
- Configure the link between the switches as trunk ports and no shut them
- Wait about 30 seconds, at most, and then ping from PC to PC
- Check which switch is the Root Bridge with the show spanning-tree vlan 4 command
- Set the other switch as the Root Bridge with the spanning-tree vlan 4 priority 0 command
- Now check to see whether the switch has become the Root Bridge
- Remove the spanning-tree vlan 4 priority 0 command to reset the original switch as the Root Bridge (put no in front of the command)
- Now set the other switch as the Root Bridge with the spanning-tree vlan 4 root primary command
Solution Hints and Commands
- vlan 4 to create a VLAN
- sw mode access
- sw mode trunk
- sw access vlan 4
