Linux (Ubuntu 12.04) two gateways one nic
Posted
by
David
on Server Fault
See other posts from Server Fault
or by David
Published on 2012-06-21T02:18:17Z
Indexed on
2012/06/21
3:18 UTC
Read the original article
Hit count: 474
I have Ubuntu 12.04 Server edition
Two gateways, both on 192.168.0. network, let's make them 192.168.0.1 and 192.168.0.2
I've read you should be able to add second gateway into /etc/network/interfaces, that it will build out all the routing automatically, but I get "duplicate option" error.
So if I have one default gateway, let's say 0.1, and a connection comes through from the 0.2 gateway, my understanding is that it still tries to respond through 0.1 gateway.
Can we change this behavior?
© Server Fault or respective owner