Linux From ScratchThis 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.
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.
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?
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?
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?
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
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?).
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...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.