July 22, 2004

ip and route

ip route add 192.168.0.0/24 dev eth0 (add 可以簡寫成 a)
= route add -net 192.168.0.0/24 dev eth0

ip route del default (del 可以簡寫成 d)
= route del -net 0

ip route replace default via 192.168.0.1 (replace 可以簡寫成 r)
= route del -net 0; route add -net 0 gw 192.168.0.1

Posted by pank at July 22, 2004 02:36 PM
Comments
Post a comment













Remember personal info?