Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Network Connections randomly stop working
New Posts  All Forums:Forum Nav:

Network Connections randomly stop working

post #1 of 14
Thread Starter 
So, I have run into an issue, and I am not sure what is causing it. If it is a hardware related problem, VMWare (which I just uninstalled to test), Samba (which is seeming less likely), or something else entirely. I am running the 64-bit version of Kubuntu.

What happens:

All my connections to the machine will stop working, ping, ssh, vnc, samba shares, etc. However, all local connections still work, and my IRC is still connected when I am able to reconnect to the VNC sessions.

I was resolving this by running sudo service smbd restart, but after uninstalling and re-installing from scratch, I don't think Samba is the issue.

It is not resolved by either IP Address or Host Name.

Dmesg: http://pastebin.com/nVESEtXD

lsmod:
Code:
andrew@server:/srv/storage/Applications/VMWare$ sudo lsmod
Module                  Size  Used by
ipt_MASQUERADE         12759  1 
iptable_nat            13229  1 
nf_nat                 25891  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      19716  3 iptable_nat,nf_nat
nf_conntrack           81926  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4         12729  1 nf_conntrack_ipv4
ip_tables              27473  1 iptable_nat
x_tables               29846  3 ipt_MASQUERADE,iptable_nat,ip_tables
bnep                   18281  2 
rfcomm                 47604  0 
bluetooth             180104  10 bnep,rfcomm
ppdev                  17113  0 
binfmt_misc            17540  1 
dm_crypt               23125  0 
psmouse                87692  0 
serio_raw              13211  0 
k8temp                 13057  0 
edac_core              53746  0 
edac_mce_amd           23709  0 
shpchp                 37277  0 
joydev                 17693  0 
i2c_nforce2            13058  0 
asus_atk0110           18078  0 
mac_hid                13253  0 
lp                     17799  0 
parport                46562  2 ppdev,lp
nouveau               774571  3 
ttm                    76949  1 nouveau
drm_kms_helper         46978  1 nouveau
drm                   242038  5 nouveau,ttm,drm_kms_helper
i2c_algo_bit           13423  1 nouveau
usbhid                 47199  0 
hid                    99559  1 usbhid
mxm_wmi                12979  1 nouveau
e1000e                156693  0 
megaraid_sas           83020  1 
sata_promise           18398  1 
pata_amd               14118  0 
video                  19596  1 nouveau
wmi                    19256  1 mxm_wmi

If there is anything else that could be helpful to diagnose the issue, please let me know and I will post them.

It has gotten incredibly annoying, because I will be working on something in the VNC Sessions and then whatever I am typing just stops, and I have to go to the back and restart a service.
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #2 of 14
Thread Starter 
Bump, need some help with this, as it is happening again. Uninstalling VMWare did not resolve the problem.

http://pastebin.com/jFnXELkQ

The dropped packets increased by 200~.

Really need help diagnosing this issue.

Grabbed an ethtool readout:
http://paste.ubuntu.com/977081/
http://paste.ubuntu.com/977082/
Edited by Lige - 5/8/12 at 6:23pm
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #3 of 14
Weird. Could be a number of things but I'm not really sure where to start looking myself. Do you get the same problem with a Linux Live CD (ie to eliminate a hardware fault)? What's in your iptables rule?
post #4 of 14
Quote:
Originally Posted by Plan9 View Post

What's in your iptables rule?

That was going to be my first question....
post #5 of 14
Clarification, local means home network and by "All my connections to the machine will stop working" you are referring to outside your network - the internet. Am I correct? If so, then I would look between router and outbound (modem, whatever). If you lose all connections to your local network, such as the inability to ping your gateway:

sudo ping -c 4 192.168.1.1 (or whatever the IP is)

If that doesn't work I'd look at the router first. You don't mention if your router has reset, or there was a power outtage. Either way I'd first check the router lease times if that's the problem. Then I'd go into configurations. That's just how I'd go about it.

[edit] I also assume you've power cycled everything, as lame as that sounds I can't count how many times power cycling (reset) a router has fixed the issue. It has happened enough times to make me hate routers. lol
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #6 of 14
Quote:
Originally Posted by mushroomboy View Post

Clarification, local means home network and by "All my connections to the machine will stop working" you are referring to outside your network - the internet. Am I correct? If so, then I would look between router and outbound (modem, whatever). If you lose all connections to your local network, such as the inability to ping your gateway:
sudo ping -c 4 192.168.1.1 (or whatever the IP is)
If that doesn't work I'd look at the router first. You don't mention if your router has reset, or there was a power outtage. Either way I'd first check the router lease times if that's the problem. Then I'd go into configurations. That's just how I'd go about it.
[edit] I also assume you've power cycled everything, as lame as that sounds I can't count how many times power cycling (reset) a router has fixed the issue. It has happened enough times to make me hate routers. lol

