[Xorp-users] retaining static routes
Pavlin Radoslavov
pavlin@icir.org
Thu, 08 Dec 2005 12:52:21 -0800
> In message <200512082024.jB8KOIDx023074@possum.icir.org> you write:
> >> XORP attempts to mark routes that is adds to the kernel, on FreeBSD it
> >> marks them with RTF_PROTO1. When XORP shuts down it should only removed
> >> the marked routes. If XORP is removing routes that were already present
> >> and unmarked this is a bug.
> >>
> >> I just tried a simple experiment on FreeBSD 6.0, I added a static route,
> >> started XORP, then killed it, the route was still there.
> >>
> >> XORP routing protocols will on shutdown attempt to remove all the routes
> >> that they have installed. If for example XORP is configured with a
> >> static route that already existed before XORP was started the route will
> >> be removed. The only way around this would be to take a snapshot of the
> >> routing table on startup and put it back on shutdown. A flag already
> >> exists for interfaces were the original config can be put back on
> >> shutdown. We should perhaps consider a similar option for the routing
> >> table.
> >>
> >> Atanu.
> >
> >I just added a bugzilla entry regarding this configuration flag:
> >http://www.xorp.org/bugzilla/show_bug.cgi?id=413
> >
> >Tom, please let us know if such flag would be sufficient for your
> >need or whether you had something else in mind.
> >
> >Pavlin
>
> Pavlin,
> This is probably more work than you need to do and it doesn't
> solve the problem of your default being deleted when xorp exits if xorp
> installed it for you.
>
> Can you just add a flag to any route that says not to delete it
> when xorp exits no matter what the state was before xorp started?
I presume you have in mind a flag for only the static routes (i.e.,
this flag will be per each static route inside the "static" config
section)?
Pavlin
> >> >>>>> "Tom" == Tom Pusateri <pusateri@bangj.com> writes:
> >>
> >> Tom> Is there a way to retain static routes when xorp terminates?
> >> Tom> if they were in before xorp started, it would be nice if it
> >> Tom> would leave them in. Or have a flag to not remove them.