Author Topic: Wired connection no longer working - Wireless works fine  (Read 1681 times)

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Wired connection no longer working - Wireless works fine
« on: August 29, 2011, 12:38:26 AM »
I usually use a wired ethernet connection but today I had to temporarily switch to wireless. On replugging the ethernet cable and disabling wireless, the wired connection no longer works. Wifi still works if enabled. I have tried removing the wired connection, rebooting, re-configuring, all with no success. For some reason the wired connection is now broken.

Can anyone suggest how to fix this?

I am running PCLOS latest with LXDE on an MSI U230

Terminal outputs are:
Code: [Select]
bash-4.1$ lspci | grep -i ether
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
bash-4.1$

Code: [Select]
bash-4.1$ ifconfig
eth0      Link encap:Ethernet  HWaddr 40:61:86:AD:EB:B0  
          UP 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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:43

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:1604 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1604 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:135324 (132.1 KiB)  TX bytes:135324 (132.1 KiB)

wlan0     Link encap:Ethernet  HWaddr 40:61:86:9B:20:A1  
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::4261:86ff:fe9b:20a1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6220 errors:0 dropped:0 overruns:1403 frame:1403
          TX packets:1797 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2056658 (1.9 MiB)  TX bytes:309505 (302.2 KiB)
          Interrupt:16

Code: [Select]
bash-4.1$ lsmod
Module                  Size  Used by
hidp                   10461  1
hid                    63565  1 hidp
snd_usb_audio          70631  0
snd_usbmidi_lib        15440  1 snd_usb_audio
snd_rawmidi            15287  1 snd_usbmidi_lib
af_packet              17321  4
ipv6                  266689  28
vboxnetadp              6759  0
vboxnetflt             19224  0
vboxdrv               181379  2 vboxnetadp,vboxnetflt
rfcomm                 30279  8
fglrx                2505449  102
snd_hda_codec_hdmi     20480  1
snd_hda_codec_realtek   226487  1
snd_hda_intel          19109  1
snd_seq_dummy           1135  0
snd_seq_oss            25264  0
snd_hda_codec          66310  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_seq_midi_event      4648  1 snd_seq_oss
snd_seq                42136  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
sco                     7499  2
snd_seq_device          4457  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            33854  0
snd_hwdep               4820  2 snd_usb_audio,snd_hda_codec
bnep                    8483  2
snd_mixer_oss          12981  1 snd_pcm_oss
snd_pcm                60446  5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              15383  2 snd_seq,snd_pcm
snd                    43189  17 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_seq_oss,snd_hda_codec,snd_seq,snd_seq_device,snd_pcm_oss,snd_hwdep,snd_mixer_oss,snd_pcm,snd_timer
l2cap                  39423  21 hidp,rfcomm,bnep
rt2860sta             478311  1
r8169                  34277  0
mii                     3382  1 r8169
i2c_piix4               7124  0
i2c_core               16500  1 i2c_piix4
crc_ccitt               1103  1 rt2860sta
shpchp                 22549  0
soundcore               5025  1 snd
sp5100_tco              3764  0
snd_page_alloc          5877  2 snd_hda_intel,snd_pcm
binfmt_misc             5850  1
sg                     23483  0
cpufreq_ondemand        7592  0
cpufreq_conservative     7612  0
cpufreq_powersave        714  0
powernow_k8            12403  1
freq_table              2087  2 cpufreq_ondemand,powernow_k8
mperf                   1003  1 powernow_k8
nvram                   4805  0
pciehp                 21145  0
pci_hotplug            21835  2 shpchp,pciehp
firewire_ohci          25329  0
firewire_sbp2          11541  0
firewire_core          43040  2 firewire_ohci,firewire_sbp2
crc_itu_t               1103  1 firewire_core
fuse                   59455  3
btusb                   9833  4
dm_mod                 58938  0
bluetooth              51698  10 hidp,rfcomm,sco,bnep,l2cap,btusb
rfkill                 12694  3 bluetooth
uas                     6482  0
usb_storage            35068  0
ehci_hcd               35439  0
battery                 8843  0
thermal                 6670  0
processor              22399  1 powernow_k8
video                  10008  0
button                  4021  1 fglrx
ac                      2545  0
ohci_hcd               19566  0
usbcore               117639  8 snd_usb_audio,snd_usbmidi_lib,btusb,uas,usb_storage,ehci_hcd,ohci_hcd
wmi                     7495  0
k8temp                  2623  0
evdev                   7275  14
ide_generic              889  0 [permanent]
ide_core               80166  1 ide_generic
pata_atiixp             2961  0
ata_piix               18602  0
ahci                   17997  3
libahci                16163  1 ahci
libata                154591  4 pata_atiixp,ata_piix,ahci,libahci
sd_mod                 31682  4
scsi_mod              150488  6 sg,firewire_sbp2,uas,usb_storage,libata,sd_mod
crc_t10dif              1104  1 sd_mod
ext4                  312169  2
jbd2                   59959  1 ext4
crc16                   1099  2 l2cap,ext4
« Last Edit: December 19, 2011, 01:57:28 PM by Ozdemon »
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: [Solved] Wired connection no longer working - Wireless works fine
« Reply #1 on: August 29, 2011, 07:44:59 PM »
I think my problem is related to the one below at http://www.pclinuxos.com/forum/index.php/topic,95624.0.html. I think it is related to the kernel because I have never had this problem before.

