All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Question about limited primary addresses
@ 2004-09-20  3:34 Patrick Turley
  2004-09-20 16:28 ` Patrick Turley
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Turley @ 2004-09-20  3:34 UTC (permalink / raw)
  To: lartc

I just realized that I hadn't actually asked a question when I posted 
this before. Let me try again...

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 the LARTC 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

Does anyone know why there appears to be a limit on the number of 
networks? Does anyone know where in the code this limit arises? Does 
anyone know a way to get around this limit?

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-20 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20  3:34 [LARTC] Question about limited primary addresses Patrick Turley
2004-09-20 16:28 ` 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.