Network Configuration Flashcards
What command is used to show/manipulate routing, devices, policy routing and tunnels?
■ ip
■ usage: ip [options] object {command|help}
■ usage: ip addr show ens160
■ usage: ip -s link show ens160
What commands can be used to trace a path to a remote host?
■ traceroute (support UDP and ICMP)
■ tracepath
What command is used to report socket statistics?
■ ss
What are the ways in which NetworkManager can be accessed?
■ nmcli
■ nm-connection-editor
■ nmtui
How does NetworkManager see networking system?
■ device = network interface
■ connection = a configuration used by a device
What command is used to test DNS server connectivity?
■ host [server.domain]
What command is used to test host resolution with the /etc/hosts file?
■ getent hosts [hostname]
If DHCP is used, /etc/resolv.conf is automatically rewritten as interfaces are started, how is this prevented?
■ Add ‘PEERDNS=no’ to the interface configuration file
■ nmcli con mod [interfacename] ipv4.ignore-auto-dns yes
What command is used to check/edit the system hostname?
■ hostnamectl [status]
■ hostnamectl [systemhostname]