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
Leave a comment