Iproute2

From Edgar BV Wiki
Jump to navigation Jump to search

http://www.policyrouting.org/iproute2.doc.html#ss9.16

ip link list - shows the physical devices

ip addr list - shows the adressees the links have

ip addr show dev eth0

Basic ip route - http://linux-ip.net/html/tools-ip-route.html

ip route list - like netstat -rn

/etc/iproute2/rt_tables - contains the routing tables

ip route show table local / main - shows the specified table

ip -s route show cache

ip route flush cache

NB - ip route flush kills all the routing tables!!!

More on routing tables - http://linux-ip.net/html/routing-tables.html

legacy net-tools commands iproute2 replacement commands
arp ip n (ip neighbor)
ifconfig ip a (ip addr), ip link, ip -s (ip -stats)
iptunnel ip tunnel
nameif ip link
netstat ss, ip route (for netstat -r), ip -s link (for netstat -i), ip maddr (for netstat -g)
route ip r (ip route)

eth0 82.94.91.77

eth0:0 188.204.140.196/27