Skill 1 in course 2.4: Network and Security
Network Configuration
Inspect the network, set static IPv4 and IPv6 addresses with NetworkManager, and configure names and resolution.
You will be able to
- Read addresses, routes, listening ports and name servers, and test connectivity layer by layer.
- Create or modify a connection with a static IPv4 and IPv6 address, gateway and DNS, and make it start at boot.
- Set the host name, resolve names through /etc/hosts and DNS, and explain the order they are consulted in.
Lessons
- 01Reading network state and testing connectivityFind the addresses, route, name servers and open ports of a host, and test the network one layer at a time.
ipip addrip routeip -6ssping0/5 exercises - 02Static IPv4 and IPv6 with nmcliGive a connection a fixed address, gateway and DNS for IPv4 and IPv6, make it persistent, and read the keyfile NetworkManager writes.
nmcli connection modifynmcli connection addnmcli connection upnmcli connection reloadnmtui/etc/NetworkManager/system-connections0/6 exercises - 03Host names and name resolutionSet a permanent host name, resolve names with /etc/hosts and DNS, and know which tool consults which source.
hostnamectlhostname/etc/hostname/etc/hosts/etc/nsswitch.confgetent0/5 exercises