Hi
I need to add a persistent route in Ubuntu. Just adding a static route is easy - ususally something along the lines of "route add -net <ip address> netmask <subnet ip> gw <gateway ip>...
Now making it persistent in Windows merely means adding a "-p" to the string. Not so in Ubuntu it seems. One forum suggested going to /etc/network/if-up.d and adding a file named static-route and inserting the following data
#!/bin/sh
# Set static routes
#
# /sbin/route add -net 1.1.1.1 gw 1.1.1.2 netmask 255.2.2.2.2
This is exactly how mine looks apart from modding my actual ip addresses before posting. Now this doesn't work. Is my format correct or is there another way (a better way) of doing this?
Thanks
I need to add a persistent route in Ubuntu. Just adding a static route is easy - ususally something along the lines of "route add -net <ip address> netmask <subnet ip> gw <gateway ip>...
Now making it persistent in Windows merely means adding a "-p" to the string. Not so in Ubuntu it seems. One forum suggested going to /etc/network/if-up.d and adding a file named static-route and inserting the following data
#!/bin/sh
# Set static routes
#
# /sbin/route add -net 1.1.1.1 gw 1.1.1.2 netmask 255.2.2.2.2
This is exactly how mine looks apart from modding my actual ip addresses before posting. Now this doesn't work. Is my format correct or is there another way (a better way) of doing this?
Thanks