Console commands for networking
From Unraid | Docs
This older page has been deprecated, please go to the Console page, Console Commands for Networking section
Here are a few networking commands that will provide more info about the driver, about the card, about its configured parameters and speed, and about its connection statistics.
Note: The ethtool utility is included in some but not all unRAID distributions. See here for more information about ethtool, and a download link.
- lsmod
- lists the installed kernel modules, including your network driver
- ethtool -i eth0
- displays the network driver being used by your network chipset (for eth0), and its version
- ethtool eth0
- displays a number of the settings for your network chipset
- displays the speed setting, typically "Speed: 1000 Mb/s" for a gigabit connection
- displays the Wake-on-LAN setting, typically "Wake-on: g" if enabled for 'magic' packet
- ifconfig
- displays various numeric parameters and statistics for your networking
- displays your MAC address, as HWaddr
- displays your local IP, as inet addr
- displays your MTU setting
- displays assorted transmit and receive statistics, including errors and collisions
- ethtool -S eth0
- displays more detailed network statistics
- net lookup google.com
- check for correct nameserver and DNS configuration, should provide the IP for Google if setup right
- ping -c5 google.com
- another way to check for correct nameserver configuration (if it times out, or produces errors, you need to set a nameserver)
- egrep -i "rc.inet1|((forcedeath|r8169|e1000|e1000e|sky2|skge|tg3|bcm5700|sk98lin)[ :])|dhcp" /var/log/syslog
- displays lines in the system log (/var/log/syslog) affiliated with networking