Add an IP alias to ethernet interface

Andrew Beverley andy at andybev.com
Tue Jun 12 09:57:20 PDT 2007


> >> Okay, I see. Nonetheless would it be possible to still either get
> >> the script altered anyway, or to add a note to the networking page
> >> of the book stating that it is just a matter of adding a second
> >> config file in the interface directory for a second address.
> > 
> > I agree with Andy here. Regardless of the reason for alias/label, if 
> > it's used in iproute2, we should expose the functionality. This page
> > I found on linux-ip.net seems to promote using labels when there are 
> > multiple addresses assigned to an interface.
> > 
> > http://linux-ip.net/html/tools-ip-address.html
> 
> Only if you also use ifconfig and want to avoid being confused.  ;-)
> 
> > Unless someone knows problems that will be introduced,
> 
> Can't say that I do.  It just seems like every page I've read on adding
> extra IPs says "add an alias", and it doesn't look like anyone knows
> that you only needed to do that with ifconfig; you don't need the alias
> anymore.  I figured it'd be a bit of education, but in all honesty, it
> doesn't really matter very much.

Correct. That's exactly what I thought (and read) until it was pointed
out on this mailing list. I vote that you add the functionality to the
script as discussed, but add a note explaining that a label is optional
when adding an "alias".

Andy





More information about the lfs-dev mailing list