LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2003, 11:47 PM   #1
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Rep: Reputation: 30
ethernet troubles using gentoo 1.4


Hey, just went from slack to gentoo, and so far I think it's fairly good - I'd love it if I could get my ethernet card working...

I compiled VIA-RHINE as a module and added it to /etc/modules.autoload

I have set iface_1 as "dhcp"

I have did "rc-update add net.eth0 defualt" to add it to the bootup list

I get an error at bootup explaining that it could not load eth0 - failed loading needed services - and that it failed to start "netmount".

I went for help on the Gentoo forums and got no help. When I DID get help, I followed some WACKY advice and lead myself to this problem:

Code:
kmod: failed to exec /sbin/modprobe -s -k nls_iso8859rk, errno = 2
That appears before it actually says it is loading the module - I get no errors while it LOADS the module - but before that, when it initializes devices, it gives me that error.

So now not only can I not use my ethernet card I have some sort of problem loading the module

When I ran dmesg | less I get this at the bottom:

Code:
 eth0: VIA Rhine-II at 0xe000
eth0: MII PHY found at address 1 status 0x78d advertising 01e1 Link 45e1
eth0: setting full-duplex based on MII #1 link partner capablity of 45e1
When I run ifconfig eth0 I get this:

Code:
eth0 Linkencap: Ethernet HWaddr: 00:50:2C:06:64:D7
BROADCAST MULTICAST MTU: 1500 Metric: 1
RX Packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
RX bytes: 0 TX bytes: 0
Interrupt: 16 Base address 0xe000
I am also pretty sure I edited the kernel exactly how it has to be edited. Any ideas for a clueless newbie? :D

Thanks in advance for any help I recieve - I am in quite a bad position and I need to get this working ASAP so I really appreciate any help given :)

Last edited by Aman9090; 11-15-2003 at 11:55 AM.
 
Old 11-15-2003, 05:42 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
So you're not even able to load the modules manually vie modprobe? I'm not entirely sure where your saying the error is. Did the module load OK? If so, did the interface (eth0) come up OK? If so, did the DHCP configure it OK? Your error should lie in one of those three questions.
 
Old 11-15-2003, 11:21 AM   #3
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
when it tries to bring up eth0 it says it failed to do so - and it also failed to start netmount.

I have no idea what that error means either. When I type modprobe via-rhine it works and then when I type lsmod it gives this:
Code:
 Module             Size               Used By         Not Tainted 
via-rhine          14576             0
So I'm pretty sure the module loads fine. I don't know what you mean by if the DHCP configure went ok. How do I configure DHCP for it? I thought it simply meant changing iface_0 to "dhcp" in /etc/conf.d/net ?

Thanks for the help

PS: The error is placed right below the part where it detects usb devices and assigns them a driver. It's not colored text - it's before the bootup process enters init 1, 2, or 3 - in other words, this error is shown in the first boot part of the process - even before it starts up the swap and etc... does that help you as far as where the error is located at?

Last edited by Aman9090; 11-15-2003 at 01:36 PM.
 
Old 11-15-2003, 12:51 PM   #4
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
^ Bump..
 
Old 11-15-2003, 04:05 PM   #5
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
^BUMP!

I'm sorry, but my girlfriend really needs her computer working.. all help is needed and appreciated!
 
Old 11-15-2003, 05:21 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the module is loaded, so yes it's just the dhcp to do:

in /etc/conf.d/net:
iface_eth0="dhcp"

then try "/etc/init.d/net.eth0 start"
 
Old 11-15-2003, 05:44 PM   #7
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
i did that and:

Code:
Failed to bring up eth0
 
Old 11-15-2003, 08:58 PM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Did you reboot the computer between doing the modprobe above and trying to bring up eth0? Are you sure the module is loading on startup? Type lsmod directly after reboot to check. But before we get on to that, we have to find a way to make it work first then worry about autoloading on boot. Just manually do a modprobe via-rhine followed by an ifconfig eth0 up. If that worked (ie no errors loading the module and you get an "eth0" section in the output of ifconfig) then type dhclient eth0. That should get your network working. If all that works then tell me and I'll tell you how to autoload it. Until then you'll have to manually type those commands in.

Last edited by adz; 11-15-2003 at 09:01 PM.
 
Old 11-15-2003, 10:14 PM   #9
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
I get an eth0 section in ifconfig when I do that, but dhclient is not even recognized as a command.. ?

Thanks for the help so far - I think this is it lol! Is there a package I need to get dhclient to be recognized as a command? Thanks again.
 
Old 11-15-2003, 10:22 PM   #10
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Yep. You have to get dhcp-client or dhcp3-client. That's what the debian packages are called. I'm not sure how/what they'd be named in portage. But they can't be very hard to find.
 
Old 11-16-2003, 12:08 AM   #11
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
I made progress!

I followed what you did and somehow got myself to the point that it said that via-rhine was being used by 1 when i did lsmod. This is good, correct?

I do have another problem now, however. when i do dhclient it says for me to enable CONFIG_PACKET(S?) and CONFIG_SOCKET and I did so by changing these options in the menuconfig and then did this to save everything and make it so that it would use the new config at bootup:

make dep && make clean bzImage modules modules_install

i did that just to be safe

And... I still can't do dhclient eth0 - that's it... how can i solve my new dhclient problem?

Thanks for the help, I am getting much further than on the gentoo boards
 
Old 11-16-2003, 01:17 AM   #12
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
It keeps giving you these errors even though you've compiled the correct options into the kernel? Did you actually load the right kernel? I know I've done that numerous times (or I forgot to run lilo). Other than that all I can think of is did you compile dhcp-client yourself through portage? If so, it would have been compiled on the old kernel without the right support. Maybe recompile it.

Last edited by adz; 11-16-2003 at 01:26 AM.
 
Old 11-16-2003, 11:07 AM   #13
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
I do dhclient eth0 now and get this:

Code:
execve (/sbin/dhclient-script, ...) No such file
# Googley-gook assigning different ports
#
#
#
#
#
#
#
NO DHCPOFFERS recieved
I recompiled and everything - but that's the error I get.

Last edited by Aman9090; 11-16-2003 at 11:45 AM.
 
Old 11-16-2003, 12:24 PM   #14
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
^BUMP
 
Old 11-16-2003, 03:16 PM   #15
Aman9090
Member
 
Registered: Sep 2002
Location: Connecticut, USA
Distribution: Gentoo 2004.0
Posts: 174

Original Poster
Rep: Reputation: 30
Bump again
 
  


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
Ethernet Troubles Cyric Slackware 1 10-20-2004 05:20 PM
ethernet troubles rosssax Mandriva 1 08-05-2004 06:16 PM
Troubles while pinging localhost and Ethernet card spycell Linux - Networking 3 07-27-2003 10:41 PM
Ethernet Troubles ZeratulsAvenger Linux - Hardware 2 07-21-2003 03:18 AM
Ethernet troubles lasalsademuerte Linux - Hardware 5 02-25-2003 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10: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