wireless connects to router but not internet

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

Tried this command:

Code: Select all

 sudo iw reg set US
> iw reg get
country US:
        (2402 - 2472 @ 40), (3, 27)
        (5170 - 5250 @ 40), (3, 17)
        (5250 - 5330 @ 40), (3, 20), DFS
        (5490 - 5600 @ 40), (3, 20), DFS
        (5650 - 5710 @ 40), (3, 20), DFS
        (5735 - 5835 @ 40), (3, 30)
        (57240 - 63720 @ 2160), (N/A, 40)
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

ok let's try to update the kernel (it's safe)

Code: Select all

sudo apt-get update

Code: Select all

sudo apt-get upgrade

Code: Select all

sudo apt-get dist-upgrade
also make sure your router is set to use 802.11bg not n.
Second change the encryption to just wpa2 (CCMP)(AES) not (TKIP) if you have that option it will work best.
Third set your wireless channel in the router to 1 or 11 then save the router configuration and reboot it.
Fourth go into network manager click on edit connections>wireless tab and set IPV6 to ignore. (this will be fixed with updates)

just checked on github and found an update.
https://github.com/FreedomBen/rtl8188ce-linux-driver
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

after installing and running that driver update, I got the following error:

Code: Select all

/home/brian/rtl8188ce-linux-driver/rtl8192ce/trx.c:403:3: error: implicit declaration of function ‘_ieee80211_is_robust_mgmt_frame’ [-Werror=implicit-function-declaration]
   if ( ( _ieee80211_is_robust_mgmt_frame( hdr ) ) &&
   ^
cc1: some warnings being treated as errors
make[3]: *** [/home/brian/rtl8188ce-linux-driver/rtl8192ce/trx.o] Error 1
make[2]: *** [_module_/home/brian/rtl8188ce-linux-driver/rtl8192ce] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/brian/rtl8188ce-linux-driver/rtl8192ce'
make: *** [all] Error 2

The build has failed! Please make sure you have all dependencies installed and you are building on the correct branch (kernel version, not linux distro version, is most important for the branch)

So, using the Readme in the repo I began following the manual installation instructions. Still a problem:

Code: Select all

git checkout ubuntu-14.04
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

uname -r says I've got 3.13.0-24-generic kernel, which corresponds to ubuntu 14.04, yes?



Trying to clone the correct repo works, but then installing it I get the same error as above, that the build has failed.
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

try this

Code: Select all

sudo ./verify_branch.sh
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

Code: Select all

 sudo ./verify_branch.sh
Verifying a sane branch for your kernel version...
Yes
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

strange it worked for me, it detected 3.15.11

did this give you any errors?

Code: Select all

apt-get install gcc build-essential linux-headers-generic linux-headers-`uname -r`
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

PatH57 wrote:strange it worked for me, it detected 3.15.11

did this give you any errors?

Code: Select all

apt-get install gcc build-essential linux-headers-generic linux-headers-`uname -r`
No errors on that. I can try again though.
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

I think it has to do with the way mint labels the kernel, I use stock kernel and don't see this kind of errors.
We can try kernel 3.15.9, you will still have the option to boot back to the old kernel (that's the thing I like most about linux) also the git fix is already in this kernel.

http://www.yourownlinux.com/2014/08/how ... linux.html
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

PatH57 wrote:strange it worked for me, it detected 3.15.11

did this give you any errors?

Code: Select all

apt-get install gcc build-essential linux-headers-generic linux-headers-`uname -r`

Code: Select all

 sudo apt-get install gcc build-essential linux-headers-generic linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
gcc is already the newest version.
linux-headers-3.13.0-24-generic is already the newest version.
linux-headers-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

go for the 3.15.9 kernel this fix is already in it (it won't harm anyway you can always boot to the old one)
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

well for a second the updated kernel seemed to work. But the connection is weak, and eventually failed. So, I could load amazon, but then it would hang. Or I could load gmail for a momement and then hang.

Seems to be progress.
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

ok then let's check again the wireless script and

Code: Select all

dmesg | grep -i wlan
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

Code: Select all

dmesg | grep -i wlan
[   17.696675] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   62.605094] wlan0: authenticate with 00:16:b6:15:3c:81
[   62.624895] wlan0: send auth to 00:16:b6:15:3c:81 (try 1/3)
[   62.626739] wlan0: authenticated
[   62.626949] rtl8192ce 0000:06:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[   62.626952] rtl8192ce 0000:06:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[   62.628645] wlan0: associate with 00:16:b6:15:3c:81 (try 1/3)
[   62.630828] wlan0: RX AssocResp from 00:16:b6:15:3c:81 (capab=0x411 status=0 aid=3)
[   62.630878] wlan0: associated
[   62.630886] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 2803.920832] wlan0: deauthenticating from 00:16:b6:15:3c:81 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 2807.186510] wlan0: authenticate with 00:16:b6:15:3c:81
[ 2807.206122] wlan0: send auth to 00:16:b6:15:3c:81 (try 1/3)
[ 2807.207819] wlan0: authenticated
[ 2807.208110] rtl8192ce 0000:06:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 2807.208127] rtl8192ce 0000:06:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 2807.209914] wlan0: associate with 00:16:b6:15:3c:81 (try 1/3)
[ 2807.213201] wlan0: RX AssocResp from 00:16:b6:15:3c:81 (capab=0x411 status=0 aid=3)
[ 2807.213264] wlan0: associated
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

Here's how to check to see if ipv6 is enabled on your computer

Code: Select all

test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"

If you see

Running kernel is IPv6 ready

it is enabled.

If you see no output, it is not.

To disable ipv6 , blacklist ipv6 all-together. To do this, use the following command:

Code: Select all

echo 'blacklist ipv6' | sudo tee -a '/etc/modprobe.d/blacklist.local' >/dev/null

Also, this might help as well:

Code: Select all

echo 'install ipv6 /bin/true' | sudo tee -a '/etc/modprobe.d/blacklist.local' >/dev/null


Reboot for the changes to take effect. To check if it's enabled after startup run this command again:

Code: Select all

test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"

There should be no output.
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

Upon reboot,

Code: Select all

test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"

Running kernel is IPv6 ready
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

sorry forgot on newer kernel it's included.


If your PC doesn't load /etc/sysctl.conf at boot time (which is the case for me), disabling IPv6 from grub is needed. Linux kernel has a boot option named "ipv6.disable=1" which disables IPv6 from startup.

To edit the boot options, edit "/etc/default/grub" with any text editor as root user:

Code: Select all

sudo gedit /etc/default/grub
Find the line that contain "GRUB_CMDLINE_LINUX_DEFAULT":

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add "ipv6.disable=1" to the boot option, then save your grub file:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"

Finally, update grub:

Code: Select all

sudo update-grub
reboot

Code: Select all

test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

Okay,

Code: Select all

test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"
produces no output. So I believe it IPv6 has been disabled.

What shall I do next?
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

Code: Select all

dmesg | grep -i wlan
User avatar
briholt
Level 4
Level 4
Posts: 289
Joined: Fri Jul 05, 2013 1:38 pm
Location: Seattle

Re: wireless connects to router but not internet

Post by briholt »

Code: Select all

dmesg | grep -i wlan
[  130.814543] wlan0: authenticate with 00:16:b6:15:3c:81
[  130.834190] wlan0: send auth to 00:16:b6:15:3c:81 (try 1/3)
[  130.836312] wlan0: authenticated
[  130.836572] rtl8192ce 0000:06:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[  130.836577] rtl8192ce 0000:06:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[  130.837873] wlan0: associate with 00:16:b6:15:3c:81 (try 1/3)
[  130.840191] wlan0: RX AssocResp from 00:16:b6:15:3c:81 (capab=0x411 status=0 aid=3)
[  130.840255] wlan0: associated
PatH57

Re: wireless connects to router but not internet

Post by PatH57 »

and

Code: Select all

iwconfig
Locked

Return to “Networking”