LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I get connected to the internet? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-get-connected-to-the-internet-4175452488/)

JWallabea 03-03-2013 05:39 AM

How do I get connected to the internet?
 
I over wrote my wired computer with Ubuntu. I've put the HD aside, hoping I can rescue stuff off it. I have installed an SSD instead and loaded Ubuntu, but can't get it to connect to the internet. The router is a fritzbox and other computers in the house are connected wirelessly ok.
I've looked for linux drivers for my network adaptors - for my stand alone network adaptor TG-3468, and for my motherboard - Gigabyte GA-H67MA-D2H - which has a built in network adaptor. But neither seem to have linux drivers. I wondered if I should buy another network adaptor that is good for linux but had trouble locating anything except a Sisco-Lynx that couldn't be sent to Australia.
What should I do please?

i92guboj 03-03-2013 05:54 AM

On a quick googling, your board seems to have an r8111 chip, which I think it's supported by the r8169 (or r8168) in-kernel module. But I haven't one of those to test.

It seems your external card uses the same chip (according to this). So the problem must be that your distro doesn't ship that driver by default, for some reason.

Anyway, you can check yourself by using "lsmod" as root in your terminal. Depending on the distro one of these might work.

Code:

$ sudo lsmod
### or
$ su -c 'lsmod'  <then enter password when prompted>


JWallabea 03-04-2013 03:37 AM

thanks i92guboj

When I typed in "$ sudo lsmod" I got a lot of lines, one of which said, "r8169 56321 0"

Does this mean the Alternate CD of Ubuntu 12.04 that I used to load the OS(=distro?), was deficient in the driver I need?

[When I typed in "su -c 'lsmod'" it returned "su: Authentication failure" (I repeated this twice).]

i92guboj 03-04-2013 03:40 AM

Quote:

Originally Posted by JWallabea (Post 4904179)
thanks i92guboj

When I typed in "$ sudo lsmod" I got a lot of lines, one of which said, "r8169 56321 0"

That means that the driver is loaded. Can you post the output of these commands?

Code:

$ ifconfig
$ dmesg | grep -i net

If they don't work, put "sudo" in front of each line as you did above.

schneidz 03-04-2013 10:09 AM

also this information mite be helpful in diagnosing:
Code:

echo uname: && uname -a -m -p && echo lspci: && lspci && echo lsusb: && lsusb && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n

JWallabea 03-05-2013 03:50 AM

some of this may suffer translation loss because I saved it in Word format so that I could copy and paste it to this Windows computer.



~$ ifconfig
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:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4960 (4.9 KB) TX bytes:4960 (4.9 KB)


