On Sep 5, 2005, at 7:33 AM, Archaic wrote:
In the good ol' days, one could merely have an ifconfig eth0:{1,2,3} etc. to alias as many addresses as one desired. Then we switched to iproute2 and that broke. According to "man ip" we need a way to add a LABEL=something to the ifconfig files so we can call ip with a labelargument. At least that seems the only way to do it. At the very least,the ifconfig.eth0:1 idea won't work because ifup uses ip link show toverify the existence of an interface, and eth0:1 will never be listed asit isn't a real interface.
Are you trying to get labels for your "interfaces" or just additional addresses? The 3.2.2 bootscripts call `ip addr add`, which will work for as many IP addresses as you'd like to use on an interface. Unless I'm misreading the scripts (I don't use the LFS bootscripts myself, but I do use multiple addresses per interface) you can simply use multiple config files with the same interface name.
The only thing the label parameter will get you is compatibility with old tools (ifconfig) and old kernels (2.0) that don't deal with interfaces having more than one IP address. The `ip` tool already lets you use `ethX:anything` as a device name -- it ignores a colon and everything after it. Using labels does not change this behavior. Labels are not printed next to IP addresses when you list or show an interface, and do not affect the scope of any operation AFAICT.
Zach
smime.p7s
Description: S/MIME cryptographic signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page