Routers and routes
Router
A device on several networks that forwards packets between them, by destination address.
For each packet it looks up the destination in its routing table, lowers the TTL by one, rewrites the frame's
MAC addresses for the next link and sends it on. A host becomes a router when forwarding is turned on
(net.ipv4.ip_forward).
Read next
- Routing table The list a device uses to decide where each packet goes next.
- TTL A counter in every IP packet, lowered by each router; at zero the packet is dropped.
- Default gateway The router a device sends everything to that is not on its own network.
- NAT A router rewriting addresses as packets pass, usually to hide many private devices behind one address.
- VLAN Several separate networks on one switch, kept apart by a tag in each frame.
- Switched virtual interface A switch's own address inside a VLAN: the VLAN's gateway when the switch routes.
- Network types: LAN, WAN, MAN, PAN, SAN Networks named by their reach: a room, a building, a city, the world, or a storage fabric.
- First-hop redundancy Two or more routers sharing one virtual gateway address, so hosts keep their gateway when a router fails.
- Traceroute Lists the routers on the way to a destination, by sending packets with TTL 1, then 2, then 3.
- Anycast address One address held by several devices; a packet to it reaches the nearest one.
- MPLS Forwarding by a short label put in front of the IP header, instead of by the destination address.
- DHCP relay A router that passes DHCP broadcasts on to a server on another network, so one server can serve many.