PDA

View Full Version : Ethernet connection


sujinge9
2006-12-29, 02:40 PM CST
I just ungraded from Redhat 9 to fedora 6 and ran into a problem. In Redhat 9 I used my ethernet connection without any issues. However, in Fedora, sometimes my connection would disconnect at every so often. Then I would have to disconnect the ethernet port, reconnect it, and it would work for another five minuts then disconnect. An interesting point is that I installed Fedora using the http option (After booting from a CD, it installed the rest of the OS from the internet using a http address, really slick function), and also because red hat worked flawlessly, I don't think this is an driver error or an error on my card. Can someone help out?

Also, I just tried downloading a big file, obviously it didn't finish, but an interesting this was that when the internet stoped, the download manager still said 60kb/s, but it just froze. Not sure if this helps describe my case.... Sigh... I've had a bunch of unique computer cases for the last month, all strange and mysterious.

ppesci
2006-12-29, 03:02 PM CST
You want to check the file /var/log/messages and see the entries saying something about net or eth0:

tail -n 30 /var/log/messages

can help to see the last 30 lines in the file

HTH

Pietro Pesci Feltri

sujinge9
2006-12-29, 03:15 PM CST
I entered the code for tail, but I got "tail: cannot open for reading, acces denied." I am to root in this system, I don't know why its like this, I also can't install using yum either and I am the only user on this computer. Come help on this too. And also, anyother ways to fix my unstable internet? thanks.

paul matthijsse
2006-12-29, 03:20 PM CST
sometimes internet connections are disturbed at the isp-level.
try at those moments to type in a terminal:
> su -
[password]
> ifdown eth0
this stops the internet connection, and then
> ifup eth0
to bring it up again.
in general, fedora has no problem at all with eth0-connections.

Hope this helps.
Cheers, Paul.

paul matthijsse
2006-12-29, 03:29 PM CST
I entered the code for tail, but I got "tail: cannot open for reading, acces denied." I am to root in this systemThat "cannot open, access denied" occurs when you are *not* root, so rather strange that you see that *as* root....

ppesci
2006-12-29, 03:40 PM CST
You need to be root user for hardware configuration or administration. That is for security reasons of course.

Pietro Pesci Feltri

sujinge9
2006-12-29, 03:47 PM CST
OK, sorry, I forgot about su, here is what I got for tail

