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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-02-2002, 07:04 PM
|
#1
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
ifconfig.eth0 incomplete?
My shiny new lfs system boots up. Mmmmmm, nice. But what of eth0?
more /etc/sysconfig/network-devices/ifconfig.eth0
DEVICE=eth0
BOOTPROTO=yes
ONBOOT=yes
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
I've compiled in the PCMCIA cardbus support (it's a Netgear FA411 for which a drivers included in the kernel). But when I boot into runlevel 3, it complains that the ifconfig.eth0 script is incomplete. Am I missing something in the ifconfig.eth0 file?
Anyone?
Bert
|
|
|
11-02-2002, 07:17 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
BOOTPROTO=yes
yes is not a valid protocol is it?! 
|
|
|
11-03-2002, 05:22 AM
|
#3
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Original Poster
Rep:
|
Sorry, that's meant to read
BOOTPROTO=dhcp
Any ideas?
|
|
|
11-03-2002, 11:16 AM
|
#4
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Original Poster
Rep:
|
More details ...
It says there's a missing IP variable. I can't specify the IP address though because it uses DHCP to get the address from the server through the cable modem ...
Does anyone know where I can get a full list of the entries for this file?
Thanks
Bert
|
|
|
11-03-2002, 02:26 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
I seem to recall having this same problem when I made my LFS. I just copied the same file from my host distro and it worked fine. Sort of cheating, I know, but what you gonna do?
|
|
|
11-03-2002, 03:53 PM
|
#6
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Original Poster
Rep:
|
That's exactly what I did. I'm starting to think that maybe the problems elsewhere ... ?
|
|
|
11-03-2002, 03:53 PM
|
#7
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
do you need "DEVICE=eth0"? I mean, it's int the ifconfig.eth0 file, shouldn't that set what device it is for you?
what do you have in /tec/sysconfig/network?
you should set the default gateway there, which will point to your cabel router. here's mine:
HOSTNAME=lfs2
GATEWAY=192.168.1.1
GATEWAY_IF=eth0
Last edited by adam_boz; 11-03-2002 at 03:55 PM.
|
|
|
11-03-2002, 06:00 PM
|
#8
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Original Poster
Rep:
|
My actual ifcfg-eth0 file on the redhat system has very litle - no IP address at all.
Either way I tried yours and mine but no luck.
When I try
ifconfig eth0 up
I get a no device found error
./network eth0 start
Does nothing!
Should I run the MAKEDEV scritp to (re)generate the /dev drectory?
Thanks for the help
Bert
|
|
|
11-03-2002, 07:05 PM
|
#9
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
have you installed the dhcp client on your box? there is a section in blfs if you haven't.
I don't know if i read your reply wrong... but I gave you the /etc/sysconfig/network file, NOT the /etc/sysconfig/network-devices/ifconfig.eth0 file.
I think that if you are getting "device not found" then you might not have the correct drivers enabled in the kernel. What card/driver are you using?
You should not need to use the MAKEDEV script, you did that when you built LFS, right?
EDIT:
here's what I had in /etc/sysconfig/network-devices/ifconfig.eth0 when I used dhcp:
ONBOOT=yes
DHCP_PROG=/usr/sbin/dhcpcd
DHCP_START="-t 15"
DHCP_STOP=-"-k"
#############################
although, I think that the "-k" option gave me some problems
Last edited by adam_boz; 11-03-2002 at 07:09 PM.
|
|
|
11-04-2002, 06:12 AM
|
#10
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Original Poster
Rep:
|
That'll be it. No dhcp client installed. The lfs chapter gave the impression that it wasn't needed but i guess they were only talking about setting up machines with static IP addresses in that chapter. (Does anyone set up machines with static IPs any more?).
Thanks for your help.
Bert
|
|
|
11-04-2002, 12:59 PM
|
#11
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
hehe... sure, I try not to use dhcp AT ALL. I like just knowing the ip address, without it changing on me all the time..... really nice if you want to use the box as a server of some type.
I've also read that it's a little bit more unsecrure if you use dhcp...
anywase, have fun w/ your new LFS....
-Adam
|
|
|
11-04-2002, 06:41 PM
|
#12
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Depending who your provider is, dhcp is kind of a misnomer. I use shaw cable in Canada and they give you an IP, and only change them once a month or so to shake things up.
Perhaps set up your IP as static, and run dhcp once to get your new IP if they change it on you.
|
|
|
11-04-2002, 06:53 PM
|
#13
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Original Poster
Rep:
|
The reason I said "Does anyone install with static IP" was talking about end-user machines, not servers of course (unless it's edonkey  ). It comes back to the old IPv4 and IPv6 problem.
DHCP is the market's answer to IPv4. Just like we hoped solar-powered cars might be the answer to oil shortages. DHCP is good though - as an end user, I'd prefer it because I'm a moving target for wouldbe miscreants. It might not be secure for a determined attacker but there's usually a firewall of some description sitting between you and the cloud.
The length of the lease on cable IP addresses must depend on traffic. There's really no other way to do it. And if you think about it, not having a static IP always makes sense if you're not running a server.
|
|
|
11-04-2002, 07:45 PM
|
#14
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
I still think that static is better for your lan. Since you know the address of everything, you can easilly get to any machine.... you might need to access boxes that aren't servers. you can then easilly set up hosts so that you don't have to remember all of the ip's w/out needing a dns server.
Also, If you have a large network, it would be too easy for somebody to come along and plug their laptop into the network and start crack'n around... plus, it would make it a lot harder to determine where the intruder plugged in.
I don't know... It's just my preference I guess.
Last edited by adam_boz; 11-04-2002 at 07:48 PM.
|
|
|
All times are GMT -5. The time now is 06:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|