iproute2 comands

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 table table_name – adds a new rule in the table_name table.

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

Print Friendly, PDF & Email



Bài viết liên quan

Be the first to comment

Để lại lời nhắn