GIT – iproute2 comands : while reading the Link Advanced Routing and Trafic Control howto i decided to extract a list of useful commands, in case i forget them later
ip link show – shows the available interfaces on your machine
ip address show – shows the IP addresses attached to your interfaces.
ip route show – shows the available routes on your machine.
ip neigh show – shows the current information in your ARP cache.
ip rule – shows the routing tables active on yout 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 the table_name table.
ip route add default via 188.8.131.52 dev eth0 table table_name – adds a default route on a specific table.