LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Why are there 2 different ways to ... (https://www.linuxquestions.org/questions/linux-networking-3/why-are-there-2-different-ways-to-922761/)

Skaperen 01-08-2012 03:39 PM

Why are there 2 different ways to ...
 
Why are there 2 different ways to have multiple IP addresses on a single interface? One of the ways is to simply add IP addresses to a single interface. The other is to create an alias interface name. These are clearly different structures inside the kernel to effectively do the same thing.

The method of using an alias interface name (e.g. eth0:1) is the most awkward to work with (because you have to search to find which interface name has which IP address to delete one, or find an available name to add one). So why can't that one be depricated and just removed in the next major Linux kernel? Both the "ifconfig" and "ip" commands support the simpler method.

Or am I missing some other advantage of interface alias names?

amilo 01-09-2012 07:27 AM

Ifconfig doesn't show the second address set by ip addr add .....

Skaperen 01-09-2012 06:49 PM

Quote:

Originally Posted by amilo (Post 4570131)
Ifconfig doesn't show the second address set by ip addr add .....

Oh, I guess it just does so for IPv6. They should fix that.


All times are GMT -5. The time now is 05:01 PM.