Dump kernel routing table

Ruslan Ermilov ru at freebsd.org
Sat Oct 20 09:56:24 PDT 2007


On Fri, Oct 19, 2007 at 02:05:02PM -0700, Netan wrote:
> On 10/19/07, Stephen Clark <Stephen.Clark at seclark.us> wrote:
> >
> > Netan wrote:
> >
> > >Hello
> > >
> > >I am using the CURRENT release. I wish to dump the kernel routing table.
> > I
> > >think there was a sysctl interface in 4.x FreeBSD release to print it
> > from
> > >userspace. Is there a way to do it now ?..
> > >
> > >Sunny
> > >_______________________________________________
> > >freebsd-net at freebsd.org mailing list
> > >http://lists.freebsd.org/mailman/listinfo/freebsd-net
> > >To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
> > >
> > >
> > >
> > netstat -rn
> 
> 
> 
> All these all the rtentry's in the radix trie ? Or they distilled during
> netstat -rn output ?
> 
Try the undocumented "route -vnd flush" command.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer


More information about the freebsd-net mailing list