Hi, On Fri, Aug 12, 2005 at 08:49:02AM +0300, Al Boldi told us: > Correction: > ping from 10.0.1.2/8 to 10.0.0.1 should route out to 10.0.0.0/8 and > not to 10.0.1.0/24 even if the route lists before 10.0.0.0/8! do you generally want pings to 10.0.0.1 to go out via the 10.0.0.0/8 route or just pings coming from 10.0.1.2 to 10.0.0.1 via this route?? In the former case you need to add an explicit route for this, e.g. ip route add 10.0.0.1/32 dev eth0 in you're case, taking a look at your routing table in a previous email tells me this seems to be what you want. In the latter case you need to do some ip rule magic, see lartc.org. Don't know exactly off the top of my head, but this would probably be something like echo "200 xyz" >>/etc/iproute2/rt_tables ip route add table xyz default dev eth0 ip rule add from 10.0.1.2/8 to 10.0.0.1/32 table xyz (I haven't tried source based routing with routes to directly connected networks, but I think this should work) HTH Sven > > Sorry! > -- Linux zion.homelinux.com 2.6.12-1.1398_FC4 #1 Fri Jul 15 00:52:32 EDT 2005 i686 athlon i386 GNU/Linux 08:34:46 up 1 day, 9:48, 1 user, load average: 0.00, 0.00, 0.00
Attachment:
pgpahrOLoDVGr.pgp
Description: PGP signature