Sep 16

The iproute2 tools are default installed on most major linux distributions now, but few people know how to use them. Once you are familiar with them though, you will lament having to use ifconfig and route. Here is a quick chart on iproute2 replacement commands.

Ifconfig CommandIP Command
ifconfig -aip addr show
ifconfig eth0 1.2.3.4 netmask 255.255.255.255ip addr add 1.2.3.4 255.255.255.255 dev eth0
netstat -nvrip route
route get 1.2.3.4 (solaris)ip route get 1.2.3.4
route add -net 1.2.3.0 netmask 255.255.255.0 dev eth0ip route add 1.2.3.0/255.255.255.0 dev eth1
ifconfig eth0 mtu 1496ip link set eth0 mtu 1496
ifconfig eth0 downip link set eth0 down
ifconfig eth0 promiscip link set eth0 promisc on

Enjoy!
  • Digg
  • del.icio.us
  • Google Bookmarks

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.