Add and delete routes
ADD:
sudo route add -net 192.168.0.0 gw 192.168.0.1 netmask 255.255.255.0 dev eth1
DELETE:
sudo route del -net 192.168.0.0 gw 192.168.0.1 netmask 255.255.255.0 dev eth1
also if you are dealing with the 0.0.0.0 address enter default in it's place
to look at the routes enter route -n
sudo route add -net 192.168.0.0 gw 192.168.0.1 netmask 255.255.255.0 dev eth1
DELETE:
sudo route del -net 192.168.0.0 gw 192.168.0.1 netmask 255.255.255.0 dev eth1
also if you are dealing with the 0.0.0.0 address enter default in it's place
to look at the routes enter route -n
Comments
Post a Comment