I'm using the route command to update my routing table but if the machine gets rebooted the routes disapper. For example I do this:
route add -net 192.168.100.0 netmask 255.255.255.0 gw 10.208.148.5
This command works, as I'll now be able to reach that 192 network. I can also check /proc/net/route and see that this route has been added to this file.
Whenever the machine gets rebooted, however, this routing info goes away.
How do I add routes that will stay forever? I don't want this routes to ever leave. Thanks.
route add -net 192.168.100.0 netmask 255.255.255.0 gw 10.208.148.5
This command works, as I'll now be able to reach that 192 network. I can also check /proc/net/route and see that this route has been added to this file.
Whenever the machine gets rebooted, however, this routing info goes away.
How do I add routes that will stay forever? I don't want this routes to ever leave. Thanks.