[Sussex] Persistent routes

Jan Henkins jan at henkins.za.net
Tue May 15 10:45:00 UTC 2012


Hello Paul,



On Tue, May 15, 2012 11:23, Paul Howard wrote:
> Hi all,
>
>
> Am running a couple of Ubuntu 11.10 servers and am having real problems
> getting some static routes working.
>
> I can get the routes working by using:
>
>
> route add -net 192.168.0.0/24 gw 192.168.64.190 dev eth1:0
>
>
> I added the following to my /etc/network/interfaces to make the routes
> persistent:
>
>
> up route add -net 192.168.0.0/24 gw 192.168.64.190 dev eth1:0
>
>
> On restarting the server the routes are not loaded.
>
>
> Anyone got any ideas why this isn't working?

The only thing I can think of is that you are trying to bind static routes
to interface aliases, and not the actual interface device. Try and change
your "eth1:0" to "eth1" and see if that works. Normally what I tend to do
is to call my own script with static routes from rc.local right at the end
of the boot cycle. Not a really neat solution, but it's a cross-distro
technique.

-- 
Regards,
Jan Henkins




More information about the Sussex mailing list