LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem in activating eth0 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-activating-eth0-436658/)

gaurav1146 04-19-2006 03:05 AM

Problem in activating eth0
 
Hi,
I am new to Linux. I am using Fedora4 and I was trying to bring up eth0 and I got the following error message.
SIOCSIFFLAGS:Invalid argument

I used the command: ifconfig eth0 up
and I got the error message.
I also tried /etc/init.d/network restart and I got the same error message.
Any solutions???
TIA
Gaurav

Simon Bridge 04-19-2006 03:16 AM

FC4 aye?


you could try:
ifup eth0
dhclient eth0
Did you try Network Device Control ?

Now... post output of ifconfig -a

Please edit your profile to show your distro and some idea of your location. It will help folk answer your questions.

New to FC4 ... take a look at:
www.fedorafaq.org
www.mjmwired.net

gaurav1146 04-19-2006 09:26 AM

Hi Simon,
I tried those command but could not activate eth0.I have FC4 installed on HP pavilion dv1000.
ifup eth0 gave the same error SIOCSIFFLAGS:Invalid argument
dhclient eth0 gave no errors but eth0 was not activated as I was not able to connect to the net.

Following was the output of ifconfig-a:

eth0:Link encap:Ethernet HWaddr: .......
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 frame:0 collision:0 txqueuelen:1000
Interrup:16 Base address:0x3000

lo:.......

sit0:.....

towel401 04-19-2006 09:57 AM

i dunno but.. try ifconfig eth0 192.168.0.1

replace that with whatever IP you want it ot have

lebabyg 04-19-2006 10:29 AM

FC4 should automatically bring up your ethernet connection. Are you sure that your adapter is properly detected by fedora. If you're using gnome go the hardware browser and check that its listed properly. If not, go from there.

Simon Bridge 04-19-2006 08:10 PM

I see there is one question I asked not answered...
Quote:

Did you try Network Device Control ?
... Fedora likes you to use the NDC interface to manage network devices.

FC4 does not automatically bring the ethernet connection up... only if you were on a network when you first started. (At least - that's so with mine. I had to bring eth0 up in the ndc to get connected.)

Have you configured eth0 for your network?
Are you plugged in?

gaurav1146 04-19-2006 10:13 PM

Thanx to everybody for responding.
I did use the Network configuration utility in Fedora, the one which u get on typing neat in the konsole. There again when I click on activate for eth0 I get the same error. SIOCSIFFLAGS:Invalid Argument.
One more thing, everytime I face a problem in Linux I have to boot windows and then google for the problem as I am not connected to the net on Linux. Is there any solution for this so that I dont restart everytime.

gaurav1146 04-19-2006 10:17 PM

> FC4 should automatically bring up your ethernet connection.
Yes, during bootup it does try to bring up eth0 but the same error message appears there as well.
Bringing up eth0 [Failed]
SIOCSIFFLAGS:Invalid Argument.

Simon Bridge 04-20-2006 01:33 AM

Quote:

everytime I face a problem in Linux I have to boot windows and then google for the problem as I am not connected to the net on Linux. Is there any solution for this so that I dont restart everytime.
This is only an issue where the problem prevents internet access (or booting into linux). Generally these things are unusual. Booting into another OS, which can access the internet, is the usual method. For this reason, many people keep several kernels on their system... i.e. when they are recompiling a kernel, they keep a working version on standby.

Linux Rescue CDs can be useful here, as can live distributions like knoppix. (Knoppix in particular because of it's legendary hardware recognition.)

And, of course, there is always keeping several ways of accessing the internet. Keep a modem handy as well as an ethernet nic - that way one or the other is bound to be going. (Though, usually, ethernet is more reliable.)

Simon Bridge 04-20-2006 01:56 AM

Quote:

I did use the Network configuration utility in Fedora, the one which u get on typing neat in the konsole. There again when I click on activate for eth0 I get the same error.
Hmmm... you're using KDE?

I'm not sure what you mean by "typing neat" (typo?) but I get it from the main menue > system tools > network device control.

It is unusual for users to be able to activate eth0 from the NDC.
Anyway - ndc also ha a "configure" button? This takes you to the "network configuration" dialog - you get an option to start the service there too (worth a try but unlikely to work given past results).

In Network Configuration, you can check your hardware status to see what it can see.

You can also destroy the eth0 configuration - I am suggesting you do this, then use the internet configuration wizard (main > system tools > internet configuration wizard) to add a new ethernet connection.

This should probe for your card, detect it, and walk you through configuring it properly.

BTW: what is this card? (lspci) I take it this card works under <sigh> windows?

Simon Bridge 04-20-2006 06:39 AM

Hmmm... done some brainstormin with some more savvy folk than me.

I take it this card has not been used in linux before? And that this is a pretty new installation of FC4? Did you skip the network configuration in anaconda (when you installed)? (If got called localhost - then you probably skipped.)

You see, the serious money in on the driver being absent or wrong.

lsmod (to check drivers)
lspci (to tell us what card this is)
It may be a matter of just modprobe <driver>.

Some other things to check:
What does your /etc/sysconfig/network-scripts/ifcfg-eth0 say?
What is in /etc/sysconfig/networks?

If this is a pci card, try reseating it, or using it in another slot.

I found an article about sharing interrupts between SCSI and Ethernet being a no-no...
http://linuxmafia.com/faq/VALinux-kb...ags-error.html

Of course - removing the configuration and reinstalling would probably load the correct driver as well. It may end up as, conceptually, the simplest approach.

Simon Bridge 04-20-2006 06:09 PM

More:
http://linuxmafia.com/faq/VALinux-kb...ags-error.html


Quote:

Q: Ethernet networking is not working. I get the error message:

"SIOCSIFFLAGS: Try again"

from ifconfig.

A: This usually indicates a hardware conflict with your ethernet controller. Run "ifconfig -a" and check the IRQ and I/O addresses used by the controller. Also, look at the contents of the files /proc/interrupts and /proc/pci to determine what IRQ and I/O addresses are in use on your system. Many ethernet and SCSI drivers cannot share interrupts under Linux. Your system most likely has an IRQ conflict.

To fix IRQ conflicts on PCI bus systems, you can often go into the motherboard BIOS setup and mark the conflicting IRQ as "Used by an ISA Device". This will force the motherboard to reassign the IRQ, often eliminating the conflict.
This looks a lot like your problem right here.

Follow the advice above.
At this point I'd need feedback before continuing.

gaurav1146 04-21-2006 12:00 AM

Hi Simon,
Thanx a lot for your continued help. The last link does look like my problem and I think it might fix it. Currently I am in my office and I would try it out tonight.
Thanx once again for your help.

gaurav1146 04-22-2006 07:57 AM

ifconfig-a: gives this

eth0:Link encap:Ethernet HWaddr: .......
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 frame:0 collision:0 txqueuelen:1000
Interrup:16 Base address:0x3000

and I checked /proc/pci and somewhere it contained the same address. I am not sure if that is causing the problem.
Following was the piece in proc/pci with the same address:

Bus6,device0,function0:
Class 0200:PCI device 10ec:8136(rev16)
IRQ16
Master Capable Latency=64 Min Gnt=32 Max Lat=64
I/O at 0x3000[0x30ff]

I tried to make the changes you suggested in the BIOS settings but I could not find the option. In any case I dont think it woul be safe to make changes to BIOS settings without being sure abt what I am doing. isnt there any other way out.

gaurav1146 04-22-2006 08:18 AM

I also installed fedora again. During installation it gives two options for setting the hostname:
-> automatically via DHCP
-> Manually

In my earlier installation I had selected automatically via DHCP. This time I changed it to Manually and provided the IP address, subnet mask....
I thought this would solve the problem but again I got the same error:SIOCSIFFLAGS:Invalid argument


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