LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-24-2009, 02:32 PM   #1
qwertysimo
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Network connection stopped working


Hello,

I spent lot of time searching on my issue but no luck.

I have Debian installed a year ago, working perfectly until last week when network card connected to internet stopped to communicate. I did no change in configuration. It just stopped to work while I was reading an online web page. Network card connected to local network still works fine.

I thought it might be a NIC failure so I installed a new PCI NIC but no change, still no communication throught this NIC.

I verified/changed cable between NIC and the router, no luck. If I connect the same cable from router to a Windows PC, everything is OK. If I connect back to Debian machine, it does not work.

I tried connect this NIC with a different router with DHCP enabled, nothing, NIC will not communicate with DHCP server.

I tried to set static IP, no change.

Today I booted a Knoppix 6.2 and this NIC worked perfetly! It set up using DHCP, I could access the internet.

I booted machine as usual and the problem still persists of course.

This is information captured immediately after boot. The trouble NIC is eth0 after boot finishes.


# dmesg | grep eth
eth0: (PCI Express:2.5GB/s:Width x4) 00:15:17:6f:a1:b4
eth0: Intel(R) PRO/1000 Network Connection
eth0: MAC: 0, PHY: 4, PBA No: d50868-003
eth1: (PCI Express:2.5GB/s:Width x4) 00:15:17:6f:a1:b5
eth1: Intel(R) PRO/1000 Network Connection
eth1: MAC: 0, PHY: 4, PBA No: d50868-003
eth2: RTL8168b/8111b at 0xffffc20000032000, 00:1e:8c:1e:e4:19, XID 38000000 IRQ 316
udev: renamed network interface eth2 to eth0
udev: renamed network interface eth0_rename to eth2
bonding: bond0: enslaving eth1 as an active interface with a down link.
bonding: bond0: enslaving eth2 as an active interface with a down link.
eth2: Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
bonding: bond0: link status definitely up for interface eth2.
r8169: eth0: link up


#lspci | grep net
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
05:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
05:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)


#lsmod (shortened)
r8169 31172 0
e1000e 95908 0


#cat /etc/network/interfaces (shortened)
auto eth0
iface eth0 inet dhcp

auto bond0
iface bond0 inet static
address 192.168.1.200
netmask 255.255.255.0
hwaddress ether 00:15:17:6f:a1:b5
up ifenslave bond0 eth1 eth2
down ifenslave -d bond0 eth1 eth2


#ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: Not reported
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes


# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1e:8c:1e:e4:19
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:60


All this was captured with eth0 connect to a router with DHCP enabled. There is no DHCP entry in syslog related to eth0.


Please, does anybody has an idea what to try or what is happening? Reinstall is the very last option.

Thanks.


qwertyismo
 
Old 11-24-2009, 03:01 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Could you please, if you have "hwinfo" utility, post output of:

hwinfo --netcard

Thanks.
 
Old 11-24-2009, 03:46 PM   #3
qwertysimo
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

please find it below.

One more information on one of the tests I have done. I connected my notebook using cross-over ethernet cable to eth0 and on both sides set static IP. This was the only configuration that worked - receiving and transmitting worked well.

When I connect eth0 to internet router, there is no communication and especialy there are no RX bytes, just couple of TX when I tried to ping default gateway. I thought the router may be faulty hence I tried brand new wifi router with DHCP server enabled - no communication between eth0 and DHCP router as well. This wifi router's DHCP server works fine when connected to my notebook...


# hwinfo --netcard
30: PCI 400.0: 0200 Ethernet controller
[Created at pci.318]
Unique ID: rBUF.Qz2rwb_do68
Parent ID: HnsE.b2HeBu2fNjB
SysFS ID: /devices/pci0000:00/0000:00:1c.5/0000:04:00.0
SysFS BusID: 0000:04:00.0
Hardware Class: network
Model: "ASUSTeK P5B"
Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
Device: pci 0x8168 "RTL8111/8168B PCI Express Gigabit Ethernet controller"
SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
SubDevice: pci 0x81aa "P5B"
Revision: 0x01
Driver: "r8169"
Driver Modules: "r8169"
Device File: eth0
I/O Ports: 0xb800-0xb8ff (rw)
Memory Range: 0xff5ff000-0xff5fffff (rw,non-prefetchable)
Memory Range: 0xff5c0000-0xff5dffff (ro,prefetchable,disabled)
IRQ: 316 (no events)
HW Address: 00:1e:8c:1e:e4:19
Link detected: yes
Module Alias: "pci:v000010ECd00008168sv00001043sd000081AAbc02sc00i00"
Driver Info #0:
Driver Status: r8169 is active
Driver Activation Cmd: "modprobe r8169"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #15 (PCI bridge)
 
