From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Aulbert Subject: Re: 2nd default gateway Date: Thu, 05 Jun 2008 07:40:18 +0200 Message-ID: <48477C42.90600@welcomes-you.com> References: <4847DB02.4010506@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4847DB02.4010506@gmail.com> Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: zaphod001@gmail.com Cc: linux-admin@vger.kernel.org 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