ip¶
This is about the ip command in Linux.
Examples¶
The commands here can be shortened like cisco or other network device commands.
Get the default interface¶
Show IP neighbors¶
Show all configured IP addresses¶
This is more reliable than ifconfig, which sometimes omits entries.
Show information about eth0¶
This shows information about eth0 and all the virtual interfaces brought up on the physical interface.
Monitor IP changes¶
Show interfaces that would route to a given network address¶
Show negotiated speeds for all interfaces¶
ip -o link show | awk -F: '{print $2}' | while read -r X ; do
sudo ethtool "${X}" 2>/dev/null |
grep -E 'Settings|Speed' |
xargs echo
done |
awk '{print $3, $5}' |
column -t -s: