Re: 2nd default gateway

Carsten Aulbert <[email protected]>
Newsgroups org.kernel.vger.linux-admin
Message-ID <[email protected]>

Gery wrote:
> Hi All,
> 
> I have Linux machine with 2 ethernet cards in different segments. Like
> 10.2.1.1 and 192.168.1.1
> Do i need 2 default gateways in routing table? Please, give me an
> example when it may happen.
> 

To my understanding no, that won't work since the default gw is a match
anything solution. Thus if you put two default gws into your routing
table the second one will never be looked at (if sorting stays the same).

HTH

Carsten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.