Skip to content

Miscellaneous Networking Commands

Restart Network

Bash
# If a network interface disappears from the list then you need to restart the network service
$> systemctl restart network

Get list of network device interfaces

Bash
1
2
3
4
5
6
7
8
9
$> ip addr

# Or

$> ifconfig

# Or
# Shows only devices and if connected or not
$> nmcli d
Bash
1
2
3
# Shows more information about the device interfaces
# -c adds color
$> ip -c a s

View UDP statistics (i.e. view packet receive/send errors)

Bash
$> netstat -su