-   Linux From Scratch (
-   -   how to setup dhcp in lfs? (

lmmix 02-20-2005 12:30 AM

how to setup dhcp in lfs?
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 08:23 AM


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


lmmix 02-20-2005 08:12 PM


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.9/ -----------------------------------------------------> A
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

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 11:55 AM


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

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:42 PM.