Results 1 to 3 of 3
Hello.
I have a very frustrating distro I'm working with called "Linux from Scratch".
It wasn't my choice, I inherited these boxes.
The documentation on this distro is somewhat sketchy.
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-10-2007 #1Just Joined!
- Join Date
- Dec 2007
- Posts
- 9
Want to add second IP to NIC
Hello.
I have a very frustrating distro I'm working with called "Linux from Scratch".
It wasn't my choice, I inherited these boxes.
The documentation on this distro is somewhat sketchy.
Basically, what I'd like to do is permanently (ie. survive a reboot) add a
second IP to a NIC. (eg. eth0:0)
Now, using "ipconfig eth0:0 192.168.50.50 netmask 255.255.255.0 up" works.
However, it doesn't preserve this once I reboot.
As well, adding /etc/sysconfig/network-devices/ifconfig.eth0:0/ doesn't work.
There is no network-scripts directory off of sysconfig.
There is no rc.local. There is nothing in /etc/rc.d that says "Network" and
there are no conf files there.. just your standard init.d and rc1,2,3,4,etc.d
There are no files on the system that are called "ethcfg" or "ifcfg-eth0"
Would ifcfg work? Does it modify something somewhere?
I'm nearly at the point of ripping my hair out. Where else could it be? I know
that it works because there's another machine I've "Inherited" that already
has two IP's bound to one NIC, but I can't find where the config for it is for
the life of me.
Any ideas? I'm nearly at the end of my rope.
Your help is highly appreciated.
- 12-11-2007 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,722
Already read the Linux From Scratch doco?
Is there an ethnet file? From the doco:
Creating the /etc/init.d/ethnet file
This sub section only applies if you are going to configure a network card. If not, skip this sub section and read on.
Create a new file /etc/init.d/ethnet containing the following:
- 12-11-2007 #3
I haven't worked with a Linux From Scratch box for a long time so you may want to search original documentation if you haven't already. This might be of some help for you. Also what's stopping you from pulling important data off the HDs and installing your distro of choice?


Reply With Quote
