IP address aliases
- From: phil-news-nospam@xxxxxxxx
- Date: 11 Jun 2007 12:40:03 GMT
Seeing another thread mention IP aliases reminded me of my experience with
them. Linux implements this by having fake interfaces for each one, as if
an interface could have only one. But I think that is a wrong way to do it.
Additionally, the logic used by the networking in Linux is to treat an IP
address as belonging to the whole system, rather than a some interface.
One approach I have done on machines with multiple real interfaces to have
the alias IP addresses in an expected place is to place the aliases on the
"lo" interface. They still get ARP-ed OK on each real interface. It works.
One day, I had some time to waste, and I tried to see how many aliases I
could configure. As I added more and more, the act of adding them, and the
network traffic, got slower and slower. By around 27,000 IP aliases added,
it was at the point where I would treat that as worse than a hard limit.
Maybe the only limit is how much memory the machine has. But it seemed
the aliases were stored in a list, perhaps a linked list.
I would suggest a mechanism be made to store IP addresses and IP subnets
in a tree structure with fast lookup (similar to a routing table). This
could be made in one instance for the whole system. Or it could be used
with each interface to handle its IP addresses (one primary IP address and
a tree of aliases) if there remains any need to associate them with an
interface. The mechanism to add and remove these addresses and subnets
should work by the address/subnet itself, imposing no requirement to do a
lookup of which psuedo-interface is being used to hold it.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-06-11-0730@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- Follow-Ups:
- Re: IP address aliases
- From: Rainer Weikusat
- Re: IP address aliases
- Prev by Date: Re: Correct way to control alias of a NIC interface from application running as non-root
- Next by Date: Re: Changing libraries when they are already in process space
- Previous by thread: Correct way to control alias of a NIC interface from application running as non-root
- Next by thread: Re: IP address aliases
- Index(es):
Relevant Pages
|