john@Computer-i7:~$ echo uname: && uname -a -m -p && echo lspci: && lspci && echo lsusb: && lsusb && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n
uname:
Linux Computer-i7 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
lspci:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation H67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 0e23 (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF104 High Definition Audio Controller (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 003: ID 05dc:a817 Lexar Media, Inc.
Bus 001 Device 003: ID 062a:0000 Creative Labs Optical mouse
Bus 002 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
lsmod:
Module Size Used by
nls_utf8 12493 1
nls_iso8859_1 12617 1
nls_cp437 12751 1
vfat 17308 1
fat 55605 1 vfat
isofs 39553 1
snd_hda_codec_hdmi 31775 4
rfcomm 38139 0
bnep 17830 2
bluetooth 158438 10 rfcomm,bnep
parport_pc 32114 0
ppdev 12849 0
snd_hda_codec_realtek 174222 1
snd_hda_intel 32765 5
snd_hda_codec 109562 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_seq_midi 13132 0
snd_rawmidi 25424 1 snd_seq_midi
ext2 67987 1
serio_raw 13027 0
snd_seq_midi_event 14475 1 snd_seq_midi
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80845 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
snd_timer 28931 2 snd_pcm,snd_seq
mac_hid 13077 0
mei 36570 0
snd 62064 20 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_rawmidi,snd_hwdep,snd_pcm,s nd_seq,snd_seq_device,snd_timer
soundcore 14635 1 snd
snd_page_alloc 14108 2 snd_hda_intel,snd_pcm
lp 17455 0
parport 40930 3 parport_pc,ppdev,lp
dm_crypt 22528 2
nouveau 712356 3
ttm 65344 1 nouveau
floppy 60310 0
drm_kms_helper 45466 1 nouveau
drm 197692 5 nouveau,ttm,drm_kms_helper
usbhid 41906 0
i2c_algo_bit 13199 1 nouveau
hid 77367 1 usbhid
mxm_wmi 12859 1 nouveau
wmi 18744 1 mxm_wmi
video 19068 1 nouveau
usb_storage 39646 1
ifconfig:
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:416 errors:0 dropped:0 overruns:0 frame:0
TX packets:416 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:33136 (33.1 KB) TX bytes:33136 (33.1 KB)

ifconfig -a:
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:416 errors:0 dropped:0 overruns:0 frame:0
TX packets:416 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:33136 (33.1 KB) TX bytes:33136 (33.1 KB)

iwconfig:
lo no wireless extensions.

resolv.conf:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface


I came across this last night http://ubuntuforums.org/showthread.php?t=1964200 I wonder if it had relevance... what do you think schneidz?

i92guboj 03-05-2013 04:21 AM

Most of that info is useless. However, it's strange that you said this above:

Quote:

When I typed in "$ sudo lsmod" I got a lot of lines, one of which said, "r8169 56321 0"
But now, in your lsmod output I can't see the network module:

Code:

Module                  Size  Used by
nls_utf8              12493  1
nls_iso8859_1          12617  1
nls_cp437              12751  1
vfat                  17308  1
fat                    55605  1 vfat
isofs                  39553  1
snd_hda_codec_hdmi    31775  4
rfcomm                38139  0
bnep                  17830  2
bluetooth            158438  10 rfcomm,bnep
parport_pc            32114  0
ppdev                  12849  0
snd_hda_codec_realtek  174222  1
snd_hda_intel          32765  5
snd_hda_codec        109562  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_seq_midi          13132  0
snd_rawmidi            25424  1 snd_seq_midi
ext2                  67987  1
serio_raw              13027  0
snd_seq_midi_event    14475  1 snd_seq_midi
snd_hwdep              13276  1 snd_hda_codec
snd_pcm                80845  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq                51567  2 snd_seq_midi,snd_seq_midi_event
snd_seq_device        14172  3 snd_seq_midi,snd_rawmidi,snd_seq
snd_timer              28931  2 snd_pcm,snd_seq
mac_hid                13077  0
mei                    36570  0
snd                    62064  20 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_rawmidi,snd_hwdep,snd_pcm,snd_seq,snd_seq_device,snd_timer
soundcore              14635  1 snd
snd_page_alloc        14108  2 snd_hda_intel,snd_pcm
lp                    17455  0
parport                40930  3 parport_pc,ppdev,lp
dm_crypt              22528  2
nouveau              712356  3
ttm                    65344  1 nouveau
floppy                60310  0
drm_kms_helper        45466  1 nouveau
drm                  197692  5 nouveau,ttm,drm_kms_helper
usbhid                41906  0
i2c_algo_bit          13199  1 nouveau
hid                    77367  1 usbhid
mxm_wmi                12859  1 nouveau
wmi                    18744  1 mxm_wmi
video                  19068  1 nouveau
usb_storage            39646  1

And no network module, of course, means no network at all. That's it, unless you have it compiled statically into your kernel. I am still interested in seeing the output of "sudo dmesg | grep -i net" that I asked for above ;)

JWallabea 03-05-2013 08:35 PM

Sorry about that! I half-followed the previously mentioned link which said to blacklist the old r8169 and install a new one (I couldn't manage to install the new driver.) So now I've unblacklisted and rebooted: I've also included the other info you asked for which I accidentally deleted last time without realising it. Thanks for your patience! :)

john@Computer-i7:~$ sudo lsmod
[sudo] password for john:
Module Size Used by
parport_pc 32114 0
ppdev 12849 0
bnep 17830 2
rfcomm 38139 0
bluetooth 158438 10 bnep,rfcomm
snd_hda_codec_hdmi 31775 4
ext2 67987 1
snd_hda_codec_realtek 174222 1
snd_hda_intel 32765 5
snd_hda_codec 109562 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13276 1 snd_hda_codec
r8169 56321 0
snd_seq_midi 13132 0
snd_rawmidi 25424 1 snd_seq_midi
serio_raw 13027 0
snd_pcm 80845 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi_event 14475 1 snd_seq_midi
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
mei 36570 0
snd_timer 28931 2 snd_pcm,snd_seq
mac_hid 13077 0
snd 62064 20 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_rawmidi,snd_pcm,s nd_seq,snd_seq_device,snd_timer
soundcore 14635 1 snd
snd_page_alloc 14108 2 snd_hda_intel,snd_pcm
lp 17455 0
parport 40930 3 parport_pc,ppdev,lp
dm_crypt 22528 2
nouveau 712356 3
ttm 65344 1 nouveau
usbhid 41906 0
drm_kms_helper 45466 1 nouveau
hid 77367 1 usbhid
drm 197692 5 nouveau,ttm,drm_kms_helper
i2c_algo_bit 13199 1 nouveau
mxm_wmi 12859 1 nouveau
wmi 18744 1 mxm_wmi
video 19068 1 nouveau
floppy 60310 0
usb_storage 39646 0
john@Computer-i7:~$

john@Computer-i7:~$ sudo dmesg | grep -i net
[ 0.000000] Transmeta GenuineTMx86
[ 0.922208] NET: Registered protocol family 16
[ 0.951910] NetLabel: Initializing
[ 0.951911] NetLabel: domain hash size = 128
[ 0.951912] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.951918] NetLabel: unlabeled traffic allowed by default
[ 0.995270] NET: Registered protocol family 2
[ 0.995642] NET: Registered protocol family 1
[ 1.026298] audit: initializing netlink socket (disabled)
[ 1.653097] NET: Registered protocol family 10
[ 1.653345] NET: Registered protocol family 17
[ 31.290313] type=1400 audit(1362534717.207:3): apparmor="STATUS" operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=766 comm="apparmor_parser"
[ 31.355696] NET: Registered protocol family 31
[ 31.440888] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 151.648753] type=1400 audit(1362534837.911:8): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1227 comm="apparmor_parser"
john@Computer-i7:~$

i92guboj 03-06-2013 01:29 AM

I didn't see the link you are referring to, can you paste it here? As said, i don't own one of those so there might be any issue with it that i am not aware of.

Another thing. Now that you have the module loaded, what does ifconfig says? Also, please, pastte the whole dmesg if you can.

schneidz 03-06-2013 07:38 AM

google(02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01))[1] = http://askubuntu.com/questions/19861...n-ubuntu-12-04

