Dec 19, 2016

Modify routing table in Linux

Leave a Comment
Study from good examples:


route add -host 10.10.10.45 gw 192.168.0.1
route del -host 10.10.10.45 gw 192.168.0.1
route del -host 10.10.10.45
route add 192.168.1.5/32 gw 192.168.1.1 eth1
route add -host 10.0.12.36 gw 192.168.0.1
route del -host 10.10.0.5 netmask 255.255.0.0 gw 10.2.0.1 eth0

route del default
route add default gw 192.168.0.1 eth1
route add default gw 10.239.237.1 eth1
route add default gw 10.112.112.112 ppp0

route add -net 192.168.1.0 netmask 255.255.0.0 gw 192.168.1.1 eth1
route add -net 192.168.1.0/24 gw 192.168.1.1 eth1
route del -net 10.1.0.0 netmask 255.255.0.0 gw 10.2.0.1 eth0

route add default gw 192.168.0.1 [dev] eth0
route del default gw 0.0.0.0 dev eth0

sudo route delete 10.10.20.0
sudo route delete -net 10.10.20.0/24
If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment