* Problems with wifi connection on one single network, can't ping gateway
@ 2015-07-04 11:47 白い熊@相撲道
2015-07-05 6:48 ` Mark H Weaver
0 siblings, 1 reply; 2+ messages in thread
From: 白い熊@相撲道 @ 2015-07-04 11:47 UTC (permalink / raw)
To: guix-devel
Hello everyone:
I have a peculiar problem that I can't figure out, I'm hoping someone
will lend me a hand.
I'm running GuixSD, latest git pull on the Gluglug X200. Using wifi via
commandline, wpa_supplicant, as I will demonstrate below. The usage is
problemless on all wifi networks, even on the road, however I have a
problem with my home wifi - which is a pain.
The problem is, it will connect, but then internet is inaccessible, I
can't ping my gateway address. Every other computer and phone connects
to the home wifi no prob. Also running Trisquel on the Gluglug, it will
connect to the wifi no prob vie NetworkManager. If however I disconnect
the NetworkManager in Trisquel and connect via wpa_supplicant using the
same script as in Guix, I'm also unable to ping the gateway.
So something is wrong, but I don't see the problem. I can connect to and
use any other network with wpa_supplicant, even connect to my phone's
mobile hotspot, just not the home wifi. Can anybody help me figure this
out?
So, in Guix SD, the working connection to my phone's hotspot:
=============================
shiroikuma@skggxtzz ~$ sudo /root/.guix-profile/sbin/wpa_supplicant -i
wlp2s0 -c /home/shiroikuma/wpa.conf.ShiroiKuma -B
Successfully initialized wpa_supplicant
shiroikuma@skggxtzz ~$ sudo /root/.guix-profile/sbin/dhclient wlp2s0
shiroikuma@skggxtzz ~$ ifconfig
enp0s25 Link encap:Ethernet HWaddr 00:1F:16:24:55:D3
UP 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 TX bytes:0
Interrupt:11 Memory:e1700000-e1720000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 TX bytes:0
wlp2s0 Link encap:Ethernet HWaddr 00:25:56:08:DF:9F
inet addr:192.168.43.133 Bcast:192.168.43.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1214 TX bytes:1772
shiroikuma@skggxtzz ~$ iwconfig
enp0s25 no wireless extensions.
wlp2s0 IEEE 802.11bgn ESSID:"\xE7\x99\xBD\xE3\x81\x84\xE7\x86\x8A"
Mode:Managed Frequency:2.437 GHz Access Point:
48:5A:3F:5F:DB:9E
Bit Rate=58.5 Mb/s Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=63/70 Signal level=-47 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:9 Missed beacon:0
lo no wireless extensions.
shiroikuma@skggxtzz ~$ cat /etc/resolv.conf
nameserver 192.168.43.1
shiroikuma@skggxtzz ~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 192.168.43.1 0.0.0.0 UG 0 0 0
wlp2s0
192.168.43.0 0.0.0.0 255.255.255.0 U 0 0 0
wlp2s0
shiroikuma@skggxtzz ~$ ping -c1 192.168.43.1
PING 192.168.43.1 (192.168.43.1): 56 data bytes
64 bytes from 192.168.43.1: icmp_seq=0 ttl=64 time=2.151 ms
--- 192.168.43.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.151/2.151/2.151/0.000 ms
shiroikuma@skggxtzz ~$ ping -c1 google.com
PING google.com (173.194.122.4): 56 data bytes
64 bytes from 173.194.122.4: icmp_seq=0 ttl=59 time=17.362 ms
--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 17.362/17.362/17.362/0.000 ms
==================================
All's good as it should.
Now the NON working home wifi connection:
==================================
shiroikuma@skggxtzz ~$ sudo /root/.guix-profile/sbin/wpa_supplicant -i
wlp2s0 -c /home/shiroikuma/wpa.conf.kmwfhk -B
Successfully initialized wpa_supplicant
shiroikuma@skggxtzz ~$ sudo /root/.guix-profile/sbin/dhclient wlp2s0
shiroikuma@skggxtzz ~$ ifconfig
enp0s25 Link encap:Ethernet HWaddr 00:1F:16:24:55:D3
UP 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 TX bytes:0
Interrupt:11 Memory:e1700000-e1720000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 TX bytes:0
wlp2s0 Link encap:Ethernet HWaddr 00:25:56:08:DF:9F
inet addr:192.168.1.133 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:978 TX bytes:1202
shiroikuma@skggxtzz ~$ iwconfig
enp0s25 no wireless extensions.
wlp2s0 IEEE 802.11bgn ESSID:"kmwfhk"
Mode:Managed Frequency:2.412 GHz Access Point:
10:BF:48:E4:52:B0
Bit Rate=13 Mb/s Tx-Power=14 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-37 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:6 Missed beacon:0
lo no wireless extensions.
shiroikuma@skggxtzz ~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
wlp2s0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
wlp2s0
shiroikuma@skggxtzz ~$ cat /etc/resolv.conf
nameserver 192.168.1.1
shiroikuma@skggxtzz ~$ ping 192.168.1.133 -c3
PING 192.168.1.133 (192.168.1.133): 56 data bytes
64 bytes from 192.168.1.133: icmp_seq=0 ttl=64 time=0.059 ms
64 bytes from 192.168.1.133: icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from 192.168.1.133: icmp_seq=2 ttl=64 time=0.050 ms
--- 192.168.1.133 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.050/0.058/0.065/0.000 ms
shiroikuma@skggxtzz ~$ ping 192.168.1.1 -c3
PING 192.168.1.1 (192.168.1.1): 56 data bytes
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
shiroikuma@skggxtzz ~$ sudo traceroute -m3 192.168.1.1
traceroute to 192.168.1.1 (192.168.1.1), 3 hops max
1 * * *
2 * * *
3 * * *
====================================
Now the working connection in Trisquel with auto connect by
NetworkManager:
====================================
shiroikuma@skggxtzz:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 9 0 0
wlan0
shiroikuma@skggxtzz:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1f:16:24:55:d3
UP 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:11 Memory:e1700000-e1720000
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:116 errors:0 dropped:0 overruns:0 frame:0
TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9810 (9.8 KB) TX bytes:9810 (9.8 KB)
wlan0 Link encap:Ethernet HWaddr 00:25:56:08:df:9f
inet addr:192.168.1.133 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::225:56ff:fe08:df9f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26183 errors:0 dropped:0 overruns:0 frame:0
TX packets:14327 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39071522 (39.0 MB) TX bytes:1364435 (1.3 MB)
shiroikuma@skggxtzz:~$ iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"kmwfhk"
Mode:Managed Frequency:2.412 GHz Access Point:
10:BF:48:E4:52:B0
Bit Rate=1 Mb/s Tx-Power=14 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=66/70 Signal level=-44 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:35 Missed beacon:0
shiroikuma@skggxtzz:~$ cat
^C
shiroikuma@skggxtzz:~$ cat /etc/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
nameserver 127.0.1.1
shiroikuma@skggxtzz:~$ ping -c3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.23 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.22 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.20 ms
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 1.200/1.221/1.239/0.016 ms
============================================
Now the NON working cli connect in Trisquel:
============================================
shiroikuma@skggxtzz ~$ sudo wpa_supplicant -i wlan0 -c
/home/shiroikuma/wpa.conf.kmwfhk -B
Successfully initialized wpa_supplicant
shiroikuma@skggxtzz ~$ sudo dhclient wlan0
shiroikuma@skggxtzz:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
wlan0
shiroikuma@skggxtzz:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1f:16:24:55:d3
UP 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:11 Memory:e1700000-e1720000
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:126 errors:0 dropped:0 overruns:0 frame:0
TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10653 (10.6 KB) TX bytes:10653 (10.6 KB)
wlan0 Link encap:Ethernet HWaddr 00:25:56:08:df:9f
inet addr:192.168.1.133 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::225:56ff:fe08:df9f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:72527 errors:0 dropped:17 overruns:0 frame:0
TX packets:38538 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:108366102 (108.3 MB) TX bytes:3506923 (3.5 MB)
shiroikuma@skggxtzz:~$ iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"kmwfhk"
Mode:Managed Frequency:2.412 GHz Access Point:
10:BF:48:E4:52:B0
Bit Rate=39 Mb/s Tx-Power=14 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=66/70 Signal level=-44 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:11 Missed beacon:0
shiroikuma@skggxtzz:~$ cat /etc/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
nameserver 192.168.1.1
shiroikuma@skggxtzz:~$ ping -c3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
============================================
Anyone have any ideas? Many thanks for helping me.
--
白い熊@相撲道
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problems with wifi connection on one single network, can't ping gateway
2015-07-04 11:47 Problems with wifi connection on one single network, can't ping gateway 白い熊@相撲道
@ 2015-07-05 6:48 ` Mark H Weaver
0 siblings, 0 replies; 2+ messages in thread
From: Mark H Weaver @ 2015-07-05 6:48 UTC (permalink / raw)
To: 白い熊@相撲道; +Cc: guix-devel
白い熊@相撲道 <guix-devel_gnu.org@sumou.com> writes:
> I'm running GuixSD, latest git pull on the Gluglug X200.
Excellent! I'm also running GuixSD on a Libreboot X200.
> Using wifi
> via commandline, wpa_supplicant, as I will demonstrate below. The
> usage is problemless on all wifi networks, even on the road, however I
> have a problem with my home wifi - which is a pain.
>
> The problem is, it will connect, but then internet is inaccessible, I
> can't ping my gateway address.
If you pass -d to wpa_supplicant, it will output debugging information.
You can also pass -dd for even more detail. You might also want to
remove the -B option so that it runs in the foreground when debugging.
You might consider using wicd, the wireless connection daemon, which
might include heuristics to deal with common problems, and anyway it is
quite convenient to use.
If you'd like to use wicd, make these changes to your OS config:
* Add (wicd-service) to 'services', and remove (dhcp-client-service).
* Add wicd to the list passed to 'dbus-service'.
* Add wicd to 'packages'.
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-05 6:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-04 11:47 Problems with wifi connection on one single network, can't ping gateway 白い熊@相撲道
2015-07-05 6:48 ` Mark H Weaver
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.