From: Pierrick Hascoet <pierrick.hascoet@hydromel.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] 1st default gateway is always dead!
Date: Fri, 18 Jan 2002 09:41:15 +0000 [thread overview]
Message-ID: <marc-lartc-101134701022194@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101134469417080@msgid-missing>
This bug is fixed, the patch and explanations from Bert can be found here:
http://marc.theaimsgroup.com/?l=lartc&m\x100885677229167&w=2
Best regards,
Pierrick.
On Fri, 18 Jan 2002, Shanker Balan wrote:
> Hello:
>
> I have been trying to use multiple default gateways over the last 2 days
> on my Debian box and have been fairly successful in understanding the
> fundas. Bert, thanx a lot for all those wonderful documentation at
> http://www.ds9a.nl/2.4Routing/.
>
>
> Something strange is happening when I try adding multiple default
> gateways:
>
> # ip ro add default nexthop via 192.168.1.100 dev eth0 \
> nexthop via 192.168.3.254 dev eth2
>
> # ip ro ls
> 192.168.3.0/24 dev eth2 proto kernel scope link src 192.168.3.24
> 192.168.2.0/24 dev eth1 proto kernel scope link src 192.168.2.254
> 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.24
> default
> nexthop via 192.168.1.100 dev eth0 weight 1 dead
> nexthop via 192.168.3.254 dev eth2 weight 1 ^^^^
>
>
> The first nexthop is _always_ marked dead for some reason though my
> primary gateway "192.168.1.100" _is_ reachable via eth0.
>
> # ping 192.168.1.100 -c 3
> PING 192.168.1.100 (192.168.1.100): 56 data bytes
> 64 bytes from 192.168.1.100: icmp_seq=0 ttl%5 time=0.5 ms
> 64 bytes from 192.168.1.100: icmp_seq=1 ttl%5 time=0.5 ms
> 64 bytes from 192.168.1.100: icmp_seq=2 ttl%5 time=0.5 ms
>
>
> Since the first gw is marked as dead, all the traffic was routed out via
> eth2 to my secondary gateway "192.168.3.254". Load balancing was not
> happening.
>
> Why is the first default nexthop marked dead even though it is
> reachable? This has happened to one other person according the LARTC
> archives, but no solution was discussed.
>
> So i tried a hack, i specified the same gateway twice and it started to
> work! :)
>
> # ip ro add default nexthop via 192.168.1.100 dev eth0 \
> nexthop via 192.168.1.100 dev eth0 \
> nexthop via 192.168.3.254 dev eth2
>
> godzilla:~# ip ro ls
> 192.168.3.0/24 dev eth2 proto kernel scope link src 192.168.3.24
> 192.168.2.0/24 dev eth1 proto kernel scope link src 192.168.2.254
> 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.24
> default
> nexthop via 192.168.1.100 dev eth0 weight 1 dead
> nexthop via 192.168.1.100 dev eth0 weight 1 ^^^^
> nexthop via 192.168.3.254 dev eth2 weight 1
>
>
> # traceroute cnn.com
> traceroute: Warning: cnn.com has multiple addresses; using 207.25.71.28
> traceroute to cnn.com (207.25.71.28), 30 hops max, 38 byte packets
> 1 192.168.3.254 (192.168.3.254) 0.776 ms 0.657 ms 0.415 ms
> [..]
>
> # traceroute in.yahoo.com
> traceroute to vip2.in.yahoo.com (203.199.70.100), 30 hops max, 38 byte
> packets
> 1 192.168.1.100 (192.168.1.100) 0.858 ms 0.505 ms 0.380 ms
> [..]
>
>
> Could anyone explain why the first nexthop is marked dead?
>
> Thank you for your time.
>
> -- Shanu
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
prev parent reply other threads:[~2002-01-18 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-18 9:12 [LARTC] 1st default gateway is always dead! Shanker Balan
2002-01-18 9:41 ` Pierrick Hascoet [this message]
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=marc-lartc-101134701022194@msgid-missing \
--to=pierrick.hascoet@hydromel.net \
--cc=lartc@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.