So… running openSUSE 12.3 x64 on a Lenovo ThinkPad T530, dual boot with Win 7 Pro.
At home, I can connect via ethernet or WiFi to my LAN with no problems. If I go out and about to some place that has a wifi hotspot, again, no problems seeing or connecting to the access point - in Win 7 or Linux (any flavor).
The problems start when I’m trying to connect via the wifi hotspot on my iPhone 4 in openSUSE. No problems in Win7, or previously in Ubuntu (sorry), but in 12.3 / KDE most of the time I can’t even ‘see’ the hotspot and have to set it up as a ‘hidden’ network. Sometimes that works… and sometimes it’ll show ‘connected’ and say it has an IP address, but there is no functional connectivity.
I don’t think the problem is the iPhone, really. I can connect to it as a hotspot just fine in Win7, other linux distros, and even with my Kindle. If I connect the phone to the laptop using a USB cable, it then sees it as a wired connection and works okay. Can’t seem to connect to it via Bluetooth either, but thats a separate issue
Any ideas as to why this is being such a PITA? Anyone else having more luck?
TIA,
Monte
On 08/10/2013 12:46 PM, memilanuk wrote:
>
> So… running openSUSE 12.3 x64 on a Lenovo ThinkPad T530, dual boot
> with Win 7 Pro.
>
> At home, I can connect via ethernet or WiFi to my LAN with no problems.
> If I go out and about to some place that has a wifi hotspot, again, no
> problems seeing or connecting to the access point - in Win 7 or Linux
> (any flavor).
>
> The problems start when I’m trying to connect via the wifi hotspot on
> my iPhone 4 in openSUSE. No problems in Win7, or previously in Ubuntu
> (sorry), but in 12.3 / KDE most of the time I can’t even ‘see’ the
> hotspot and have to set it up as a ‘hidden’ network. Sometimes that
> works… and sometimes it’ll show ‘connected’ and say it has an IP
> address, but there is no functional connectivity.
>
> I don’t think the problem is the iPhone, really. I can connect to it
> as a hotspot just fine in Win7, other linux distros, and even with my
> Kindle. If I connect the phone to the laptop using a USB cable, it then
> sees it as a wired connection and works okay. Can’t seem to connect to
> it via Bluetooth either, but thats a separate issue
>
> Any ideas as to why this is being such a PITA? Anyone else having more
> luck?
When openSUSE cannot “see” the iPhone hotspot, what is the output of the
following command?
sudo /usr/sbin/iwlist scan
/code/
When you get an IP but have no connectivity, please post the output of the
following commands:
/sbin/route -n
/usr/sbin/iwconfig
/sbin/ifconfig
machin-shin:/home/monte # /usr/bin/iwlist scan
bash: /usr/bin/iwlist: No such file or directory
machin-shin:/home/monte # /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.20.10.1 0.0.0.0 UG 0 0 0 wlan0
172.20.10.0 0.0.0.0 255.255.255.240 U 0 0 0 wlan0
machin-shin:/home/monte # /usr/sbin/iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:"Monte's iPhone"
Mode:Managed Frequency:2.412 GHz Access Point: 26:AB:81:C9:D6:8F
Bit Rate=54 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=68/70 Signal level=-42 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:36 Missed beacon:0
machin-shin:/home/monte # /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 3C:97:0E:16:9C:26
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:20 Memory:f3a00000-f3a20000
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:13750 errors:0 dropped:0 overruns:0 frame:0
TX packets:13750 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2166978 (2.0 Mb) TX bytes:2166978 (2.0 Mb)
wlan0 Link encap:Ethernet HWaddr 8C:70:5A:F0:3D:7C
inet addr:172.20.10.4 Bcast:172.20.10.15 Mask:255.255.255.240
inet6 addr: fe80::8e70:5aff:fef0:3d7c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1511 errors:0 dropped:0 overruns:0 frame:0
TX packets:1100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1040011 (1015.6 Kb) TX bytes:213172 (208.1 Kb)
machin-shin:/home/monte #
FWIW, right now the iPhone is showing two connections… probably one wifi and one via USB cable. The laptop (openSUSE) shows the same. I unplugged the cable to get just the wifi info above.
Thanks,
Monte
I have used my iPhone to serve as a hotspot in the past without issue, but I think if you have the USB cable connected simultaneously, you end up with a wired ethernet connection which will take precedence over the wireless connectivity (assuming NM is controlling your network interfaces).
The usb cable only gets used when I can’t connect via wifi…
I sometimes found that the iPhone SSID broadcast was a little laggy, but as soon as
/usr/sbin/iwlist wlan0 scan
was run, I would see the iPhone’s AP SSID present in the NM connections list, and could proceed with connecting.
Occasionally, I found that I’d have to turn the hotspot off and on to refresh it before trying to connect - a quirk of the iPhone, (or maybe the service provider I’m with).
On 08/10/2013 01:56 PM, memilanuk wrote:
>
> Code:
> --------------------
> machin-shin:/home/monte # /usr/bin/iwlist scan
My post clearly said “sudo /usr/sbin/iwlist scan”.
> bash: /usr/bin/iwlist: No such file or directory
> machin-shin:/home/monte # /sbin/route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 0.0.0.0 172.20.10.1 0.0.0.0 UG 0 0 0 wlan0
> 172.20.10.0 0.0.0.0 255.255.255.240 U 0 0 0 wlan0
>
>
> machin-shin:/home/monte # /usr/sbin/iwconfig
> eth0 no wireless extensions.
>
> lo no wireless extensions.
>
> wlan0 IEEE 802.11abgn ESSID:“Monte’s iPhone”
> Mode:Managed Frequency:2.412 GHz Access Point: 26:AB:81:C9:D6:8F
> Bit Rate=54 Mb/s Tx-Power=15 dBm
> Retry long limit:7 RTS thr:off Fragment thr:off
> Encryption key:off
> Power Management:off
> Link Quality=68/70 Signal level=-42 dBm
> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
> Tx excessive retries:1 Invalid misc:36 Missed beacon:0
>
>
>
> machin-shin:/home/monte # /sbin/ifconfig
> eth0 Link encap:Ethernet HWaddr 3C:97:0E:16:9C:26
> 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:20 Memory:f3a00000-f3a20000
>
> 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:13750 errors:0 dropped:0 overruns:0 frame:0
> TX packets:13750 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:2166978 (2.0 Mb) TX bytes:2166978 (2.0 Mb)
>
> wlan0 Link encap:Ethernet HWaddr 8C:70:5A:F0:3D:7C
> inet addr:172.20.10.4 Bcast:172.20.10.15 Mask:255.255.255.240
> inet6 addr: fe80::8e70:5aff:fef0:3d7c/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1511 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1100 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1040011 (1015.6 Kb) TX bytes:213172 (208.1 Kb)
All this looks normal and indicates that the connection is fine. The only thing
we did not check is name resolution. Try the following:
ping -c5 172.20.10.1
ping -c5 8.8.8.8
ping -c5 www.samba.org
I had a similar issue today:
- home WiFi worked for days (fresh openSUSE Leap 42.1 install)
- hotel WiFi worked
- iPhone WiFi hotspot was visible but couldn’t connect (double-check password etc.)
At least in my case it turned out that the name was the issue. Once I renamed my iPhone (and thereby the name of the hotspot) from “Sven’s iPhone” to “TyrellCorp” it worked. So I have to assume that this was the issue.