Moving Away From NetTools And Using IPRoute2


For years nettools has been the defacto standard, commands like ifconfig netstat route etc has been drilled into our typing fingers muscle memory. However more and more systems are using the new IPRoute2 commands, and eventually the old ways will die off...here are the basics on how to use these new IP commands


Setting An Ip Address

Setting the IP to 192.168.0.1, with netmask 255.255.255.0



Show Current IP Address



Delete IP Configuration



Show Routing Table Entry



Display The Route Packets Will Go Through



Changing The Default Route



Show Network Statistics



Show Network Statistics For Specific Interface



Show ARP Entries



Monitor Netlink Messages



Deactivate Network Interface



Activate Network Interface