All of lore.kernel.org
 help / color / mirror / Atom feed
* Limit on Primary Addresses?
@ 2004-09-17 18:21 Patrick Turley
  0 siblings, 0 replies; only message in thread
From: Patrick Turley @ 2004-09-17 18:21 UTC (permalink / raw)
  To: netfilter-devel

This may not be a netfilter-specific issue, but I can't afford to leave 
any stone unturned...

I am trying to configure a Linux box with all possible VLANs (4094 of 
them), and a subnet on each VLAN. Creating the VLANs isn't a problem. 
But, when I try to use "ip addr add ..." commands to assign an IP 
address to each VLAN interface, I get to do about 280 of them before all 
the interfaces on the box become unresponsive. I've also tried to assign 
the same IP addresses all to eth0, and I get the same result.

The problem seems to hinge on the distinction between primary and 
secondary addresses.

If you're reading this mailing list, then you've probably had the need 
(e.g., load testing) to assign thousands of IP addresses to a single 
interface. However, it's usually the case that one is assigning multiple 
addresses that all belong to the same subnet. In that case, the first 
such IP address is "primary" and all the additional addresses that 
belong to the same subnet are "secondary". My investigations tell me 
that "secondary" addresses are much lighter-weight. On the other hand, I 
don't seem to be able to assign more than about 280 "primary" addresses 
in the entire system before all the interfaces become unresponsive.

For additional information about "primary" vs. "secondary" addresses, 
take a look at:

http://www.linux-ip.net/html/linux-ip.html#tools-ip-address-add
http://www.linux-ip.net/gl/ip-cref/node33.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-17 18:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-17 18:21 Limit on Primary Addresses? Patrick Turley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.