Concepts / Routers and routes

Routers and routes

Network configuration

Also called /etc/network/interfaces, ifup, systemd-networkd, .network file, NetworkManager, static address, netplan

A machine's four network settings: the card up, an address and subnet, a default route, a DNS server.

ip commands change the kernel now; a file makes it last
ip commands change the kernel now; a file makes it last

ip link, ip addr and ip route change only the running kernel, and a reboot forgets them. Settings last when they are in a file that a networking service applies at every boot.

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".

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab