Adrian Chung wrote: > > On Tue, Jun 05, 2001 at 02:04:01PM +0200, Juri Haberland wrote: > > > 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. > > > > Well, according to the "Linux 2.4 Advanced Routing HOWTO" the default > > table (or 253) should be empty and the default route should be in > > 'main'. > > Hmm, that's strange. So in the situation I have, where the router is > connected to 3 adjacent networks physically, and I only want to alter > the default gateway for one subnet, without affecting the other local > network routes, how would I do it? > > I'm assuming that if I insert a table before 'main', as I currently > do, I have to duplicate all the routes to other local networks. > > If I add the table after 'main', the default route that's in main > overrides whatever default route I would put in the new table. > > Is this logic sensible? I assume so. Actually I'm in a similar situation as you and I'm just about using 'ip' to set up a default route for our backup internet link, which has (for historical reasons) also a subnet with DMZ associated with it. Juri