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

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 .

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 200.100.50.25 dev eth0 table table_name – adds a default route on a specific table.

Print Friendly

Comments

comments

Bài viết liên quan