Re: How many IP address aliases can practically be used on one physical Ethernet interface?



tomasflyer@xxxxxxxxxxxx wrote:

> I am implementing and using a test bed simulating a huge amount of IP
> clients, each preferable having a unique IP address. There is no, no
> way to have an individual physical interface for each simulated
> client so I use IP aliases. Currently it runs on Linux and there is a
> limit of 256 IP addresses per interface, among other things due to a
> hard array limit in Linux net-tools ifconfig. There also seems to be
> other limitations like linear searches in net-tools as well as in
> kernel networking code. Just changing the array limit changed the
> problem to being one of stability and performance.
>
> So I became quite optimistic reading about Virtual Hosts and IP
> aliases in the FreeBSD handbook chapter 11.9:
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-vi
> rtual-hosts.html
>
> "A given network interface has one "real" address, and may have any
> number of "alias" addresses".
>
> So is this really true and where is the catch? Will a FreeBSD 6.0
> accept for example 8190 IP address aliases each on say five physical
> Ethernet interfaces? Will IP addresses be manageable to add, list and
> delete? And how much will networking performance degrade compared to
> using just a few aliases?

After a short test I don't think 8190 aliases will be a problem.

root@africanqueen ~ #ifconfig re0| grep inet | wc -l
18008
root@africanqueen ~ #ifconfig re0 -alias 192.168.10.100
root@africanqueen ~ #ifconfig re0| grep inet | wc -l
18007
root@africanqueen ~ #ifconfig re0 alias 192.168.10.100
root@africanqueen ~ #ifconfig re0| grep inet | wc -l
18008

I don't know if there is a performance degradation on
better hardware, but for my re0 the ftp performance
seems to be the same as with only one IP.

The only "catch" I can see is that it takes a while
to create a few thousand aliases ;-)
On my AMD Athlon(tm) XP 1900+ (1578.59-MHz 686-class CPU)
I get about five aliases per second.

Fabian
--
http://www.fabiankeil.de/

Attachment:signature.asc
Description: PGP signature



Relevant Pages

  • Re: How many IP address aliases can practically be used on one physical Ethernet interface?
    ... > I am implementing and using a test bed simulating a huge amount of IP ... > clients, each preferable having a unique IP address. ... generating 1000 connection requests from one host using 1 IP ... > So I became quite optimistic reading about Virtual Hosts and IP aliases ...
    (freebsd-questions)
  • Re: Outlook 2003 Using Aliases
    ... You didn't say what you actually meant by "aliases." ... I dealt with this by giving her full access to my mailbox ... Sue Mosher, Outlook MVP ... > including email management, for various clients. ...
    (microsoft.public.outlook.general)
  • Re: Blocking UDP Port 1434
    ... We are talking about thousands of clients and I am not ... sure all applications support the use of aliases. ... >> planning to block UDP Port 1434 on all gateways. ...
    (microsoft.public.sqlserver.server)
  • finding IIS alias with script?
    ... a lot of clients wants to put aliases on their sites... ... do you have script ... for searching aliases on their sites, cause sometimes hard to web site name ...
    (microsoft.public.windows.server.scripting)