Andrew Beverley wrote:
> 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.
>
> The only reference I can find in LFS documentation is in the Changelog
> for LFS-BOOK-6.1-pre2 which states "January 5, 2005 [jeremy]: Minor
> textual correction in network configuration, since iproute will not
> recognize the old eth0:1 format for ip aliasing. Closes bug 1013."
>
> So, can anyone tell me the 'new' method?
>
> Thanks,
>
> Andy Beverley
>
>
>
Hi Andy,
What you have sounds like it should work. No "new" method I know of. The
only thing I can think of is that you don't have the line telling it to
start at boot time. My LFS eth0 file has a line that says "ONBOOT=yes".
I have a SuSE workstation that has a line that says "STARTMODE='auto'".
That is with the single quotes. I am using secondary addresses on a
RedHat server at work but it has been a long time since I configured the
secondary and can't remember right now what that one looks like. You
don't mention the configuration file that should be in the directory you
do mention. The lines I spoke of should be in the file that is in that
directory. I would copy the file you are using for your primary into the
new directory and just change the address. The rest of what you need to
get it to come up at boot time should be there already.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page