To be honest I read it as all inbound connections (to the box) time out yet all outbound (from the box) work. But I'll grant you that he's wording was ambiguous.
post #7 of 14
If I am reading the config right (been a while on linux) you have your IP set to 10.10.10.254, try setting it to some thing other than 10.10.10.1 or 10.10.10.254... routers like to use these IPs and would explain a dead internet connection.
post #8 of 14
Quote:
Originally Posted by DarkPhoenix View Post

If I am reading the config right (been a while on linux) you have your IP set to 10.10.10.254, try setting it to some thing other than 10.10.10.1 or 10.10.10.254... routers like to use these IPs and would explain a dead internet connection.

That also might be given if he's directly connected to a cable modem. If you get a 10.X IP your generally being firewalled by your ISP. Mediacom here does it if your not registered, I know some cable guys so I get a lot of inside info. 10.X IPs are generally used for ISP connections, routers don't generally touch those your thinking modems. Most routers, if not all, are shipped to be setup auto-dhcp (gateway 192.168.0.1) as well as broadcast on 192.168.1.X-192.168.1.255 (192.168.1.1 is the router's gateway address). So if he's getting a 10.X IP I'm assuming there is no router connected, this entire thing is a bit confusing.

Plan9, that's why I wish he would have worded it as a home network problem or an Internet problem. Cause if it's an internet problem than it most likely has nothing to do with the PC. I just thought it would be nice for some clarity.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #9 of 14
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Weird. Could be a number of things but I'm not really sure where to start looking myself. Do you get the same problem with a Linux Live CD (ie to eliminate a hardware fault)? What's in your iptables rule?
andrew@server:~$ sudo iptables -nvL
Chain INPUT (policy ACCEPT 2050 packets, 337K bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 2006 packets, 700K bytes)
pkts bytes target prot opt in out source destination

Quote:
Originally Posted by mushroomboy View Post

Clarification, local means home network and by "All my connections to the machine will stop working" you are referring to outside your network - the internet. Am I correct? If so, then I would look between router and outbound (modem, whatever). If you lose all connections to your local network, such as the inability to ping your gateway:

sudo ping -c 4 192.168.1.1 (or whatever the IP is)

If that doesn't work I'd look at the router first. You don't mention if your router has reset, or there was a power outtage. Either way I'd first check the router lease times if that's the problem. Then I'd go into configurations. That's just how I'd go about it.

[edit] I also assume you've power cycled everything, as lame as that sounds I can't count how many times power cycling (reset) a router has fixed the issue. It has happened enough times to make me hate routers. lol

Yes, power cycled everything.
By all connections to the machine have stopped working, I refer to all connections within the LAN, incoming and outgoing to that server. Any traffic that ranges within 10.10.10.x subnet. Traffic going outbound from the machine to the Internet, is still working.

Quote:
Originally Posted by mushroomboy View Post

Quote:
Originally Posted by DarkPhoenix View Post

If I am reading the config right (been a while on linux) you have your IP set to 10.10.10.254, try setting it to some thing other than 10.10.10.1 or 10.10.10.254... routers like to use these IPs and would explain a dead internet connection.

That also might be given if he's directly connected to a cable modem. If you get a 10.X IP your generally being firewalled by your ISP. Mediacom here does it if your not registered, I know some cable guys so I get a lot of inside info. 10.X IPs are generally used for ISP connections, routers don't generally touch those your thinking modems. Most routers, if not all, are shipped to be setup auto-dhcp (gateway 192.168.0.1) as well as broadcast on 192.168.1.X-192.168.1.255 (192.168.1.1 is the router's gateway address). So if he's getting a 10.X IP I'm assuming there is no router connected, this entire thing is a bit confusing.

Plan9, that's why I wish he would have worded it as a home network problem or an Internet problem. Cause if it's an internet problem than it most likely has nothing to do with the PC. I just thought it would be nice for some clarity.[/

My router(s)/access points are in 10.10.10.1-5, DCHP releases IPs from 10.10.10.6-10.10.10.220, with static IP's and PXE going from 10.10.10.221-10.10.10.254
I ended up replacing the NIC in both machines, and the problem does seem to be resolved though.
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #10 of 14
So what happens when you lose network connections? Are you able to ping anything including your local addresses? Do your terminals freeze? Error messages? Did you check /var/log/messages and kernel?
workstation
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500K EVGA Z68 SLI GeForce 670 GTX G.Skill 32GB 1600Mhz 
Hard DriveCoolingOSMonitor
OCZ Agility 3 60GB Zalman arch x86_x64 U3011 + U3014 
PowerCaseMouseAudio
PCPowerCooling 860w Chenbro server G500 Asus D2X, Def Tech 5.3 
  hide details  
Reply
workstation
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500K EVGA Z68 SLI GeForce 670 GTX G.Skill 32GB 1600Mhz 
Hard DriveCoolingOSMonitor
OCZ Agility 3 60GB Zalman arch x86_x64 U3011 + U3014 
PowerCaseMouseAudio
PCPowerCooling 860w Chenbro server G500 Asus D2X, Def Tech 5.3 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Network Connections randomly stop working