Question about limited primary addresses
Jason Opperisano
opie at 817west.com
Tue Sep 21 21:21:22 CEST 2004
On Tue, 2004-09-21 at 14:51, Patrick Turley wrote:
> I adjusted your script very slightly to put all the addresses in the
> 10/8 subnet:
>
>
> i=1
> function addIP() {
> j=0
> while [ $j -le 255 ]; do
> sudo ip addr add 10.$1.$j.1/24 dev eth0
> let "j = $j + 1"
> done
> }
>
> while [ $i -le 2 ]; do
> addIP $i
> let "i = $i + 1"
> done
>
>
> When I ran this version, I saw the very same failure I've been seeing
> all along.
>
> Would it be possible for you to run the modified version of this script
> on your machine and see if you have any problem?
>
> Thanks again for your time.
not trying to complicate things, but i had to test this on a diff
machine (same HW, but running gentoo instead of FC1--can't blow up my
laptop right this moment).
details:
# uname -a
Linux vmg2 2.4.26-gentoo-r9 #2 Fri Sep 3 07:13:35 EDT 2004 i686 Intel(R)
Pentium(R) 4 CPU 2.20GHz GenuineIntel GNU/Linux
# ip -4 add sh eth0 | wc -l
513
# ip -4 add sh eth0 | head
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 10.1.0.1/24 scope global eth0
inet 10.1.1.1/24 scope global eth0
inet 10.1.2.1/24 scope global eth0
inet 10.1.3.1/24 scope global eth0
inet 10.1.4.1/24 scope global eth0
inet 10.1.5.1/24 scope global eth0
inet 10.1.6.1/24 scope global eth0
inet 10.1.7.1/24 scope global eth0
inet 10.1.8.1/24 scope global eth0
# ip -4 add sh eth0 | tail
inet 10.2.246.1/24 scope global eth0
inet 10.2.247.1/24 scope global eth0
inet 10.2.248.1/24 scope global eth0
inet 10.2.249.1/24 scope global eth0
inet 10.2.250.1/24 scope global eth0
inet 10.2.251.1/24 scope global eth0
inet 10.2.252.1/24 scope global eth0
inet 10.2.253.1/24 scope global eth0
inet 10.2.254.1/24 scope global eth0
inet 10.2.255.1/24 scope global eth0
from a machine assigned 10.1.1.100/16 and 10.2.1.100/16, i can ping:
10.1.0.1, 10.1.1.1, 10.1.2.1, 10.1.3.1, 10.1.4.1, 10.2.254.1, 10.2.25.1,
10.1.25.1, 10.2.255.1
...on the test machine with all the 10.[1-2].[0-255].1/24 addresses.
we might be going about this all wrong...are you sure the problem is the
linux box with all the IP's, and not something else? perhaps you're
overflowing the MAC table of a connected switch (just a thought)?
-j
--
Jason Opperisano <opie at 817west.com>
More information about the netfilter
mailing list