From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: two default routes
Date: Mon, 22 Mar 2010 15:54:42 +0100 [thread overview]
Message-ID: <4BA784B2.9030406@plouf.fr.eu.org> (raw)
In-Reply-To: <cfeab66d1003220335y1020f343u14097acc1ee50c09@mail.gmail.com>
Hello,
ratheesh k a écrit :
>
> i have two default routes , I used below two commands to add routes .
>
> route add default gw 192.168.1.1 dev eth0 metric 0
> route add default gw 10.232.18.5 dev eth1 metric 1
>
> So 10.232.18.5 will become the default route since it is added
> secondly . All packets are routed to this address.
No. Lower metric wins regardless of route order, so the default gateway
is 192.168.1.1. You can check with "ip route get <destination>".
> Suppose
> 10.232.18.5 machine is down , will the packets will use the next
> default route ?
No, the kernel has no dead gateway detection AFAIK.
next prev parent reply other threads:[~2010-03-22 14:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 10:35 two default routes ratheesh k
2010-03-22 12:48 ` Richard Horton
2010-03-22 14:54 ` Pascal Hambourg [this message]
2010-03-22 15:05 ` ratheesh k
2010-03-22 15:47 ` Pascal Hambourg
2010-03-22 15:56 ` ratheesh k
2010-03-22 16:53 ` Pascal Hambourg
2010-03-22 16:21 ` Richard Horton
2010-03-22 16:26 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BA784B2.9030406@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.