net-tools <--> iproute2

linux的ip命令和ifconfig类似,ifconfig属于net-tools套件中,ip命令属于iproute2套件中。由于net-tools中的部分命令已经长时间没有更新维护了,所以iproute2的套件大有取代net-tools套件的趋势。

NET-TOOLS IPROUTE2对比

net-tools iproute2
arp -na ip neigh
ifconfig ip link
ifconfig -a ip addr show
ifconfig –help ip help
ifconfig -s ip -s link
ifconfig eth0 up ip link set eth0 up
ipmaddr ip maddr
iptunnel ip tunnel
netstat ss
netstat -i ip -s link
netstat -g ip maddr
netstat -l ss -l
netstat -r ip route
route add ip route add
route del ip route del
route -n ip route show
vconfig ip link

参考&鸣谢