Dec 29 16:08:32 localhost avahi-daemon[1862]: Successfully dropped root privileges.
Dec 29 16:08:32 localhost avahi-daemon[1862]: avahi-daemon 0.6.11 starting up.
Dec 29 16:08:32 localhost avahi-daemon[1862]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Dec 29 16:08:32 localhost avahi-daemon[1862]: Successfully called chroot().
Dec 29 16:08:32 localhost avahi-daemon[1862]: Successfully dropped remaining capabilities.
Dec 29 16:08:32 localhost avahi-daemon[1862]: No service found in /etc/avahi/services.
Dec 29 16:08:32 localhost avahi-daemon[1862]: New relevant interface eth0.IPv4 for mDNS.
Dec 29 16:08:32 localhost avahi-daemon[1862]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.100.
Dec 29 16:08:32 localhost avahi-daemon[1862]: Network interface enumeration completed.
Dec 29 16:08:32 localhost avahi-daemon[1862]: Registering new address record for 192.168.1.100 on eth0.
Dec 29 16:08:32 localhost avahi-daemon[1862]: Registering HINFO record with values 'I686'/'LINUX'.
Dec 29 16:08:33 localhost avahi-daemon[1862]: Server startup complete. Host name is localhost.local. Local service cookie is 3786614243.
Dec 29 16:08:37 localhost gdm[1974]: gdm_config_parse: Standard X server not found; trying alternatives
Dec 29 16:08:38 localhost gdm[1974]: gdm_config_parse: Chooser not found or it can't be executed by the GDM user
Dec 29 16:08:38 localhost gdm[1974]: no suitable security token driver could be found
Dec 29 16:08:53 localhost gconfd (zhx-2084): starting (version 2.14.0), pid 2084 user 'zhx'
Dec 29 16:08:54 localhost gconfd (zhx-2084): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Dec 29 16:08:54 localhost gconfd (zhx-2084): Resolved address "xml:readwrite:/home/zhx/.gconf" to a writable configuration source at position 1
Dec 29 16:08:54 localhost gconfd (zhx-2084): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Dec 29 16:09:01 localhost gconfd (zhx-2084): Resolved address "xml:readwrite:/home/zhx/.gconf" to a writable configuration source at position 0
Dec 29 16:10:08 localhost kernel: eth0: Setting full-duplex based on MII#1 link partner capability of 45e1.
Dec 29 16:10:08 localhost kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Dec 29 16:10:09 localhost avahi-daemon[1862]: New relevant interface eth0.IPv6 for mDNS.
Dec 29 16:10:09 localhost avahi-daemon[1862]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::280:adff:fe73:92c8.
Dec 29 16:10:09 localhost avahi-daemon[1862]: Registering new address record for fe80::280:adff:fe73:92c8 on eth0.
Dec 29 17:22:57 localhost gconfd (zhx-2084): Resolved address "xml:merged:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 0
Dec 29 17:22:57 localhost gconfd (zhx-2084): None of the resolved addresses are writable; saving configuration settings will not be possible
Dec 29 17:22:57 localhost gconfd (zhx-2084): Resolved address "xml:merged:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Dec 29 17:22:57 localhost gconfd (zhx-2084): None of the resolved addresses are writable; saving configuration settings will not be possible
Dec 29 17:33:54 localhost kernel: UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'AVIATOR', timestamp 2005/04/04 19:39 (1ed4)


I can see that my ethernet connected afew times, but, any help deciphering the rest of it?

Anyways, @paul, I tried it, but for ifdown I got
[root@localhost zhx]# ifdown eth0
bash: ifdown: command not found

please help, thank alot.

ppesci
2006-12-29, 04:04 PM CST
I think your interface is up and running, may be there is a problem with DNS.

Try this commands:

/sbin/ifconfig

/sbin/route

dig

And put the output here

HTH

Pietro Pesci Feltri

sujinge9
2006-12-29, 04:11 PM CST
for /sbin/ifconfig:

[root@localhost zhx]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:AD:73:92:C8
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::280:adff:fe73:92c8/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:19033 errors:2056 dropped:0 overruns:0 frame:0
TX packets:14709 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:1000
RX bytes:20776221 (19.8 MiB) TX bytes:2617605 (2.4 MiB)
Interrupt:193 Base address:0x6c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1091 errors:0 dropped:0 overruns:0 frame:0
TX packets:1091 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:122162 (119.2 KiB) TX bytes:122162 (119.2 KiB)
/sbin/route

[zhx@localhost ~]$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


also, just on a side note that I'm not sure matters, there were no difference when I did these tests when the internet was working or not.

paul matthijsse
2006-12-29, 04:18 PM CST
Anyways, @paul, I tried it, but for ifdown I got
[root@localhost zhx]# ifdown eth0
bash: ifdown: command not foundDid you say "su-space-dot", as in "su -"? If not, the programs ifdown and ifup are in /sbin, so you can also cd to that directory and issue those commands...
about your /var/log/messages, these are unfamiliar to me, because I use a recent version of Fedora...

ppesci
2006-12-29, 04:31 PM CST
Your connection appear to be good except your card is showing errors in this 2 lines:

RX packets:19033 errors:2056 dropped:0 overruns:0 frame:0
TX packets:14709 errors:3 dropped:0 overruns:0 carrier:3

That behaiviour are not usual. May be your card is defective. Check cables please, if you have anothe cable.

HTH

Pietro Pesci Feltri