It was solved as follows (and I don't know if all the steps were necessary):
- remove ethernet cable and disable wireless on the netbook using the function keys
- shutdown, remove power, count to 10
- reboot and then remove both the wired and wireless connections in the PCLOS Control Centre
- shutdown and restart
- connect ethernet cable and setup new LAN connection in the PCLOS Control Centre
- restart
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: [Solved] Wired connection no longer working - Wireless works fine
« Reply #2 on: August 30, 2011, 02:09:54 AM »
I think my problem is related to the one below at http://www.pclinuxos.com/forum/index.php/topic,95624.0.html. I think it is related to the kernel because I have never had this problem before.

It was solved as follows (and I don't know if all the steps were necessary):
- remove ethernet cable and disable wireless on the netbook using the function keys
- shutdown, remove power, count to 10
- reboot and then remove both the wired and wireless connections in the PCLOS Control Centre
- shutdown and restart
- connect ethernet cable and setup new LAN connection in the PCLOS Control Centre
- restart



Glad you solved!
However the steps you performed clearly demonstrate that is not a kernel issue.

AS

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: [Solved] Wired connection no longer working - Wireless works fine
« Reply #3 on: December 19, 2011, 01:57:06 PM »
Okay, the problem has happened again a few weeks ago. I have tried the above 'solution' but it no longer works. I can use wireless with no problem, but no amount of fiddling will get the wired ethernet to work. Is there a way of deleting all relevant networking config or apps and re-installing short of a complete system re-install?

(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wired connection no longer working - Wireless works fine
« Reply #4 on: December 19, 2011, 02:14:38 PM »

log in as root and then run this command and give your output

cat /etc/sysconfig/network-scripts/ifcfg-eth0

In your original post, the output of "ifconfig" shows eth0 did not have an IP address.

I guess the problem is there.

Either check to make sure the router that interface is connecting to gives out IP addresses and the interface is set to get IP addresses dynamically or set it up to use a static IP address.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: Wired connection no longer working - Wireless works fine
« Reply #5 on: December 19, 2011, 02:37:07 PM »
Thanks for the reply. The output is as follows:
Code: [Select]
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=5
MII_NOT_SUPPORTED=no
USERCTL=no
RESOLV_MODS=no
LINK_DETECTION_DELAY=6
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=no
DHCP_CLIENT=dhclient
NEEDHOSTNAME=yes
PEERDNS=yes
PEERYP=yes
PEERNTPD=no

(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wired connection no longer working - Wireless works fine
« Reply #6 on: December 19, 2011, 02:44:43 PM »

OK, that config file says the interface is set to start at boot time and get its IP address from the router.

Now, run these commands and give the output of the last three

service syslog restart

echo "" > /var/log/syslog

dhclient eth0

cat  /var/log/syslog

ifcobfig
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: Wired connection no longer working - Wireless works fine
« Reply #7 on: December 19, 2011, 05:43:38 PM »
Thanks, the results are as follows:

dhclient eth0
[No result, cursor just blinks]

cat  /var/log/syslog
Code: [Select]
Dec 20 11:37:24 netbook klogd: IOCTL::unknown IOCTL's cmd = 0x00008947
Dec 20 11:37:27 netbook dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Dec 20 11:37:27 netbook klogd: IOCTL::unknown IOCTL's cmd = 0x00008947
Dec 20 11:37:33 netbook last message repeated 2 times
Dec 20 11:37:35 netbook dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Dec 20 11:37:36 netbook klogd: IOCTL::unknown IOCTL's cmd = 0x00008947
Dec 20 11:38:09 netbook last message repeated 11 times

ifconfig
Code: [Select]
# ifconfig
eth0      Link encap:Ethernet  HWaddr 40:61:86:AD:EB:B0 
          UP 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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:43 Base address:0x6000

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:92 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6904 (6.7 KiB)  TX bytes:6904 (6.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 40:61:86:9B:20:A1 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::4261:86ff:fe9b:20a1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3686966 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1613611 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1755538588 (1.6 GiB)  TX bytes:1127915914 (1.0 GiB)
          Interrupt:16
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wired connection no longer working - Wireless works fine
« Reply #8 on: December 19, 2011, 06:07:21 PM »
Quote
Dec 20 11:37:27 netbook dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8

The line above in the log file shows the interface is asking the network for an IP address

Quote
Dec 20 11:37:27 netbook klogd: IOCTL::unknown IOCTL's cmd = 0x00008947

Never seen that error msg before but i suspect they are the root of the problem. The interface trips somewhere after it sends a request for an IP address or when it receives one.

You can try to troubleshoot this or try to set up a static IP address and see if it will work around the problem.

Go to pcc, and go through the steps to set up the interface but choose "manual configuration" this time instead of "automatic IP" and set up a static IP address.

The fields should be self explanatory. If you dont know the default gateway, run the following command when the wireless connection is up and running and the second column from the left on the last line is the default gateway address

route -n
 
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: Wired connection no longer working - Wireless works fine
« Reply #9 on: December 19, 2011, 07:32:01 PM »
Thanks for the suggestion. I tried the static ip by using the network wizard but it failed at the end saying it couldn't connect. So I still have no ethernet connection. I have checked the router and I cannot see any cause there.  ???
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1593
Re: Wired connection no longer working - Wireless works fine
« Reply #10 on: December 20, 2011, 05:49:35 AM »
Just a thought
Have you tried a different cable - or - the port that the cable plugs into could be getting bad/dirty/corroded ?

I have a friend that has a laptop,  the port where the Ethernet cable plugs into is going bad and he can connect wireless
but has issues when connecting wired - sometimes it works and sometimes it doesn't.

this is how he gets around the bad port:   http://www.pclinuxos.com/forum/index.php/topic,100263.msg851373.html#msg851373

$16.95 to $45.99 depending on where you buy.

Again, its just a thought - hope it helps

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: Wired connection no longer working - Wireless works fine
« Reply #11 on: December 20, 2011, 02:08:59 PM »
Yes, it is worth a try to test the port. I will d/l a live linux distro and put it on a usb stick. If I can get the ethernet to work I can rule out the port being the problem.
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS