Routers and routes
Network configuration
A machine's four network settings: the card up, an address and subnet, a default route, a DNS server.
Network configuration is a machine's four settings: the card up, an address and subnet, a default route, a DNS server.
ip link, ip addr and ip route change the running kernel at once; a reboot forgets them. To last, the settings go
in a file a service applies at every boot: /etc/network/interfaces (ifup), a .network file (systemd-networkd) or
a NetworkManager profile. Each holds the values (static) or says "ask DHCP".
Read next
- Network interface A card a machine sends and receives through, switched on or off, with or without a live link.
- IP address A device's address across networks: 32 bits, written as four numbers like 10.0.1.10.
- Default gateway The router a device sends everything to that is not on its own network.
- Recursive resolver The DNS server a device asks: it does the whole search and caches the answers.
- DHCP How a device gets its address, gateway and DNS server when it joins a network.