LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 11-02-2002, 08:04 PM   #1
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
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
 
Old 11-02-2002, 08:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
BOOTPROTO=yes

yes is not a valid protocol is it?!
 
Old 11-03-2002, 06:22 AM   #3
Bert
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: Reputation: 46
Sorry, that's meant to read

BOOTPROTO=dhcp

Any ideas?
 
Old 11-03-2002, 12:16 PM   #4
Bert
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: Reputation: 46
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
 
Old 11-03-2002, 03:26 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
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?
 
Old 11-03-2002, 04:53 PM   #6
Bert
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: Reputation: 46
That's exactly what I did. I'm starting to think that maybe the problems elsewhere ... ?
 
Old 11-03-2002, 04:53 PM   #7
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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 04:55 PM.
 
Old 11-03-2002, 07:00 PM   #8
Bert
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: Reputation: 46
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
 
Old 11-03-2002, 08:05 PM   #9
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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 08:09 PM.
 
Old 11-04-2002, 07:12 AM   #10
Bert
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: Reputation: 46
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
 
Old 11-04-2002, 01:59 PM   #11
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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
 
Old 11-04-2002, 07:41 PM   #12
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
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.
 
Old 11-04-2002, 07:53 PM   #13
Bert
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: Reputation: 46
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.
 
Old 11-04-2002, 08:45 PM   #14
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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 08:48 PM.
 
  


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
ifconfig eth0 drdarkman Linux - Networking 2 01-30-2005 12:16 PM
ifconfig eth0 drdarkman Linux - Networking 1 01-24-2005 11:40 PM
ifconfig won't find eth0 chorus Linux - Hardware 3 10-02-2004 10:42 PM
ifconfig eth0 up Thorkyl Linux - Networking 6 06-29-2004 03:43 AM
eth0 removed from ifconfig after dhcpcd eth0 johnklvr Linux - Networking 3 01-15-2004 09:21 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration