IPv6 routes too much

Prashant Batra <[email protected]>
Newsgroups org.kernel.vger.linux-newbie,org.kernel.vger.netfilter
Message-ID <CAG+XuE7FaAwwSq98JTSr3SOxSP2rN1hxFYQ7O=0L_3E=9kVreg@mail.gmail.com>
Hi,

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

Now, when I send packets to ipv6 addresses in this network, from my
linux server, I see kernel adding routes for each of these addresses.
Is this behaviour correct. How can it be avoided?

My problem starts when I have millions of addresses in this network
that I am trying to reach.

A look of my routing table shows-
9aa:0:0:250::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:251::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:252::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:253::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:254::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:255::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:256::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:257::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:258::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:259::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:25a::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:25b::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0
9aa:0:0:25c::/128                           2001:db8:0:242::2
             UGC   0      23       0 eth0

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


Any help is highly appreciated.

thanks,
Prashant
--
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.