From: Prashant Batra <prashant0100@gmail.com>
To: linux-newbie@vger.kernel.org, netfilter@vger.kernel.org
Subject: IPv6 routes too much
Date: Fri, 8 Feb 2013 16:18:31 +0530 [thread overview]
Message-ID: <CAG+XuE7FaAwwSq98JTSr3SOxSP2rN1hxFYQ7O=0L_3E=9kVreg@mail.gmail.com> (raw)
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next reply other threads:[~2013-02-08 10:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 10:48 Prashant Batra [this message]
2013-02-08 15:34 ` IPv6 routes too much Jan Engelhardt
2013-02-08 17:38 ` Prashant Batra
[not found] ` <CAG+XuE5g9jJTP4uu5ymQfzvx-O6U9SfK85XGoK+H7yqtVA6A0A@mail.gmail.com>
2013-02-09 3:31 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAG+XuE7FaAwwSq98JTSr3SOxSP2rN1hxFYQ7O=0L_3E=9kVreg@mail.gmail.com' \
--to=prashant0100@gmail.com \
--cc=linux-newbie@vger.kernel.org \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).