Old 11-24-2009, 03:59 PM   #4
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Ok. According to hwinfo you have only one ethernet card: "RTL8111/8168B PCI Express Gigabit Ethernet controller"
Device File: eth0
Driver: "r8169"
Driver Status: r8169 is active
Driver Activation Cmd: "modprobe r8169"

Can you connect that ethernet card to router with straight cable, make sure that LED start blinking on both sides, and then do "dmesg | tail" and "ifconfig eth0"
Post output here please.
 
Old 11-25-2009, 12:00 AM   #5
qwertysimo
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

#dmesg | tail
r8169: eth0: link down
r8169: eth0: link up

# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1e:8c:1e:e4:19
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:247 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:88863 (86.7 KiB) TX bytes:0 (0.0 B)
Interrupt:60

LEDs on both sides lit on although only the status link. Traffic LEDs are not blinking.

Actualy there are eth1 and eth2 bonded as bond0, see my first post with /etc/network/interfaces content. bond0 is for local network and works fine. If cancel bonding and reset eth1 and eth2 for dynamic settings and connect them to a router with DHCP enabled, it behaves the same. Link comes up but NIC gets no configuration from DHCP and there is no traffic.


This is full output:

# hwinfo --network
32: None 00.0: 10700 Loopback
[Created at net.124]
Unique ID: ZsBS.GQNx7L4uPNA
SysFS ID: /class/net/lo
Hardware Class: network interface
Model: "Loopback network interface"
Device File: lo
Link detected: yes
Config Status: cfg=new, avail=yes, need=no, active=unknown

33: None 02.0: 10701 Ethernet
[Created at net.124]
Unique ID: pDke.ndpeucax6V1
Parent ID: mY_N.TIl8unbbbP9
SysFS ID: /class/net/eth2
SysFS Device Link: /devices/pci0000:00/0000:00:1c.0/0000:05:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "e1000e"
Driver Modules: "e1000e"
Device File: eth2
HW Address: 00:15:17:6f:a1:b5
Link detected: yes
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #21 (Ethernet controller)

34: None 01.0: 10701 Ethernet
[Created at net.124]
Unique ID: L2Ua.ndpeucax6V1
Parent ID: JNkJ.TIl8unbbbP9
SysFS ID: /class/net/eth1
SysFS Device Link: /devices/pci0000:00/0000:00:1c.0/0000:05:00.1
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "e1000e"
Driver Modules: "e1000e"
Device File: eth1
HW Address: 00:15:17:6f:a1:b5
Link detected: no
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #22 (Ethernet controller)

35: None 00.0: 10701 Ethernet
[Created at net.124]
Unique ID: usDW.ndpeucax6V1
Parent ID: rBUF.Qz2rwb_do68
SysFS ID: /class/net/eth0
SysFS Device Link: /devices/pci0000:00/0000:00:1c.5/0000:04:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "r8169"
Driver Modules: "r8169"
Device File: eth0
HW Address: 00:1e:8c:1e:e4:19
Link detected: yes
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #23 (Ethernet controller)

36: None 00.0: 10701 Ethernet
[Created at net.124]
Unique ID: R53u.ndpeucax6V1
Parent ID: mY_N.TIl8unbbbP9
SysFS ID: /class/net/bond0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "bonding"
Device File: bond0
HW Address: 00:15:17:6f:a1:b5
Link detected: yes
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #21 (Ethernet controller)


eth1 has no link now as the machine is placed outside it's physical place far from switch enabled for port trunking.
 
Old 11-25-2009, 09:20 AM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by qwertysimo View Post
Hi,

#dmesg | tail
r8169: eth0: link down
r8169: eth0: link up

# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1e:8c:1e:e4:19
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:247 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:88863 (86.7 KiB) TX bytes:0 (0.0 B)
Interrupt:60

LEDs on both sides lit on although only the status link. Traffic LEDs are not blinking.
Ok.

Tell us what is IP address of the router's LAN interface?
So we can configure your eth0.
 
Old 12-08-2009, 12:02 PM   #7
qwertysimo
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

I started to install Debian on new harddrive. I forgot to copy some things from old installation so I reconnected old harddrive. Network card works without a problem. I did no SW/HW change in setup. I hope this will not happen in future.

Thanks for comments.
 
Old 12-09-2009, 01:42 AM   #8
ubee
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
sudo /etc/init.d/networking start
 
  


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
Wired connection stopped working on Dell D620, help :( uid0sd Linux - Networking 8 11-20-2009 02:05 PM
Vodafone mobile connection stopped working!! siouxzieq Linux Mint 0 11-12-2009 02:00 PM
Network connection stopped working... network icon at bottom right corner dissapered? MFA Linux - Newbie 6 03-29-2009 06:00 AM
Ethernet connection stopped working simick1712 Linux - Networking 5 04-23-2008 09:32 AM
internet connection stopped working arch23 Linux - Networking 5 12-19-2003 09:02 AM


All times are GMT -5. The time now is 03:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration