LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-06-2005, 10:50 PM   #1
tritong
Member
 
Registered: Nov 2005
Posts: 40

Rep: Reputation: 15
Help me ! How to config eth0 on LFS ???


This is my configure (eth on board)
-------------------------
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=10.0.0.200
NETMASK=255.255.255.0
BROADCAST=10.0.0.255
-------------------------
Mainboard Asus A8V
CPU AMD 3000+
512MB DDR 400
HDD 80Gb

LFS kernel 2.6.14

I have installed eth0's driver.

When booting the LFS, it doesn't recognize eth0.

Why ??? What's wrong ???

Please help me !!! Thanks
 
Old 12-07-2005, 01:23 AM   #2
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Did you compile it as a module, or as part of the kernel?
 
Old 12-07-2005, 01:40 AM   #3
tritong
Member
 
Registered: Nov 2005
Posts: 40

Original Poster
Rep: Reputation: 15
I compiled it as a module.

Help me !
 
Old 12-07-2005, 03:42 AM   #4
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Quote:
Originally Posted by tritong
I compiled it as a module.

Help me !
Did you compiled mii also as module as it should?
/etc/resolv and /etc/hosts configured properly?

Last edited by mr_demilord; 12-07-2005 at 03:44 AM.
 
Old 12-07-2005, 08:51 AM   #5
muppski
Member
 
Registered: Feb 2003
Posts: 149

Rep: Reputation: 15
Quote:
Originally Posted by tritong
I compiled it as a module.

Help me !
Does it load the module at bootup?
Whats the name of your NIC and what it's module name?
 
Old 12-07-2005, 08:07 PM   #6
tritong
Member
 
Registered: Nov 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mr_demilord
Did you compiled mii also as module as it should?
/etc/resolv and /etc/hosts configured properly?
/etc/resolv.conf
#Begin /etc/resolv.conf
domain localhost.localdomain
nameserver 203.162.4.190
nameserver 203.162.4.191
#End /etc/resolv.conf

/etc/hosts
#Begin /etc/hosts
127.0.0.1 localhost
#End /etc/hosts

Quote:
Originally Posted by muppski
Does it load the module at bootup?
Whats the name of your NIC and what it's module name?
I used driver for eth0 on the CD (main board)
Name of my NIC is Marvell SysKonnect 1Gb on board
I installed its driver - sklin98 (as a module).
 
Old 12-08-2005, 03:14 AM   #7
tritong
Member
 
Registered: Nov 2005
Posts: 40

Original Poster
Rep: Reputation: 15
help me !!!

How can i solve my problem, please ???
 
Old 12-08-2005, 10:20 AM   #8
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Quote:
Originally Posted by tritong
help me !!!

How can i solve my problem, please ???
Did you compiled mii also as module as it should?

whats the output of
Code:
/sbin/ifconfig
 
Old 12-08-2005, 07:47 PM   #9
tritong
Member
 
Registered: Nov 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Did you compiled mii also as module as it should?
Yes, i did.

# ifconfig
Code:
lo   Link encap: Local Loopback
     inet addr:127.0.0.1 Mask:255.0.0.0
     UP LOOPBACJ RUNNING MTU:16436 Metric:1
     RX packet:0 errors:0 dropped:0 overruns:0 frame:0
     TX packet:0 errors:0 dropped:0 overruns:0 carrier:0
     cllisons:0 txqueuelen:0
     RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
 
Old 12-08-2005, 10:56 PM   #10
piratePenguin
Member
 
Registered: May 2005
Location: Ireland
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
As root, run:

/sbin/modprobe mii
/etc/rc.d/init.d/network start

And it should work.
 
Old 12-09-2005, 09:49 AM   #11
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Rep: Reputation: 15
Hi guys,

Not as if i can solve the tread's question...so sorry...i know this is not the right tread to start but i think u guys are e best person to answer my puzzleless mind.

i am a newbie in linux using RH 9 juz 2mths,

i hv this question: since Linux can change//compile//add modules//source from scratch & all,

Y is there the need for users to upgrade distro till FC4?
Understanding its a better version...with better capabilities.

Isn't it that we can compile, write files & we get the same results or are there any OS propietory restriction or difficulties in itself?
Understanding its open source too.

Is'nt recompiling's the fun part of linux, something like doing a(creating a <LFS> Linux From Scratch).

Or it takes someone//super smart with a strong C language to write it & set the OS up?
Or i got the LFS meaning wrong?

pls advise.............
thanks
 
Old 12-09-2005, 10:17 AM   #12
piratePenguin
Member
 
Registered: May 2005
Location: Ireland
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
Quote:
Originally Posted by SPo2
i hv this question: since Linux can change//compile//add modules//source from scratch & all,

Y is there the need for users to upgrade distro till FC4?
Understanding its a better version...with better capabilities.
Sure, you could checkout the latest, cutting edge version of Xorg from SVN and compile and install it. You can do that on any distribution if you have the balls. However, the benefits of doing so are close to nil, and alot of the time the disadvantages (instability, insecurity) outweigh the advantages.

I think that's what you wanted to know.
Quote:
Isn't it that we can compile, write files & we get the same results or are there any OS propietory restriction or difficulties in itself?
No restrictions, your distribution can't prevent you from compiling something.
Quote:
Is'nt recompiling's the fun part of linux, something like doing a(creating a <LFS> Linux From Scratch).
Some people think so. But most people don't. Compiling is sometimes pretty damn annoying. Sometimes I wish I could just 'apt-get blah' (and I could if I really wanted to).
Quote:
Or it takes someone//super smart with a strong C language to write it & set the OS up?
You don't need to know any C to compile things (unless there's an error in the source code, which there very rarely is), or to set things up.
Quote:
Or i got the LFS meaning wrong?
The LFS meaning.

Hope this helps.

Last edited by piratePenguin; 12-09-2005 at 10:19 AM.
 
Old 12-10-2005, 12:19 PM   #13
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Rep: Reputation: 15
Hi,

thanks for your time answering my questions.

Gives me a better ideas esp the Web page on LFS...........thats really helpful to a newbie like me.......


thanks
 
Old 12-10-2005, 02:09 PM   #14
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
add the following to /etc/modprobe.conf
alias eth0 modulename

Last edited by mr_demilord; 12-11-2005 at 02:47 AM.
 
Old 12-11-2005, 07:34 PM   #15
tritong
Member
 
Registered: Nov 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for your answers. It worked OK.
-------------------------------------------------------------------
Now I want to insert a PCI eth card Intel. Can I config it with the same ???
 
  


Reply



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
Sarge Eth0 config problems rblampain Linux - Distributions 2 10-13-2005 10:41 PM
Eth0 and Eth1 config Bwongar Linux - Networking 1 04-09-2005 08:18 AM
how do i stop eth0 from trying to config at boot? h1tman Linux - Networking 2 04-04-2004 10:38 PM
where are the eth0 config files? Bungholio Linux - Networking 5 07-07-2003 12:45 AM
Saving eth0 config davee Linux - Networking 3 01-21-2003 09:14 AM

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

All times are GMT -5. The time now is 11:15 AM.

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