LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-19-2005, 11:30 PM   #1
lmmix
Member
 
Registered: Feb 2005
Distribution: debian sid, blfs 6.0
Posts: 41

Rep: Reputation: 15
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.

Last edited by lmmix; 02-19-2005 at 11:38 PM.
 
Old 02-20-2005, 07:23 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

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

Oliv'
 
Old 02-20-2005, 07:12 PM   #3
lmmix
Member
 
Registered: Feb 2005
Distribution: debian sid, blfs 6.0
Posts: 41

Original Poster
Rep: Reputation: 15
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?

Last edited by lmmix; 02-20-2005 at 10:39 PM.
 
Old 02-21-2005, 10:55 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP setup Disqualifier Slackware 10 11-07-2005 07:04 AM
DHCP setup PlorkZ Linux - Networking 14 02-21-2005 10:03 AM
Need to setup DHCP on Slack 10 eosophobia Linux - Networking 1 09-15-2004 11:49 AM
Help with DHCP setup davepal Linux - Networking 0 04-18-2004 07:05 PM
DHCP setup.. masenko703 Linux - Networking 12 05-27-2003 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration