LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Eth0 connectivity problems (https://www.linuxquestions.org/questions/linux-newbie-8/eth0-connectivity-problems-12573/)

gastondip 01-24-2002 10:53 AM

Eth0 connectivity problems
 
Hi everybody,

I'm newbie in this Linux World, and I have some problems with my eth0 that I can solve. It seems to be not active.

I've a RH7.1 box with 2 NIC. Eth1 is working fine, Eth0 doesn't. The module is a pcnet32. When booting, Eth0 is OK, but the 'ifconfig' command doesn't show it up, except if I run 'ifconfig -a'. The files ifcfg-eht0, modules.conf, networks seem to be OK.

I do ping to the localhost and myself (130.30.214.7) but don't to others host in the local network.

Here goes the things that seems to be wrong:

When type 'lsmod' I got this output for the module pcnet32:
module Size Used by
pcnet32 12240 0 (autoclean) unused

When type 'ifup eht0' I got:
SIOCSIFFLAGS: Invalid Argument
SIOCADDRT: Network is down
SIOCADDRT: Network is unreachable

When type 'ifconfig eth0 130.30.214.7 netmask 255.255.254.0 up' I got:
SIOCSIFFLAGS: Invalid Argument
SIOCSIFFLAGS: Invalid Argument

When ping to other host in the network, I got:
connect: Network is unreachable

I tried running the command 'modprobe pcnet32 alias eth0' but I got no output with this command (is that ok?)


Well, that all what I've done.
I hope somebody can help me,,, :(

Thanks,

Gastón.

finegan 01-24-2002 02:41 PM

Re: Eth0 connectivity problems
 
Quote:

Originally posted by gastondip

When type 'ifconfig eth0 130.30.214.7 netmask 255.255.254.0 up' I got:

This might be the problem. I don't think you can give a card that netmask. If you just assign it an IP it will configure the default netmask for that range.

Quote:

Originally posted by gastondip

I tried running the command 'modprobe pcnet32 alias eth0' but I got no output with this command (is that ok?)

Absolutely... if it modprobes right, that's exactly what it should do. Well, if what you mean by no output was that it sat there for a second and gave you a new prompt. If it just hangs... then there's something else wrong.

To see if the card configured correctly, check the output from the command 'dmesg', which is the kernel log of device recognition.

Cheers,

Finegan

lfslinux 01-24-2002 06:10 PM

Re: Eth0 connectivity problems
 
Quote:

Originally posted by gastondip
Hi everybody,

I'm newbie in this Linux World, and I have some problems with my eth0 that I can solve. It seems to be not active.

module Size Used by
pcnet32 12240 0 (autoclean) unused

When type 'ifup eht0' I got:
SIOCSIFFLAGS: Invalid Argument
SIOCADDRT: Network is down
SIOCADDRT: Network is unreachable

Before you try to bring up eth0, run this command:

ifconfig -a

this will show you all the available network interfaces that can be configured (or already are). Is eth0 in this list?

gastondip 01-25-2002 06:30 AM

Hi,

I tried with the commands 'ifconfig eth0 130.30.214.7' and 'ifconfig eth0 130.30.214.7 up' and this is the output:

SIOCSIFFLAGS: Invalid Argument

Running the command 'modprobe pcnet32 alias eth0', it sat there for a second and gave me a new prompt.

Running 'ifconfig -a' it shows all interfaces (lo, eth0, eth1). Running 'ifconfig' shows lo and eth1

With the command 'route -n' it shows the routes for lo and eth1.


Regards,

Gastón.

pcorgier 03-05-2002 12:05 PM

I fixed 2 bugs into pcnet32.c
 
I had the same problem.
First, the Emac address applied to the AMD chip is 0:0:0:0:0:0 (a warning say it - see dmesg output).
Second, the driver cannot be insmod'ed after being rmmod'ed because of a disymetric design.

I suggest you apply yourself the same fixes onto the original source file of the driver : /usr/src/linux/drivers/net/pcnet32.c

Here follows the contains of a patch file to apply to this sourcefile (if you give me your email @, I could send you the fixed source) :

--- pcnet32.c Sun Apr 15 16:30:58 2001
+++ pcnet32.c.fix Tue Mar 5 18:53:49 2002
@@ -652,7 +652,11 @@
promaddr[i] = inb(ioaddr + i);
}
if( memcmp( promaddr, dev->dev_addr, 6) )
+ {
printk(" warning: PROM address does not match CSR address");
+ for (i = 0; i < 6; i++)
+ dev->dev_addr[i]=promaddr[i];
+ }
}
/* if the ethernet address is not valid, force to 00:00:00:00:00:00 */
if( !is_valid_ether_addr(dev->dev_addr) )
@@ -1575,8 +1580,10 @@

static void __exit pcnet32_cleanup_module(void)
{
+#ifdef USE_PCI_REGISTER_DRIVER
+ pci_unregister_driver( &pcnet32_driver);
+#else
struct net_device *next_dev;
-
/* No need to check MOD_IN_USE, as sys_delete_module() checks. */
while (pcnet32_dev) {
struct pcnet32_private *lp = pcnet32_dev->priv;
@@ -1587,6 +1594,7 @@
kfree(pcnet32_dev);
pcnet32_dev = next_dev;
}
+#endif
}

module_init(pcnet32_init_module);

ruyma 05-01-2006 05:59 AM

Hi I have the seem problem with my ethernet card.

When the system start up I got the following message :

...
SIOCSIFFLAGS Invalid Argument
Cannot enable interface eth0
...


When I run the commands :

ifconfig eth0 up the result was SIOCSIFFLAGS Invalid Argument

dmesg the result was :

eth0: Could not reserve IRQ 255
ifup: Cannot enable eth0
ifup-route: interface eth0 is not up


I have this lan card :
3Com 3C905B Fast Ethernet XL 10/100

I don't know what I can do at this point. Can anyone help me?

Thanks in advance


All times are GMT -5. The time now is 03:59 PM.