Re: IPv6 routes too much

Jan Engelhardt <[email protected]>
Newsgroups org.kernel.vger.linux-newbie,org.kernel.vger.netfilter
Message-ID <[email protected]>
On Friday 2013-02-08 11:48, Prashant Batra wrote:

>I have a case wherein I have a route to a network connected to my
>linux machine via an interface, which I added like-
>
>route add -inet6 9aa::/16 gw 2001:db8:0:242::2 dev eth0

Forget net-tools already. It is not maintained.
There is no issue with iproute.

>like this I get 10k routes
>#cat /proc/net/ipv6_route | wc -l
>10015

It is correct - it dumps routes (for some definition of "route"), in 
particular all FIB entries. You will find the same for IPv4 in 
/proc/net/rt_cache on kernels where the cache has not already been 
removed. That said /proc/net only shows table 254, so the whole procfs 
business is pretty useless.

Just use iproute2, really.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.