Menu
Linux · 09 Topic · 4 steps

Networking Fundamentals

“IP addressing and protocols, network configuration, troubleshooting and client-side DNS.”

Topic 109 is the networking part of the LPIC-1 102-500 exam. It starts with the theory every admin needs (IPv4 and IPv6 addresses, subnets, TCP, UDP, ICMP and well-known ports), then shows how a Linux host gets its network settings and keeps them across reboots.

The second half is hands-on: reading and changing addresses and routes with ip, finding out why a connection fails, and making sure names resolve to the right addresses.

You’ll learn:

  • How to read netmasks and CIDR prefixes, split a network into subnets, and tell private from public addresses
  • The differences between TCP, UDP and ICMP, the ports the exam lists, and what’s new in IPv6
  • How to set a hostname, a static address, a gateway and DNS with hostnamectl, nmcli, ifupdown and systemd-networkd
  • How to troubleshoot with ip, ss, ping, traceroute, tracepath and nc, and what the legacy ifconfig, route and netstat do
  • How /etc/hosts, /etc/resolv.conf and /etc/nsswitch.conf work together, and how to query DNS with dig, host and getent

You’ll need: a Linux machine or VM. A container (docker run -it --rm debian or ubuntu) is enough for the theory, ip, ss, ping and dig, but it has no NetworkManager or systemd, so use a VM with Debian, Ubuntu, Fedora or a RHEL clone for the configuration byte. Looking around works as a normal user; changing addresses, routes, hostnames or files in /etc/ needs root or sudo.

Start reading →
Byte card for Networking Fundamentals: A /n network has 2^(32-n) addresses; private ranges are 10/8, 172.16/12 and 192.168/16. TCP connects and guarantees delivery, UDP just sends, ICMP carries ping and errors. nmcli saves profiles that survive reboots; ip changes are gone after a restart. Debug bottom up: link, address, gateway, route, DNS, then the service port. getent follows /etc/hosts and nsswitch.conf; dig and host only ask DNS.

Byte card

The whole topic on one card

  1. A /n network has 2^(32-n) addresses; private ranges are 10/8, 172.16/12 and 192.168/16.
  2. TCP connects and guarantees delivery, UDP just sends, ICMP carries ping and errors.
  3. nmcli saves profiles that survive reboots; ip changes are gone after a restart.
  4. Debug bottom up: link, address, gateway, route, DNS, then the service port.
  5. getent follows /etc/hosts and nsswitch.conf; dig and host only ask DNS.

Save it as a cheat sheet, or share it with someone who's learning this too.

Search posts and bytes

Optional account

Keep your progress everywhere

Everything on AminBytes is free to read, with or without an account. Sign in only if you want your commits, streak and merged topics saved, on every device.

or

We keep only your name, avatar and which bytes you finished, and you can delete it all anytime. Privacy