paul matthijsse
2006-12-29, 04:41 PM CST
[root@localhost zhx]# /sbin/ifconfig
(...)eth0 inet addr:192.168.1.100 (...)RX packets:19033 errors:2056 dropped:0 overruns:0 rame:0Strange, on my main system eth0 is 192.168.0.100... And it indeed shows lots of errors here...
[zhx@localhost ~]$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0My machine says 192.168.0.0 here, don't know if that"s important...
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 Mine says 192.168.0.1 here, again: don't know if this is crucial...

sujinge9
2006-12-29, 06:56 PM CST
As in my first post, I am pretty sure that the problem does not lie with my hard ware because I was able to connect with Red hat and the installer for fedora for a long time. Because of that I am also pretty sure it isn't a linux kernal issue either. As for if down and if up, I got if down working and when I tried ifup I got
[root@localhost ~]# ifdown eth0
[root@localhost ~]# ifup eth0

Determining IP information for eth0...PING 192.168.1.1 (192.168.1.1) from 192.168.1.100 eth0: 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2009ms
, pipe 3
failed.
[root@localhost ~]# ifup eth0

Determining IP information for eth0...PING 192.168.1.1 (192.168.1.1) from 192.168.1.100 eth0: 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3001ms
, pipe 3
failed.

This might be pointless, but when I couldn't access the internet even though my ethernet was in, I tried ifup and it gave the same result when internet was accessabe. I am almost 100% sure it is not a harware problem, please help, I need a stable internet connection

Also, I just hooked my connection with my laptop with XP and it was very stable so its not cable. Please help.

ppesci
2006-12-29, 07:46 PM CST
Ok, errors can be because you conect and disconnect the cable, as you stated first, and not by defective hardware.

Are you using dhcp for get yhe ip address of your card?.

If not, that is, you have a static ipaddress and is ever 192.168.1.100, may be you have a conflict because the message:

Determining IP information for eth0...PING 192.168.1.1 (192.168.1.1) from 192.168.1.100 eth0: 56(84) bytes of data.

only have sense if you are ising dhcp. If you have a static ip address, please, check your network configuration in the menu:

Administration -> Network

and verify the ip address is static and no dhcp.

You can experience the errors because dhcp periodacaly retry to get a valid ip address and in the instalation process, fedora configure the ethernet card to use dhcp. All pieces fall in place i think (and hope) :).

Post your findings here.

HTH

Pietro Pesci Feltri

sujinge9
2006-12-29, 08:30 PM CST
Yes, all the pieces fall in place. I was using dhcp, and that might be the reason. but :( Theres always a BUT, after filling in the static info copied from my laptop when it connect with the same ethernet connection.... it didn't work. So I think I might have to degrade to linux 9. Based on my friends opinion 9 is better because it has afew editer that fedora doesn't have. I know, this isn't what the topic is, but can I get your opinion?

ppesci
2006-12-29, 08:44 PM CST
Why do not work?

If you are using static address, you must to suply the gateway (192.168.1.1 i think) address and the dns addresses (supplied for your ISP that you can get from another intalation or simply ask to them).

Faith man, this will work.

If this is not the case, tel me why the damn thing (;)) doesn't work, Ill help you.
Use the commands I told you before ifconfig, route and dig

FC 6 is way nicer than RHL 9.

HTH

Pietro Pesci Feltri

Reply quick because is time to spleep

sujinge9
2006-12-30, 10:17 AM CST
I'm not sure why it doesn't work. but when I switched it to static it just said their was no connection at all. I got my Ip address and gateway info when I plugged my Ethernet port into my laptop. So I'm sure its correct. I'm sorry, I had some projects I needed to finish that requires a stable internet so I had to go back to Redhat, if I've got a free weekend later, I might try again. But now in Redhat the internet works flawlessly. Thanks ALOT for your efforts, its friendly people like you that make the internet go around.

Jinge Su