LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   how to setup dhcp in lfs? (http://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-setup-dhcp-in-lfs-292487/)

lmmix 02-19-2005 11:30 PM

how to setup dhcp in lfs?
 
Hi,
i have done lfs installation, but when i boot,

ip: command not found

and logged in as root, no 'ifconfig' available, what do i do?

--
PS: never mind. found the answer in blfs, i think.

Oliv' 02-20-2005 07:23 AM

Hello,

simply check that your PATH variable contains /sbin
else that iproute2 (and the package which contains ifconfig) were not correctly installed

Oliv'

lmmix 02-20-2005 07:12 PM

Hi,

This gonna be long story, fun. ;)

Well i had touched blfs over lfs, this is mistake, then i can't login into my lfs.
Fortunately, i have a backup lfs image(lfsimage.gz.000, 788.7MB) through 'partimage' tool.

so i rolled back. (it takes 50 minutes,so)
now i have pure lfs partition again, i looked into my lfs, and iproute2.
and i found it didn't compiled successfully,

iproute2-2.6.10-050209.tar.gz
iproute2-2.6.9/ -----------------------------------------------------> A
iproute2-2.6.9_041019-remove_db-1.patch
iproute2-2.6.9-041019.tar.gz
iproute2-2.6.9-050209/ -----------------------------------------> B

problem is "__constant_htons and ip/iptunnel.c" of B and "glibc free()" of A
A and B both can't be compiled itself, and i found a solution.

cd iproute2-2.6.9-050209/
mv ip/iptunnel.c ip/iptunnel.backup
cp ../iproute2-2.6.9/ip/iptunnel.c ip/
patch -p1 < ../iproute2-2.6.9_041019-remove_db-1.patch

./configure
make SBINDIR=/sbin
make SBINDIR=/sbin install

# now i kicked the problem away.

--
PS: Thanks to Oliv',
BTW, in iproute2, it is 'ifcfg' not 'ifconfig', right?

Oliv' 02-21-2005 10:55 AM

Quote:

BTW, in iproute2, it is 'ifcfg' not 'ifconfig', right?
yes ;)
Quote:

problem is "__constant_htons and ip/iptunnel.c"
I've also had a similar problem... I solved it by using another version of iproute2 ;)


All times are GMT -5. The time now is 08:22 PM.