From: Adrian Chung <adrian@enfusion-group.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Multipath, 2.4.16 + Julian's patches.
Date: Fri, 14 Dec 2001 15:00:34 +0000 [thread overview]
Message-ID: <marc-lartc-100834209714723@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100831072321841@msgid-missing>
On Fri, Dec 14, 2001 at 01:45:43PM +0200, Julian Anastasov wrote:
> > 50: from all lookup 50
>
> Adrian, check ip rule 50, the target should be main. Try
> all paths with ip route get ...
Okay, my mistake... I modified rule 50 so that the target is now the
'main' table which the kernel seems to populate.
My rules look like this:
[root@wolverine /]# ip rule ls
0: from all lookup local
50: from all lookup main
201: from 216.187.106.224 lookup 201
202: from 24.112.58.139 lookup 202
222: from all lookup 222
32766: from all lookup main
32767: from all lookup default
And main is:
[root@wolverine /]# ip route show table main
192.62.100.1 dev eth0 scope link
24.112.58.139 dev eth1 scope link
216.187.106.224 dev eth2 scope link
216.187.106.128/25 dev eth2 proto kernel scope link src 216.187.106.224
192.62.100.0/24 dev eth0 proto kernel scope link src 192.62.100.1
24.112.58.0/23 dev eth1 proto kernel scope link src 24.112.58.139
127.0.0.0/8 dev lo scope link
The other rules are unchanged from my previous mail.
The weird thing is, even with this rule:
[root@wolverine /]# ip route show table 222
24.0.0.0/8 proto static
nexthop via 24.112.58.1 dev eth1 weight 2
nexthop via 216.187.106.252 dev eth2 weight 1
default proto static
nexthop via 216.187.106.252 dev eth2 weight 2
nexthop via 24.112.58.1 dev eth1 weight 1
I still get the following output:
[root@wolverine /]# ip route get from 192.62.100.1 to 24.2.9.58
24.2.9.58 from 192.62.100.1 via 24.112.58.1 dev eth1
cache mtu 1500 advmss 1460
[root@wolverine /]# ip route get from 192.62.100.1 to 24.2.9.59
24.2.9.59 from 192.62.100.1 via 24.112.58.1 dev eth1
cache mtu 1500 advmss 1460
[root@wolverine /]# ip route get from 192.62.100.1 to 24.2.9.60
24.2.9.60 from 192.62.100.1 via 24.112.58.1 dev eth1
cache mtu 1500 advmss 1460
[root@wolverine /]# ip route get from 192.62.100.1 to 24.1.2.3
24.1.2.3 from 192.62.100.1 via 24.112.58.1 dev eth1
cache mtu 1500 advmss 1460
[root@wolverine /]# ip route get from 192.62.100.1 to 24.112.58.7
24.112.58.7 from 192.62.100.1 dev eth1
cache mtu 1500 advmss 1460
[root@wolverine /]# ip route get from 192.62.100.1 to 24.100.155.45
24.100.155.45 from 192.62.100.1 via 216.187.106.252 dev eth2
cache mtu 1500 advmss 1460
The last one is going out via eth2, instead of eth1, even though eth1
is still up?
My IPtables rules are set up as:
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
If that makes any difference?
--
Adrian Chung (adrian at enfusion-group dot com)
http://www.enfusion-group.com/~adrian
GPG Fingerprint: C620 C8EA 86BA 79CC 384C E7BE A10C 353B 919D 1A17
[rogue.enfusion-group.com] 9:57am up 134 days, 1:56, 2 users
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
next prev parent reply other threads:[~2001-12-14 15:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-14 6:17 [LARTC] Multipath, 2.4.16 + Julian's patches Adrian Chung
2001-12-14 11:09 ` Christoph Simon
2001-12-14 11:45 ` Julian Anastasov
2001-12-14 15:00 ` Adrian Chung [this message]
2001-12-14 15:02 ` Adrian Chung
2001-12-14 15:09 ` Adrian Chung
2001-12-14 15:30 ` Christoph Simon
2001-12-14 15:52 ` Adrian Chung
2001-12-14 16:15 ` Christoph Simon
2001-12-14 17:08 ` Adrian Chung
2001-12-14 17:10 ` Adrian Chung
2001-12-14 17:33 ` Julian Anastasov
2001-12-14 20:20 ` Adrian Chung
2001-12-14 21:24 ` Julian Anastasov
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-100834209714723@msgid-missing \
--to=adrian@enfusion-group.com \
--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.