Re: "Silly" question about IP, NICs, and Linux

From: Neil Horman
Date: Tue Aug 28 2007 - 08:09:44 EST


On Tue, Aug 28, 2007 at 11:35:20AM +0000, Mateus Interciso wrote:
> Hello,
> Is there a way to create thousands of internal ips (like 10.0.0.1) on
> just one linux box, with 2 NICs?
> I need this for a final paper for university, it would be about routing
> and load balancing, and since I don't have thousands of computers, I
> would need another way, is there any?
>
> Thanks a lot.
>
> Mateus
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html

You could add multiple ips to each interface using iproute2, but for your
described need it would probably just be easier to write a program to generate
packets with varying mac/ip addresses using a raw socket and libnet

Neil

--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*nhorman@xxxxxxxxxxxxx
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html