I'm running Ubuntu 12.10 with XFCE. A few days ago, I tried installing Snort and Ubuntu firewall, and I began to experience network problems. Specifically, after a few minutes, I would lose my internet connection, i.e. whenever I tried to access any website with any browser, my browser would just hang indefinitely. I also couldn't ping anything (even my own router). Everything looked good under ifconfig:
and restarting my network card with ifdown/ifup didn't make a difference.Code:eth0 Link encap:Ethernet HWaddr bc:5f:f4:36:90:ac inet addr:192.168.1.116 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::be5f:f4ff:fe36:90ac/64 Scope:Link UP BROADCAST RUNNING NOARP PROMISC MTU:1500 Metric:1 RX packets:421 errors:0 dropped:0 overruns:0 frame:0 TX packets:457 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:442059 (442.0 KB) TX bytes:53199 (53.1 KB) 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:65536 Metric:1 RX packets:43 errors:0 dropped:0 overruns:0 frame:0 TX packets:43 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4624 (4.6 KB) TX bytes:4624 (4.6 KB)
I would have to reboot to get my internet back. I uninstalled both pieces of software, but the problem continued.
After some research, I tried to reinstall the driver for my network card (Realtek Ethernet Controller), and that seemed to do the trick. My internet connection stayed active without my browsers hanging.
However, I discovered that whenever I rebooted my computer, my browser started hanging again until I reinstalled my network card driver. Then my internet would work until the next time I rebooted.
Finally, I upgraded my machine to the just-released Linux 3.8 kernel. Now, when I reboot my machine, I'm back to the old problem: I get a few minutes of internet before it drops out, and I have to reboot to get it back. When I try to reinstall my network card driver, I get a bunch of errors:
(Note: I've replaced the name of my account with "user" in this post for privacy purposes.)Code:Check old driver and unload it. rmmod r8169 Build the module and install /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:14545:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_board’ /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:14715:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_sequence’ /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:14968:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_one’ /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:15132:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_remove_one’ /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:17651:12: error: ‘rtl8168_init_one’ undeclared here (not in a function) /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:17652:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:17652:25: error: ‘rtl8168_remove_one’ undeclared here (not in a function) /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:17301:12: warning: ‘rtl8168_poll’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:1368:1: warning: ‘rtl8168_xmii_reset_pending’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:1383:1: warning: ‘rtl8168_xmii_link_ok’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:1395:1: warning: ‘rtl8168_xmii_reset_enable’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:1544:1: warning: ‘rtl8168_link_option’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:1823:1: warning: ‘rtl8168_set_speed_xmii’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:2151:13: warning: ‘rtl8168_gset_xmii’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:2886:13: warning: ‘rtl8168_get_mac_version’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:3002:1: warning: ‘rtl8168_print_mac_version’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:3044:1: warning: ‘rtl8168_hw_phy_config’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:13681:1: warning: ‘rtl8168_release_board’ defined but not used [-Wunused-function] /home/user/Desktop/r8168-8.035.00/src/r8168_n.c:14914:17: warning: ‘rtl8168_try_msi’ defined but not used [-Wunused-function] cc1: some warnings being treated as errors make[3]: *** [/home/user/Desktop/r8168-8.035.00/src/r8168_n.o] Error 1 make[2]: *** [_module_/home/user/Desktop/r8168-8.035.00/src] Error 2 make[1]: *** [modules] Error 2 make: *** [modules] Error 2
After this runs, I lose my internet connection completely, i.e. my browser now reads "Page cannot be found" for any website. eth0 no longer appears under ifconfig, and running ifup eth0 returns an error that it can't find the network device.
I reboot my computer, and I see eth0 again. I get a few minutes of working internet before my browser starts to hang again.m If I try to reinstall the driver, I get the errors above, I lose my network completely.
This is specific to my machine. None of the other computers on my home network have any internet connectivity problems.
I'm completely stuck on this one. Any help would be appreciated.
Bookmarks