Configure Networking, Time Services Flashcards
What is the command to show all network interfaces?
ip addr
What is the command to show a specific network interface?
ip addr show {ifname}
What is the command to trace the route of a packet?
traceroute
tracepath
What is the command to show listening ports and established connections?
ss
netstat *older
How do you show statistics on a network interface?
ip -s link show {ifname}
Where are networking devices located on the system?
/sys/class/net
How do you see the state of network devices?
nmcli dev status
What is the NetworkManager command to show network configurations?
nmcli con show
What is the NetworkManager command to add a DHCP connection that autoconnects on reboot?
nmcli con add con-name {name} autoconnect yes type ethernet ifname {ifname}
Where are NetworkManager configurations located?
/etc/sysconfig/network-scripts/
*ifcfg- files are config files for network interfaces
What is the NetworkManager command to add a static IP connection that autoconnects on reboot?
nmcli con add con-name {name} autoconnect yes type ethernet ifname {ifname} ip4 {ip} gw4 {gateway}
What is the NetworkManager command to bring down a network connection?
nmcli con down {name}
What is the NetworkManager command to bring up a network connection?
nmcli con up {name}
How do you modify a connection using NetworkManager?
nmcli con mod {name}
*can also edit config files in /etc/sysconfig/network-scripts
How do you delete a NetworkManager connection?
nmcli con del {name}