Linux ip useful commands

ip -4 -o addr – nicely formatted list of IPv4 addresses on machine

ip link show – shows the available interfaces on machine

ip address show – shows the IP addresses attached to interfaces.

ip route show – shows the available routes on machine.

ip neigh show – shows the current information in ARP cache (same as arp -v).

ip rule – shows the routing tables active on machine.

ip route list table table_name – lists the rules available in a specific table

ip rule add from 10.0.0.1 table table_name – adds a new rule in table_name table.

ip route add default via 200.100.50.25 dev eth0 table table_name – adds a default route on a table.

You can leave a response, or trackback from your own site.

Leave a Reply