PDA

View Full Version : Linux/ethernet prob



Smizack
12-04-2002, 06:27 PM
I set up another machine with Red hat 7.2 and everything works great except Eth0 fails on bootup and if I try to edit it under net config, it says the ethernet card could not be initialized.

I know the card is good, and I know the card works with Linux.

So wtf is going on??

sjohnson
12-04-2002, 06:43 PM
What card is it? For instance, sometimes the Intel Pro and Pro/100+ get mixed up by the system. What do modprobe and insmod say about the device? Any boot messages pertaining to the NIC in question?

Smizack
12-04-2002, 06:50 PM
Netgear.
I have 2 they are both good and they both have worked on Linux systems before.

modprobe and insmod - I've got no idea what that is. heh

The only message I get is that it failed.

sjohnson
12-04-2002, 06:54 PM
Have you tried swapping out the "bad" card with another one?

Reseated the card?

Maybe try swapping the PCI slots of the two, perhaps the slot is NG.

modprobe and insmod are tools used by the system to manage and load kernel modules (like device drivers in M$ systmes). Don't worry about them if you don't want to, the problem can be resolved without.

sjohnson
12-04-2002, 06:58 PM
What does dropping to a command prompt and typing in:

cat /etc/modules.conf

give for output?

For instance on my router it shows:

[root@clarkconnect root]# cat /etc/modules.conf
alias parport_lowlevel parport_pc
alias scsi_hostadapter aic7xxx
alias eth0 ne
alias eth1 il
alias eth2 eepro100
[root@clarkconnect root]#


eth0 ne says eth0 uses the ne driver (for my old ISA Kingston KNE2000)
eth1 il says eth1 uses the HPNA 2.0 BroadCOM driver.
eth2 eepro100 says eth2 uses the eepro100 driver

Smizack
12-04-2002, 07:15 PM
alias parport_lowlevel parport_pc
alian sound-slot-0 cmpci
post-install sound-slot-0 /bin/amix-minimal -f /etc/.aumixrc -l >/dev/null 2>&1 ||:
pre-remove sound-slot-0 /bin/amix-minimal -f /etc/.aumixrc -l >/dev/null 2>&1 ||:
alias eth0 natsemi

Smizack
12-04-2002, 07:22 PM
Originally posted by sjohnson
Have you tried swapping out the "bad" card with another one?

Reseated the card?

Maybe try swapping the PCI slots of the two, perhaps the slot is NG.

modprobe and insmod are tools used by the system to manage and load kernel modules (like device drivers in M$ systmes). Don't worry about them if you don't want to, the problem can be resolved without.

Yeah, I've tried both cards in 3 or 4 differant slots.

I'm pretty sure it's seeing it, it just isn't able to use it for some reason.

sjohnson
12-04-2002, 07:43 PM
From a command prompt, try:

insmod -v natsemi

What does that give for output?

sjohnson
12-04-2002, 08:21 PM
Another thought - the lines

post-install sound-slot-0 /bin/amix-minimal -f /etc/.aumixrc -l >/dev/null 2>&1 ||:
pre-remove sound-slot-0 /bin/amix-minimal -f /etc/.aumixrc -l >/dev/null 2>&1 ||:

from your /etc/modules.conf file look like remnants of the install. That is, I don't think they should be in that file. Perhaps your install went bad?

And, you said that you installed two NICs but only one (eth0) shows up in the modules.conf file. Should be two of them, eth0 and eth1...

Smizack
12-04-2002, 08:25 PM
Originally posted by sjohnson
From a command prompt, try:

insmod -v natsemi

What does that give for output?

Waaaay too much for me to type it all, but it says at the end of all of it:

"Using /lib/modules/2.4.7-10/kernel/drivers/net/natsemi.o
Symbol version prefix ' '
insmod: a module names natsemi already exists"

Smizack
12-04-2002, 08:36 PM
Originally posted by sjohnson
Another thought - the lines

post-install sound-slot-0 /bin/amix-minimal -f /etc/.aumixrc -l >/dev/null 2>&1 ||:
pre-remove sound-slot-0 /bin/amix-minimal -f /etc/.aumixrc -l >/dev/null 2>&1 ||:

from your /etc/modules.conf file look like remnants of the install. That is, I don't think they should be in that file. Perhaps your install went bad?

I installed 3 times.



And, you said that you installed two NICs but only one (eth0) shows up in the modules.conf file. Should be two of them, eth0 and eth1...

I meant I have tried 2 differant cards. Not at the same time though.

sjohnson
12-04-2002, 08:53 PM
What model netgear are you using so I can search out your card? The natsemi driver listed in your modules.conf file is for national semiconductor chipset NIC's, and a quick google search would lead me to believe that netgear does not use nat. sem. chipset but uses a somewhat "proprietary" driver available on their website.

sjohnson
12-04-2002, 09:10 PM
Also, what does running

/etc/rc.d/init.d/network restart

show?