i92guboj 03-07-2013 02:24 AM

My current thought is: is there any chance for a kernel upgrade in ubuntu or whatever distro you are using? 3.2 is quite old by now, and before complicating yourself with 3rd party stuff that will break every two weeks, I suggest that you try an up-to-date kernel. Since there's a driver for your hardware in the kernel there's a very high chance that any bug affecting this concrete driver has been fixed.

I can't test myself, as said, but it seems that this chip has been problematic.

I've seen reports of some people that managed to get this 8111/8168 chip by using the r8169 driver AND having the correct firmware installed (dmesg should report something about missing firmware when loading the r8169 driver).

If not, then that guide that you posted should help, but before downloading random drivers from anywhere, I'd check if there are packages with the string "8168" in synaptic or whatever package manager you're using. In any case, whatever solution you try, stick to it and ask back here when in doubt. If you go bouncing between many ways it's difficult to keep track of what you are doing, besides the fact that one action in one of the ways might invalidate the others, like the issue I detected above about the r8169 driver not being loaded.

So far, your options are (to summarize):
  • r8169 from the kernel + the correct firmware,
  • r8168, if possible, from your package manager, for this you need to blacklist r8169 it seems

Pick one, proceed, in any case, the procedure to check what's failing is the same.
  • lsmod, look for the driver you are working with, and double check that the other driver IS NOT loaded, two drivers fighting for the same hardware is no good
  • check the output for dmesg, specially for things about "eth0", "net" and "r8168" (or 8169), if in doubt, paste the relevant lines here and we'll try to give you some advice on how to proceed
  • if everyting is right, check ifconfig, eth0 should show up in there, here you need to check if you have an inet address, if not then you should probably use dhclient, dhcpcd or whatever ubuntu uses these days to get an ip address via dhcp

jschiwal 03-07-2013 02:47 AM

Please run "sudo modinfo r8169". This will print out info on whether firmware is loaded, and what the firmware files are in /lib/firmware/.

If the device is working, you still need to configure wpa2 and networking before connecting to the internet. The latter may be as simple as selecting DHCP.

thumbelina 03-08-2013 11:26 PM

a couple of suggestions, if I may...

run the dmesg without grep -i net.

Then carefully look thru the verbose dmesg output for the stanzas where the kernel initializes the wifi driver for the 8111. There should should be an assigned device nmemonic shown (ie: wlan0 or ath0 or rausb0 etc.).

Now, Realtek wifi devices typically require firmware to be loaded. It is likely that the driver is detecting that firmware is required but is NOT loaded. You may have to find the appropriate firmware file, download and install it into the firmware subdirectory.

Also, when you run the ifconfig command, be sure and turn that device on first (ie: ifconfig wlan0 up) and then repeat the ifconfig command without arguments (ie: ifconfig) This should show information about that device with various details (ie: MAC address, recieve/transmit byte counts, memory-mapped I/O ports, and IRQ). If you attain this point in the device initialization, it is ready for use. NetworkManager (or wicd) should then initialize it with an IP address and proper routing.

As an alternate example, so you can view what sorts of messages you can expect to appear in the system messages file when a WiFi device is detected and initialized, I plugged in a Edimax USB WiFi that I have here. It is not a Realtek device, but is a Ralink device, but the messages will be quite similiar. I then extracted the kernel messages which appeared in the messages file for your viewing pleasure:


Mar 8 22:04:52 obdurate kernel: usb 1-2: new high speed USB device number 3 using ehci_hcd
Mar 8 22:04:53 obdurate kernel: usb 1-2: New USB device found, idVendor=148f, idProduct=2573
Mar 8 22:04:53 obdurate kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Mar 8 22:04:53 obdurate kernel: usb 1-2: Product: 802.11 bg WLAN
Mar 8 22:04:53 obdurate kernel: usb 1-2: Manufacturer: Ralink
Mar 8 22:04:53 obdurate kernel: usb 1-2: configuration #1 chosen from 1 choice
Mar 8 22:04:54 obdurate kernel: cfg80211: Calling CRDA to update world regulatory domain
Mar 8 22:04:54 obdurate kernel: usb 1-2: reset high speed USB device number 3 using ehci_hcd
Mar 8 22:04:54 obdurate kernel: Registered led device: rt73usb-phy0::radio
Mar 8 22:04:54 obdurate kernel: Registered led device: rt73usb-phy0::assoc
Mar 8 22:04:54 obdurate kernel: Registered led device: rt73usb-phy0::quality
Mar 8 22:04:54 obdurate kernel: usbcore: registered new interface driver rt73usb
Mar 8 22:04:55 obdurate kernel: cfg80211: World regulatory domain updated:
Mar 8 22:04:55 obdurate kernel: cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Mar 8 22:04:55 obdurate kernel: cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: Calling CRDA for country: US
Mar 8 22:04:55 obdurate NetworkManager[2381]: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
Mar 8 22:04:55 obdurate NetworkManager[2381]: <info> (wlan0): new 802.11 WiFi device (driver: 'rt73usb' ifindex: 7)
Mar 8 22:04:55 obdurate NetworkManager[2381]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1
Mar 8 22:04:55 obdurate NetworkManager[2381]: <info> (wlan0): now managed
Mar 8 22:04:55 obdurate NetworkManager[2381]: <info> (wlan0): device state change: 1 -> 2 (reason 2)
Mar 8 22:04:55 obdurate NetworkManager[2381]: <info> (wlan0): bringing up device.
Mar 8 22:04:55 obdurate kernel: rt73usb 1-2:1.0: firmware: requesting rt73.bin
Mar 8 22:04:55 obdurate kernel: cfg80211: Regulatory domain changed to country: US
Mar 8 22:04:55 obdurate kernel: cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Mar 8 22:04:55 obdurate kernel: cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 8 22:04:55 obdurate kernel: cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Mar 8 22:04:56 obdurate kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Mar 8 22:04:56 obdurate NetworkManager[2381]: <info> (wlan0): preparing device.
Mar 8 22:04:56 obdurate NetworkManager[2381]: <info> (wlan0): deactivating device (reason: 2).
Mar 8 22:04:56 obdurate NetworkManager[2381]: <info> found WiFi radio killswitch rfkill0 (at /sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/ieee80211/phy0/rfkill0) (driver <unknown>)
Mar 8 22:04:56 obdurate NetworkManager[2381]: <info> (wlan0): supplicant interface state: starting -> ready
Mar 8 22:04:56 obdurate NetworkManager[2381]: <info> (wlan0): device state change: 2 -> 3 (reason 42)

