Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Policy routing missing default table?
@ 2001-06-04 19:08 Adrian Chung
  2001-06-05 12:04 ` Juri Haberland
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Adrian Chung @ 2001-06-04 19:08 UTC (permalink / raw)
  To: lartc

Hi all, this might have been covered, although going over the archives
at mailman.ds9a.nl, I haven't been able to find it:

I seem to be missing the default table, even though I've got a local
and main table:

[root@wolverine net]# ip rule
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup 253

Instead, I've got a '253' table...

'wolverine' is a multihomed machine with addresses on the following
networks:

64.26.132.192/26
192.168.8.0/24
192.62.100.0/24

It has a default route on the 64.26.132.192 network, and also routes
to 192.168.8.2 which has a cable modem attached.

What I want to do is have all traffic from 192.62.100.0/24 routed
through a default gateway of 192.168.8.2 instead of wolverine's
default gateway.  I've accomplished this easily by creating a new
table '1' and rule, the table being created before the 'main' table.

The problem is, with this setup, all traffic for the 64.26.132.192/26
network from 192.62.100.0/24 is also routed through 192.168.8.2.

I got around this by adding an explicit rule to route via
64.26.132.193 for anything on 64.26.132.192/26 into table 1.

I was under the impression that my 3 main tables should have been
'local', 'main', and 'default'.  'main' would contain routes to adjacent
networks, and 'default' would contain default routes.  So I could have
solved my problem by just creating a table with precidence in between
main and default, and changed the default gateway for 192.62.100.0/24
without changing network routes too.

Does this make sense?  And if so, does anyone know why I have a table
'253' with nothing in it, and no 'default'?

I'm running iproute2-2.2.4-now-ss001007.tar.gz from
ftp://ftp.inr.ac.ru, with kernel 2.4.5.

My userland utilities, like ifconfig, ifup, etc are from RH6.2ish.
Would they make a difference?

Thanks!

--
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
[toad.enfusion-group.com] up 2 days, 12 min, 8 users


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-06-05 12:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-04 19:08 [LARTC] Policy routing missing default table? Adrian Chung
2001-06-05 12:04 ` Juri Haberland
2001-06-05 12:10 ` Adrian Chung
2001-06-05 12:17 ` Juri Haberland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox