[quagga-dev 6267] Re: [PATCH 19/21] Manage system routes with zebra

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Thu Dec 4 00:25:22 GMT 2008


> -----Original Message-----
> From: Stephen Hemminger [mailto:shemminger at vyatta.com]
> Sent: den 3 december 2008 23:24
> To: Joakim Tjernlund
> Cc: 'Jeremy Jackson'; paul at clubi.ie; quagga-dev at lists.quagga.net
> Subject: Re: [quagga-dev 6246] Re: [PATCH 19/21] Manage system routes with zebra
> 
> On Wed, 3 Dec 2008 22:19:34 +0100
> "Joakim Tjernlund" <Joakim.Tjernlund at transmode.se> wrote:
> 
> > > -----Original Message-----
> > > From: Joakim Tjernlund [mailto:Joakim.Tjernlund at transmode.se]
> > > Sent: den 2 december 2008 19:46
> > > To: 'Stephen Hemminger'
> > > Cc: 'Jeremy Jackson'; 'paul at clubi.ie'; 'quagga-dev at lists.quagga.net'
> > > Subject: RE: [quagga-dev 6246] Re: [PATCH 19/21] Manage system routes with zebra
> > >
> > > > -----Original Message-----
> > > > From: Stephen Hemminger [mailto:shemminger at vyatta.com]
> > > > Sent: den 2 december 2008 19:35
> > > > To: Joakim Tjernlund
> > > > Cc: 'Jeremy Jackson'; paul at clubi.ie; quagga-dev at lists.quagga.net
> > > > Subject: Re: [quagga-dev 6246] Re: [PATCH 19/21] Manage system routes with zebra
> > > >
> > > > On Tue, 2 Dec 2008 19:20:15 +0100
> > > > "Joakim Tjernlund" <Joakim.Tjernlund at transmode.se> wrote:
> > > >
> > > > > > -----Original Message-----
> > > > > > From: Stephen Hemminger [mailto:shemminger at vyatta.com]
> > > > > > Sent: den 2 december 2008 17:58
> > > > > > To: Jeremy Jackson
> > > > > > Cc: joakim.tjernlund at transmode.se; paul at clubi.ie; quagga-dev at lists.quagga.net
> > > > > > Subject: Re: [quagga-dev 6246] Re: [PATCH 19/21] Manage system routes with zebra
> > > > > >
> > > > > > On Tue, 02 Dec 2008 11:16:33 -0500
> > > > > > Jeremy Jackson <jerj at coplanar.net> wrote:
> > > > > >
> > > > > > >
> > > > > > > On Tue, 2008-12-02 at 14:46 +0100, Joakim Tjernlund wrote:
> > > > > > > > On Fri, 2008-08-15 at 21:31 -0700, Stephen Hemminger wrote:
> > > > > > > > > This adds a new flag to the zebra daemon that causes it to add and
> > > > > > > > > remove system routes (ie connected and kernel routes). This causes
> > > > > > > > > zebra to be the complete route manager for the system.
> > > > > > > > >
> > > > > > > > > The behaviour is more like a router OS, and different than normal
> > > > > > > > > Linux, so it is optional.
> > > > > > > >
> > > > > > > > Interesting, I have been thinking of this myself. Lets see if I got this
> > > > > > > > right, if I add default route on the kernel cmdline I can change/delete
> > > > > > > > that route later via zebra?
> > > > > > >
> > > > > > > How about different routing tables?
> > > > > > >
> > > > > >
> > > > > > Zebra just acts as a routing store. It collects all the routing changes
> > > > > > on the system and if link detect is enabled, removes those routes,
> > > > > > then restores them when link comes back.
> > > > >
> > > > > hmm, I had hoped I could change/delete routes too. Would that be difficult
> > > > > to add?
> > > > >
> > > > >     Jocke
> > > > >
> > > >
> > > > You can delete and add routes like always.  You might want to add more options
> > > > to set scope and protocol
> > >
> > > Oh, maybe I misread you. I want to change/delete the default route added at boot time
> > > by the kernel. Is that possible?
> > >
> >
> > So I tested it a bit and I can't change/delete kernel routes(not with ip route anyway)
> > such as default gateway.
> > I think it would be an useful addition if one could do that too.
> >
> >  Jocke
> 
> the problem is that vtysh version of 'ip route' doesn't have enough options
> to specify the full state of the imported routes.  It needs scope, protocol and
> metric to match.

So it seems. Would it be acceptable to add this to ip route? 
Perhaps one can extend the new -S option include kernel routes too, that is, kernel 
and static routes are the same?

       Jocke  




More information about the Quagga-dev mailing list