Smizack
12-04-2002, 09:33 PM
Originally posted by sjohnson
What model netgear are you using so I can search out your card? The natsemi driver listed in your modules.conf file is for national semiconductor chipset NIC's, and a quick google search would lead me to believe that netgear does not use nat. sem. chipset but uses a somewhat "proprietary" driver available on their website.

FA-311 Rev B1

Smizack
12-04-2002, 09:35 PM
Originally posted by sjohnson
Also, what does running

/etc/rc.d/init.d/network restart

show?

That's like what happenes on boot up.
Setting network parameter passes and Interface lo passes.

Eth0 says:
"determining IP information for eth0:0...
Failed"

sjohnson
12-04-2002, 10:01 PM
"determining IP information for eth0:0...

WTF - why is virtual subnetting being used (the 0:0). Should read eth0, not eth0:0

Searched the 'net for FA-311 and the National Semi driver is the correct one, scratch that as being the problem.

What are the results of running

ifconfig eth0

and

ifconfig eth0:0

from a command prompt?

Smizack
12-04-2002, 11:27 PM
ifconfig eth0:

eth0
Link encap:ethernet hwaddr 00: (my mac add) :80
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
collisions:0 txqueuelen:100
rx bytes:0 (0.0 b) tx bytes:0 (0.0 b)
interrupt:11 bast address:0x5000


ifconfig eth0:0:

eth0:0
Link encap:ethernet hwaddr 00: (my mac add) :80
Broadcast multicast mtu:1500 Metric:1
interrupt:11 bast address:0x5000

sjohnson
12-05-2002, 05:18 AM
What are the contents of the file /etc/sysconfig/network-scripts/ifcfg-eth0?

For instance, mine look like:

DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=static
IPADDR=64.xxx.xxx.xxx <- My IP address
NETMASK=255.255.255.0
GATEWAY=64.xxx.xxx.xxx <- IP address of my broadband gateway

Is IPADDR filled in or are you trying to use DHCP to set the address?

Smizack
12-05-2002, 11:50 AM
Originally posted by sjohnson
What are the contents of the file /etc/sysconfig/network-scripts/ifcfg-eth0?

For instance, mine look like:

DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=static
IPADDR=64.xxx.xxx.xxx <- My IP address
NETMASK=255.255.255.0
GATEWAY=64.xxx.xxx.xxx <- IP address of my broadband gateway

Is IPADDR filled in or are you trying to use DHCP to set the address?


lol
When I type that in, it says permission denied.

I shoud be set to use dhcp, but not sure now. I tried it manually, and set it as my dmz comp. and it would open netscape, but not connect to any sites.

sjohnson
12-05-2002, 02:53 PM
If you login as root, will get rid of the permission denied message.

Although I read this as a hardware or driver problem initially, I'd bet it's a DHCP problem after carefully rereading all the info.

Add to this a good result of ifconfig eth0 as you show above (with the exception of no IP address) and I'm sure of it being a DHCP issue. Sorry, I don't use DHCP so will be limited in what I can suggest. I don't use it due to a known issue in some setups where using DHCP can cause momentary outages in connectivity while the DHCP lease is renegotiated. No problem for browsing, etc. but can have a big effect in on-line gaming.

Smizack
12-05-2002, 03:33 PM
Originally posted by sjohnson
If you login as root, will get rid of the permission denied message.

Although I read this as a hardware or driver problem initially, I'd bet it's a DHCP problem after carefully rereading all the info.

Add to this a good result of ifconfig eth0 as you show above (with the exception of no IP address) and I'm sure of it being a DHCP issue. Sorry, I don't use DHCP so will be limited in what I can suggest. I don't use it due to a known issue in some setups where using DHCP can cause momentary outages in connectivity while the DHCP lease is renegotiated. No problem for browsing, etc. but can have a big effect in on-line gaming.

I am logged in as root. Infact, I have no other aliases set up yet.

I'm sure it's not a dhcp problem. I have tried setting it up statically as well though.

Hardware - I'm thinking I have an injured mobo because I tried installin XP on it last night and it keeps hanging on "starting windows..."

sjohnson
12-05-2002, 04:18 PM
If root gets permission denied, it's got to be a corrupt O/S then - since root can do anything, including viewing the contents of any file regardless of permissions.

Some hardware failure, as you've determined, for sure!

Smizack
12-05-2002, 04:38 PM
Well, a fresh install does the same thing.
This is all new. I've reinstalled now 4 times.

You don't think it's a hardware prob?

sjohnson
12-05-2002, 04:49 PM
Sorry, was rushed and not clear, I guess. Sure does sound like a hardware problem, especially since the windows install fubars on you as well.

The Linux problem is independant of the PCI slot so guess I'd look at the memory, the CPU and the board itself for the cause.

Smizack
12-05-2002, 04:56 PM
Originally posted by sjohnson
Sorry, was rushed and not clear, I guess. Sure does sound like a hardware problem, especially since the windows install fubars on you as well.

The Linux problem is independant of the PCI slot so guess I'd look at the memory, the CPU and the board itself for the cause.

Yup yup. I think it's the mobo. I know the ram is good, and I know the cpu is good. Damn...

sjohnson
12-05-2002, 08:15 PM
I hear that! :(