LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2002, 10:53 AM   #1
gastondip
LQ Newbie
 
Registered: Jan 2002
Location: Buenos Aires - Argentina
Distribution: Red Hat 7.1
Posts: 2

Rep: Reputation: 0
Question 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.
 
Old 01-24-2002, 02:41 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
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
 
Old 01-24-2002, 06:10 PM   #3
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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?
 
Old 01-25-2002, 06:30 AM   #4
gastondip
LQ Newbie
 
Registered: Jan 2002
Location: Buenos Aires - Argentina
Distribution: Red Hat 7.1
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 03-05-2002, 12:05 PM   #5
pcorgier
LQ Newbie
 
Registered: Mar 2002
Location: French Riviera
Distribution: Mandrake 8.0
Posts: 1

Rep: Reputation: 0
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);
 
Old 05-01-2006, 05:59 AM   #6
ruyma
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Smile

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
 
  


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
Bridge connectivity problems tedcox Linux - Networking 3 10-31-2005 06:50 PM
no connectivity despite eth0 up & running Reba Linux - Networking 1 06-06-2004 12:26 AM
Ethernet/connectivity problems RH 9 88guy Linux - Networking 3 05-21-2004 08:07 PM
Problems with connectivity Viper168 Mandriva 8 10-23-2003 01:47 PM
Connectivity problems Palin Linux - Networking 1 04-14-2003 08:13 PM


All times are GMT -5. The time now is 04:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration