It is Monday morning at a district branch of a state-owned bank, and the manager has two stories for you. Last week one teller's PC caught a virus, and for twenty minutes the whole branch crawled. It was not only the tellers: the loan desk slowed down, and so did the CCTV recorder, which has nothing to do with that PC. The week before, a technician was testing two wall sockets. He joined them with a short patch cable, and within a minute every light on the switch was blinking at once and nobody could work, until somebody pulled the cable out.
Both disasters began in the same humble box. In the first, one PC's broadcast reached all seventy devices because the branch was a single flat LAN. In the second, a single broadcast went round a loop of cable for ever, because an Ethernet frame has no counter that ever tells it to die. Both problems have cures built into the switch itself, and a network engineer is expected to know how to switch them on. That is what this chapter teaches.
But before you can switch anything on, you have to talk to the device, so we begin there: how you reach a Cisco router or switch, what its prompt tells you, and where its configuration lives. With that in hand we split one switch into several VLANs, carry them over one cable with a trunk, and join them again with inter-VLAN routing. Then we protect the gateway so that one dead router cannot cut the branch off. After that comes STP, the protocol that would have stopped the frozen branch. Last come the finishing touches: bundling cables with EtherChannel and locking ports with port security.