[Sussex] Persistent routes

Simon Story simon.story at catalyst-eu.net
Tue May 15 11:33:24 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 15/05/12 11:43, Paul Howard wrote:

> My setup is slightly different. 1 physical NIC with 2 IP addresses 
> assigned. 1 external with external GW address and 1 Internal. 
> interfaces file is: auto eth1 iface eth1 inet static address
> 213.129.94.230 netmask 255.255.255.240 gateway 213.129.94.238 auto
> eth1:0 iface eth1:0 inet static address 192.168.64.140 netmask
> 255.255.255.192 gateway 192.168.64.190 # static route for traffic
> to 192.168.0.0 up route add -net 192.168.0.0/24
> <http://192.168.0.0/24> gw 192.168.64.190 dev eth1:0 99% of traffic
> needs to go out on the gateway 213.129.94.238 Only traffic to
> 192.168.0.0/24 <http://192.168.0.0/24> needs to use 192.168.64.190

Hi Paul,

You can't specify 'gateway' twice in an debian/ubuntu interfaces file,
that is shorthand for setting the default route. You can only have one
default route.

Remove the gateway line one eth1:0 and see what happens.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk+yPvsACgkQ0t2asVgsCgAsPwD/btQZzXRFK7Ey7THFA/YYXQ12
I2CN/ulYNt9dQrhqZ5sA/09vB+ttTqgZiVQxGe5vssbOhuj/3+c73Hv6bNiNdS64
=8El8
-----END PGP SIGNATURE-----



More information about the Sussex mailing list