My system runs CentOS 6.2 with kernel 2.6.32-279.2.1.el6.x86_64 #1 SMP instead of Ubuntu but the kernel messages should be quite similiar.

HTH

JWallabea 03-10-2013 12:09 AM

thanks guys for your suggestions and interest...

I think I've made progress. Here are some edited current lsmod, ifconfig and dmesg printouts after a fresh reboot - below. I think I've got the new driver in there working - have I?? In which case, maybe I 'm up to configuring my network connection? if so can I get ubuntu 12.04 to set up my connection automatically?

john@Computer-i7:~$ lsmod
Module Size Used by
nls_iso8859_1 12617 1
nls_cp437 12751 1
vfat 17308 1
fat 55605 1 vfat
snd_hda_codec_hdmi 31775 4
rfcomm 38139 0
bnep 17830 2
bluetooth 158438 10 rfcomm,bnep
parport_pc 32114 0
ppdev 12849 0
snd_hda_codec_realtek 174222 1
ext2 67987 1
snd_hda_intel 32765 5
snd_hda_codec 109562 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_seq_midi 13132 0
snd_rawmidi 25424 1 snd_seq_midi
snd_hwdep 13276 1 snd_hda_codec
snd_seq_midi_event 14475 1 snd_seq_midi
snd_pcm 80845 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
serio_raw 13027 0
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
snd_timer 28931 2 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 62064 20 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_rawmidi,snd_hwdep,snd_pcm,s nd_seq,snd_timer,snd_seq_device
soundcore 14635 1 snd
snd_page_alloc 14108 2 snd_hda_intel,snd_pcm
mac_hid 13077 0
mei 36570 0
lp 17455 0
parport 40930 3 parport_pc,ppdev,lp
dm_crypt 22528 2
usbhid 41906 0
hid 77367 1 usbhid
r8168 235186 0
floppy 60310 0
nouveau 712356 3
ttm 65344 1 nouveau
drm_kms_helper 45466 1 nouveau
drm 197692 5 nouveau,ttm,drm_kms_helper
i2c_algo_bit 13199 1 nouveau
mxm_wmi 12859 1 nouveau
wmi 18744 1 mxm_wmi
video 19068 1 nouveau
usb_storage 39646 1
john@Computer-i7:~$


john@Computer-i7:~$ ifconfig
eth0 Link encap:Ethernet HWaddr f4:ec:38:80:cb:df
inet addr:192.168.178.31 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::f6ec:38ff:fe80:cbdf/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1375 errors:0 dropped:0 overruns:0 frame:0
TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:159400 (159.4 KB) TX bytes:16875 (16.8 KB)
Interrupt:50 Base address:0x8000

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:549 errors:0 dropped:0 overruns:0 frame:0
TX packets:549 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44640 (44.6 KB) TX bytes:44640 (44.6 KB)

john@Computer-i7:~$

dmesg

..[ 0.994915] pci 0000:01:00.0: BAR 6: assigned [mem 0xe8000000-0xe807ffff pref]
[ 0.994916] pci 0000:00:01.0: PCI bridge to [bus 01-01]
[ 0.994918] pci 0000:00:01.0: bridge window [io 0xe000-0xefff]
[ 0.994920] pci 0000:00:01.0: bridge window [mem 0xf6000000-0xf9ffffff]
[ 0.994922] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xefffffff 64bit pref]
[ 0.994925] pci 0000:02:00.0: BAR 6: assigned [mem 0xdf800000-0xdf81ffff pref]
[ 0.994926] pci 0000:00:1c.0: PCI bridge to [bus 02-02]
[ 0.994929] pci 0000:00:1c.0: bridge window [io 0xd000-0xdfff]
[ 0.994933] pci 0000:00:1c.0: bridge window [mem 0xfbd00000-0xfbdfffff]
[ 0.994936] pci 0000:00:1c.0: bridge window [mem 0xdf800000-0xdf8fffff pref]
[ 0.994941] pci 0000:00:1c.7: PCI bridge to [bus 03-03]
[ 0.994945] pci 0000:00:1c.7: bridge window [mem 0xfbe00000-0xfbefffff]
[ 0.994963] pci 0000:00:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 0.994966] pci 0000:00:01.0: setting latency timer to 64
[ 0.994970] pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 0.994973] pci 0000:00:1c.0: setting latency timer to 64
[ 0.994980] pci 0000:00:1c.7: PCI INT D -> GSI 19 (level, low) -> IRQ 19
[ 0.994983] pci 0000:00:1c.7: setting latency timer to 64
[ 0.994986] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7]
[ 0.994987] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff]
[ 0.994989] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff]
[ 0.994990] pci_bus 0000:00: resource 7 [mem 0x000c0000-0x000dffff]
[ 0.994991] pci_bus 0000:00: resource 8 [mem 0xdf800000-0xfebfffff]
[ 0.994993] pci_bus 0000:01: resource 0 [io 0xe000-0xefff]
[ 0.994994] pci_bus 0000:01: resource 1 [mem 0xf6000000-0xf9ffffff]
[ 0.994995] pci_bus 0000:01: resource 2 [mem 0xe0000000-0xefffffff 64bit pref]
[ 0.994997] pci_bus 0000:02: resource 0 [io 0xd000-0xdfff]
[ 0.994998] pci_bus 0000:02: resource 1 [mem 0xfbd00000-0xfbdfffff]
[ 0.994999] pci_bus 0000:02: resource 2 [mem 0xdf800000-0xdf8fffff pref]
[ 0.995001] pci_bus 0000:03: resource 1 [mem 0xfbe00000-0xfbefffff]
[ 0.995023] NET: Registered protocol family 2
[ 0.995059] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.995150] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.995294] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.995355] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.995356] TCP reno registered
[ 0.995357] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.995361] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.995396] NET: Registered protocol family 1
[ 0.995410] pci 0000:00:1a.0: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[ 1.009610] pci 0000:00:1a.0: PCI INT C disabled
[ 1.009624] pci 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[ 1.025565] pci 0000:00:1d.0: PCI INT A disabled
[ 1.025583] pci 0000:01:00.0: Boot video device
[ 1.025599] pci 0000:03:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 1.025620] pci 0000:03:00.0: PCI INT A disabled
[ 1.025624] PCI: CLS 4 bytes, default 64
[ 1.026052] audit: initializing netlink socket (disabled)
[ 1.026058] type=2000 audit(1362890831.804:1): initialized
[ 1.044268] highmem bounce pool size: 64 pages
[ 1.044272] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 1.053687] VFS: Disk quotas dquot_6.5.2
[ 1.053730] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.054034] fuse init (API version 7.17)
[ 1.054086] msgmni has been set to 1517
[ 1.054296] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 1.054314] io scheduler noop registered
[ 1.054315] io scheduler deadline registered
[ 1.054318] io scheduler cfq registered (default)
[ 1.054375] pcieport 0000:00:01.0: setting latency timer to 64
[ 1.054394] pcieport 0000:00:01.0: irq 40 for MSI/MSI-X
[ 1.054509] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 1.054523] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 1.054571] intel_idle: MWAIT substates: 0x1120
[ 1.054572] intel_idle: v0.4 model 0x2A
[ 1.054573] intel_idle: lapic_timer_reliable_states 0xffffffff
[ 1.054635] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
[ 1.054638] ACPI: Power Button [PWRB]
[ 1.054667] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[ 1.054669] ACPI: Power Button [PWRF]
[ 1.058795] ERST: Table is not found!
[ 1.058797] GHES: HEST is not enabled!
[ 1.058838] isapnp: Scanning for PnP cards...
[ 1.058843] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 1.079177] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.200656] Freeing initrd memory: 20196k freed
[ 1.410441] isapnp: No Plug & Play device found
[ 1.449009] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.496372] Linux agpgart interface v0.103
[ 1.497305] brd: module loaded
[ 1.497738] loop: module loaded
[ 1.497813] ahci 0000:00:1f.2: version 3.0
[ 1.497822] ahci 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[ 1.497853] ahci 0000:00:1f.2: irq 41 for MSI/MSI-X
[ 1.497876] ahci: SSS flag set, parallel bus scan disabled
[ 1.512188] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x3f impl SATA mode
[ 1.512190] ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pmp pio slum part ems apst
[ 1.512193] ahci 0000:00:1f.2: setting latency timer to 64
[ 1.552337] scsi0 : ahci
[ 1.552386] scsi1 : ahci
[ 1.552430] scsi2 : ahci
[ 1.552471] scsi3 : ahci
[ 1.552513] scsi4 : ahci
[ 1.552554] scsi5 : ahci
[ 1.552641] ata1: SATA max UDMA/133 abar m2048@0xfbffc000 port 0xfbffc100 irq 41
[ 1.552643] ata2: SATA max UDMA/133 abar m2048@0xfbffc000 port 0xfbffc180 irq 41
[ 1.552645] ata3: SATA max UDMA/133 abar m2048@0xfbffc000 port 0xfbffc200 irq 41
[ 1.552646] ata4: SATA max UDMA/133 abar m2048@0xfbffc000 port 0xfbffc280 irq 41
[ 1.552648] ata5: SATA max UDMA/133 abar m2048@0xfbffc000 port 0xfbffc300 irq 41
[ 1.552650] ata6: SATA max UDMA/133 abar m2048@0xfbffc000 port 0xfbffc380 irq 41
[ 1.552865] Fixed MDIO Bus: probed
[ 1.552875] tun: Universal TUN/TAP device driver, 1.6
[ 1.552876] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 1.552904] PPP generic driver version 2.4.2
[ 1.552960] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.552970] ehci_hcd 0000:00:1a.0: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[ 1.552979] ehci_hcd 0000:00:1a.0: setting latency timer to 64
[ 1.552981] ehci_hcd 0000:00:1a.0: EHCI Host Controller
[ 1.553005] ehci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 1
[ 1.553023] ehci_hcd 0000:00:1a.0: debug port 2
[ 1.556890] ehci_hcd 0000:00:1a.0: cache line size of 4 is not supported
[ 1.556901] ehci_hcd 0000:00:1a.0: irq 18, io mem 0xfbffe000
[ 1.571991] ehci_hcd 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[ 1.572065] hub 1-0:1.0: USB hub found
[ 1.572067] hub 1-0:1.0: 2 ports detected
[ 1.572105] ehci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[ 1.572113] ehci_hcd 0000:00:1d.0: setting latency timer to 64
[ 1.572115] ehci_hcd 0000:00:1d.0: EHCI Host Controller
[ 1.572141] ehci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
[ 1.572157] ehci_hcd 0000:00:1d.0: debug port 2
[ 1.576032] ehci_hcd 0000:00:1d.0: cache line size of 4 is not supported
[ 1.576042] ehci_hcd 0000:00:1d.0: irq 23, io mem 0xfbffd000
[ 1.587946] ehci_hcd 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[ 1.588005] hub 2-0:1.0: USB hub found
[ 1.588007] hub 2-0:1.0: 2 ports detected
[ 1.588043] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.588049] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.588068] xhci_hcd 0000:03:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 1.588078] xhci_hcd 0000:03:00.0: setting latency timer to 64
[ 1.588081] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 1.588105] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 3
[ 1.588259] xhci_hcd 0000:03:00.0: irq 19, io mem 0xfbefe000
[ 1.588314] xhci_hcd 0000:03:00.0: irq 42 for MSI/MSI-X
[ 1.588317] xhci_hcd 0000:03:00.0: irq 43 for MSI/MSI-X
[ 1.588321] xhci_hcd 0000:03:00.0: irq 44 for MSI/MSI-X
[ 1.588325] xhci_hcd 0000:03:00.0: irq 45 for MSI/MSI-X
[ 1.588328] xhci_hcd 0000:03:00.0: irq 46 for MSI/MSI-X
[ 1.588332] xhci_hcd 0000:03:00.0: irq 47 for MSI/MSI-X
[ 1.588336] xhci_hcd 0000:03:00.0: irq 48 for MSI/MSI-X
[ 1.588339] xhci_hcd 0000:03:00.0: irq 49 for MSI/MSI-X
[ 1.588470] xHCI xhci_add_endpoint called for root hub
[ 1.588472] xHCI xhci_check_bandwidth called for root hub
[ 1.588486] hub 3-0:1.0: USB hub found
[ 1.588491] hub 3-0:1.0: 2 ports detected
[ 1.588524] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 1.588547] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 4
[ 1.591618] xHCI xhci_add_endpoint called for root hub
[ 1.591619] xHCI xhci_check_bandwidth called for root hub
[ 1.591632] hub 4-0:1.0: USB hub found
[ 1.591637] hub 4-0:1.0: 2 ports detected
[ 1.655767] usbcore: registered new interface driver libusual
[ 1.655795] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[ 1.655796] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[ 1.655931] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.655989] mousedev: PS/2 mouse device common for all mice
[ 1.656081] rtc_cmos 00:04: RTC can wake from S4
[ 1.656165] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
[ 1.656189] rtc0: alarms up to one month, 242 bytes nvram, hpet irqs
[ 1.656222] device-mapper: uevent: version 1.0.3
[ 1.656263] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[ 1.656280] EISA: Probing bus 0 at eisa.0
[ 1.656281] EISA: Cannot allocate resource for mainboard
[ 1.656282] Cannot allocate resource for EISA slot 1
[ 1.656283] Cannot allocate resource for EISA slot 2

