> > I'm trying to add a second IP address to the eth0 interface. Having done
> > a lot of searching, it seems that the traditional method is to add
> > another interface called eth0:0 with the second ip address. This works
> > fine as a one-off, but if I try to make it permanent by adding
> > a /etc/sysconfig/network-devices/ifconfig.eth0:0 directory then it
> > doesn't come up on boot.

> don't know the new method, but i need this too. So i made a hack to 
> services/ipv4-static and put a file for every eth0:n named alias-n into 
> ifconfig.eth0.

Thanks! After some research yesterday I worked out that the 'new' method
just means that 'ip' doesn't deal with aliased interface names (it only
deals with 'real' interfaces), whereas 'ifconfig' deals with both.
Therefore, if using 'ip' to configure the interfaces instead of ifconfig
(as LFS now does) then using an interface name of eth0:n no longer
works. As you rightly identified, ip uses the 'label' option instead.

However, I hadn't got round to editing the script or replying to the
list, so thanks for sending the patch!

I think this would be a worthwhile inclusion to LFS. Have you emailed
lfs-dev or would you like me to?

Andy


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to