How to route

How to manually configure a simple route

 
Setting route from A to B may be:
#My website
route add 84.22.162.129 mask 255.255.255.255 192.168.0.1

Delete the route
route delete 192.168.0.3

Rebuild routes from scratch
#delete all
route -f
#add default 192.168.0.1 gateway to interface 33
route add 0.0.0.0 mask 0.0.0.0 192.168.0.1 IF 33

 

Setting a default gateway
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 10.180.132.254
(where 10.180.132.254 is the gateway)

 

Setting a gateway for a lan segment

>route add 10.180.0.0 mask 255.255.0.0 10.180.132.254

Useful when connected both to a LAN and directly to the internet