..[ 1.656289] Cannot allocate resource for EISA slot 8
[ 1.656290] EISA: Detected 0 cards.
[ 1.656295] cpufreq-nforce2: No nForce2 chipset.
[ 1.656415] cpuidle: using governor ladder
[ 1.656611] cpuidle: using governor menu
[ 1.656612] EFI Variables Facility v0.08 2004-May-17
[ 1.656723] TCP cubic registered
[ 1.656792] NET: Registered protocol family 10
[ 1.657045] NET: Registered protocol family 17
[ 1.657048] Registering the dns_resolver key type
[ 1.657061] Using IPI No-Shortcut mode
[ 1.657132] PM: Hibernation image not present or could not be loaded.
[ 1.657139] registered taskstats version 1
[ 1.666111] Magic number: 5:389:767
[ 1.666212] rtc_cmos 00:04: setting system clock to 2013-03-10 04:47:12 UTC (1362890832)
[ 1.667599] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 1.667600] EDD information not available.......

[ 3.849313] r8168 Gigabit Ethernet driver 8.035.00-NAPI loaded
[ 3.849328] r8168 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 3.849353] r8168 0000:02:00.0: setting latency timer to 64
[ 3.849445] r8168 0000:02:00.0: irq 50 for MSI/MSI-X
[ 3.850466] eth%d: RTL8168B/8111B at 0xf8418000, f4:ec:38:80:cb:df, IRQ 50
[ 3.852448] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PRAMIN
[ 3.853085] input: HID 062a:0000 as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input3
[ 3.853309] generic-usb 0003:062A:0000.0001: input,hidraw0: USB HID v1.10 Mouse [HID 062a:0000] on usb-0000:00:1a.0-1.4/input0
[ 3.853325] usbcore: registered new interface driver usbhid
[ 3.853326] usbhid: USB HID core driver
[ 3.873763] r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
[ 3.873765] eth0: Identified chip type is 'RTL8168B/8111B'.
[ 3.873767] r8168 Copyright (C) 2012 Realtek NIC software team <nicfae@realtek.com>
[ 3.873767] This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>.
[ 3.873768] This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>.
[ 3.874451] FDC 0 is a post-1991 82077
[ 3.948542] [drm] nouveau 0000:01:00.0: ... appears to be valid
[ 3.948544] [drm] nouveau 0000:01:00.0: BIT BIOS found
...
] nouveau 0000:01:00.0: PMFB1_SUBP1: 0x037f0040
[ 2232.393509] r8168: eth0: link down
[ 2233.378111] r8168: eth0: link down
john@Computer-i7:~$

i92guboj 03-10-2013 06:23 AM

So your network card is detected, and it even gained an ip.

Can you ping some external server? Please, post the output for these:

Code:

$ ping -c 2 google.com
$ ping -c 2 8.8.8.8

If this works, you should already have internet access. If the first command fails but the second works, then you surely have a DNS resolution problem which we will address shortly.

By the way, I assume you are connecting to the internet via an ADSL modem or a router, right?


All times are GMT -5. The time now is 06:32 PM.