Today we got to lay our configuring hands on the router. While i’ve previously thought that stand-alone routers are kinda redundant, dinosaurs of a time passed, i’ve come to realize that in a proper setting, a router can be rather useful…. the proper setting being a Large one
.
Furthermore, i got to play with Cisco’s configuration GUI, which much to my surprise, did not suck.
Today’s insights and trivialities:
Duplexity
In a business network environment, set the “backline” switch ports (servers, network equipment…) to full duplex manually and leave the end user ports to auto-negotiation. If one network element [A] is set to full duplex while the other one [B] is set to auto-negotiate, the auto-negotiate process at [B] is going to fail and [B] will communicate in half-duplex, expecting collision detection (”standard” CSMA/CD) on the wire.
If you have a lot of traffic in a configuration with a duplex mismatch, [A] will experience CRC errors and [B] will experience Late Collisions.
Routing
The reason a broadcast package won’t go through a router is that the router will disassemble the L2 header from any incoming traffic, keep the L3 bits, and create a new L2 frame which it forwards down the line if deemed necessary. It’s not a property “of the router port”, it’s a by-product of the router’s design.
A netmask is not a subnet mask. A netmask is a mask tied to the “old” Class-A/B/C (…) networks. A subnet mask, though, can be considered a mask, or at least a bit of one. A proper and academically correct mask will consist of a network mask and an optional subnet mask.
A routing decision is made on the most specific information available (meaning the matching rule with the longest subnet mask). You can thus have one route for 192.168.0.0/16 and another for 192.168.42.0/24. Traffic to the 42-subnet (ha!) will be routed according to the second rule, and there is no difference in which order the rules are listed. It is just common sense to order them in a logical order, but there is nothing that dictates the use of common sense. At least not here.
Loops
A single loop in a normal network (without any counter-measures are applied) can bring the whole network to a screeching halt and make your switches melt… well, figuratively at least. In a situation where two switches are connected with two wires, the first broadcast that appears on the network will be looped infinitely between the switches and distributed all over the network. Inded, the loop will go in two directions between the mis-connected switches, creating a two-way infinite loop and multiple identical copies of the frame, as well as make the bridging tables “vibrate” on the connected equipment. Just one wire, and boom.
An easy remedy is to apply Spanning Tree Protocol available on all managed switches, and possibly on some unmanaged ones. Each STP-capable switch has a Bridge Priority number so bridges/switches can compete who’ll be the root switch of that LAN or VLAN. An unmanaged, non-STP switch can still bring the network down in a mixed environment, as can an unmanaged STP-capable switch where you cannot change the bridge priority number, and you haven’t pimped your “core” switches’ prio yet. If there are many switches with the same priority, the one with the lowest MAC number wins.
STP exists in a multiple of flavours, including a couple of Cisco-proprietary ones.
Uplink load balancing
Real geeks (and real offices) have more than one Internet pipe. With routing, you can rather painlessly have the other one either as a backup connection or use both as uplinks. To share the load among uplinks, set their metric to be the same. To have one pipe as primary and the other as backup, give a higher metric (lower priority) to the backup pipe. Your router should realize what to do if the other pipe goes down.
Cool. Now i wants me another uplink from home (though i’d also want my 24 Mbps pipe to give 24 Mbps down-bandwidth; currently it supports about 11 Mbps).
Other
A welding device will induce so much electromagnetic interference (EMI) that even an shielded twisted pair (STP) cable won’t be unaffected. Use fibre instead.
Make backups of your configuration files before you start to poke around with them. Yes, this applies to network equipment too
.
OSPF works like a flower. Distance vector routing protocols can be s..l…o….w…..
I need to do more binary-decimal conversion in my head (or even on paper).
Is there any use for a network with a /31 mask? Such a network would only have space for the network’s address and the broadcast address.
Is there any use for a mask that isn’t “continuous” (as in 255.0.255.0)? Can it be used to show more routing info in one rule? Should it?
Why does a Cisco router have a power button when a Cisco switch doesn’t?
Can we get a warning that we’re going to be logged out by timeout a bit before we are?
Can we get the tab key for autocompletion and the ? key for command proposal to work together like the tab key does in zsh?
There are bugs on the slides “Host to host packet delivery”. IP is going to address the packet to the other subnet, not the router (unlike L2, which will address the MAC of the router, not the host on the other subnet). ARP is not going to get, or even ask for a MAC address in another subnet and it won’t make a routing decision either (slides 2, 3 and 4 on page 4-87 and on).
Dijkstra was cool (even if he didn’t like Linux). Not only did he develop the spanning tree thingy, but he also developed Reverse polish notation. Kudos post mortem, dude.
If US crypto stuff (keys exceeding a certain length, etc) can’t be exported to dangerous countries like, uh, supposedly Afghanistan, Iraq and other axis-of-eeeevil states, what does the US military use to encrypt their network equipment when they’re on a shooting spr… a military mission there?