fedora 15 and usb tethering on iphone anyone?

Gianluca Cecchi gianluca.cecchi at gmail.com
Thu Jun 9 07:18:51 UTC 2011


Hello,
in my fedora 14 I was able to do usb tethering with fw 4.2.1 on my iphone 3gs.
NetworkManager was apparently not able to manage this kind of
connection so I had to:
- connect iphone via usb
- enable usb tethering on iphone menu
- automatically the ipheth kernel module was loaded and an interface
wwan0 created
- ifconfig wwan0 up
- dhclient wwan0
and I got an ip from the iphone, being able to go to internet this way.

Now I'm testing on the same PC with Fedora 15 and iphone updated to 4.3.3 fw
What it was usb tethering is now called personal hot spot on iphone menu.
For 3gs it remains bluetooth and usb tethering (the hot spot word by
apple is misleading in this case), while for iphone 4 devices there is
also a wifi option that makes it actually a hot spot.

In Fedora15 it seems Network Manager can manage this kind of
connection. Or at least it tries to manage the device...
My onboard nic is seen as em1.
When I connect the iphone and enable personal hotspot I have the
interface eth0 that appears.
I have configured a dhcp profile and attempt to bind it to my eth0
connection but it seems it doesn't get any ip and then it switches to
a static profile
(this latest one in my opinion is a bug... it simply shouldn't switch
to another profile but keep the interface as not connected)

Anyone using this combination successfully?
Anyone still in 4.2.1 and Fedora15 getting success? Just to analyze
what could be the root cause...

Components:
libimobiledevice-1.1.1-1.fc15.x86_64
kernel: 2.6.38.6-27.fc15.x86_64

# modinfo ipheth
filename:
/lib/modules/2.6.38.6-27.fc15.x86_64/kernel/drivers/net/usb/ipheth.ko
license:        Dual BSD/GPL
description:    Apple iPhone USB Ethernet driver
author:         Diego Giagio <diego at giagio.com>
srcversion:     AEED3A15974349A290F3AD7
alias:          usb:v05ACp1297d*dc*dsc*dp*icFFiscFDip01*
alias:          usb:v05ACp1294d*dc*dsc*dp*icFFiscFDip01*
alias:          usb:v05ACp1292d*dc*dsc*dp*icFFiscFDip01*
alias:          usb:v05ACp1290d*dc*dsc*dp*icFFiscFDip01*
depends:
vermagic:       2.6.38.6-27.fc15.x86_64 SMP mod_unload

from logs:
when connecting iphone
Jun  9 08:46:59   kernel: [ 3113.794083] usb 2-1: new high speed USB
device using ehci_hcd and address 6
Jun  9 08:46:59   kernel: [ 3113.913926] usb 2-1: New USB device
found, idVendor=05ac, idProduct=1294
Jun  9 08:46:59   kernel: [ 3113.913936] usb 2-1: New USB device
strings: Mfr=1, Product=2, SerialNumber=3
Jun  9 08:46:59   kernel: [ 3113.913943] usb 2-1: Product: iPhone
Jun  9 08:46:59   kernel: [ 3113.913949] usb 2-1: Manufacturer: Apple Inc.
..
Jun  9 08:46:59   kernel: [ 3114.233486] ipheth 2-1:4.2: Apple iPhone
USB Ethernet device attached
Jun  9 08:47:00   NetworkManager[860]: <error> [1307602020.138783]
[nm-device-ethernet.c:753] real_update_permanent_hw_addre
ss(): (eth0): unable to read permanent MAC address (error 0)
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): carrier is OFF
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): new Ethernet
device (driver: 'ipheth' ifindex: 8)
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): exported as
/org/freedesktop/NetworkManager/Devices/3
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): now managed
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): device state
change: unmanaged -> unavailable (reason 'managed') [10 2
0 2]
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): bringing up device.
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): preparing device.
Jun  9 08:47:00   NetworkManager[860]: <info> (eth0): deactivating
device (reason: 2).
...
trying to bind to dhcp:
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0)
starting connection 'dhcp'
Jun  9 08:48:33   NetworkManager[860]: <info> (eth0): device state
change: disconnected -> prepare (reason 'none') [30 40 0]
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
1 of 5 (Device Prepare) scheduled...
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
1 of 5 (Device Prepare) started...
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
2 of 5 (Device Configure) scheduled...
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
1 of 5 (Device Prepare) complete.
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
2 of 5 (Device Configure) starting...
Jun  9 08:48:33   NetworkManager[860]: <info> (eth0): device state
change: prepare -> config (reason 'none') [40 50 0]
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
2 of 5 (Device Configure) successful.
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
3 of 5 (IP Configure Start) scheduled.
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
2 of 5 (Device Configure) complete.
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
3 of 5 (IP Configure Start) started...
Jun  9 08:48:33   NetworkManager[860]: <info> (eth0): device state
change: config -> ip-config (reason 'none') [50 70 0]
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0)
Beginning DHCPv4 transaction (timeout in 45 seconds)
Jun  9 08:48:33   dbus: [system] Activating service
name='org.freedesktop.nm_dispatcher' (using servicehelper)
Jun  9 08:48:33   NetworkManager[860]: <info> dhclient started with pid 8279
Jun  9 08:48:33   NetworkManager[860]: <info> Activation (eth0) Stage
3 of 5 (IP Configure Start) complete.
Jun  9 08:48:33   dhclient[8279]: Internet Systems Consortium DHCP
Client 4.2.1-P1
Jun  9 08:48:33   dhclient[8279]: Copyright 2004-2011 Internet Systems
Consortium.
Jun  9 08:48:33   dhclient[8279]: All rights reserved.
Jun  9 08:48:33   dhclient[8279]: For info, please visit
https://www.isc.org/software/dhcp/
Jun  9 08:48:33   dhclient[8279]:
Jun  9 08:48:33   dbus: [system] Successfully activated service
'org.freedesktop.nm_dispatcher'
Jun  9 08:48:33   NetworkManager[860]: <info> (eth0): DHCPv4 state
changed nbi -> preinit
Jun  9 08:48:33   dhclient[8279]: Listening on LPF/eth0/06:1e:64:2e:1a:7f
Jun  9 08:48:33   dhclient[8279]: Sending on   LPF/eth0/06:1e:64:2e:1a:7f
Jun  9 08:48:33   dhclient[8279]: Sending on   Socket/fallback
Jun  9 08:48:33   dhclient[8279]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 6
Jun  9 08:48:33   systemd[1]: sendmail.service: control process
exited, code=exited status=7
Jun  9 08:48:39   dhclient[8279]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 14
Jun  9 08:48:53   dhclient[8279]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 7
Jun  9 08:49:00   dhclient[8279]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 15
Jun  9 08:49:15   dhclient[8279]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 9
Jun  9 08:49:18   NetworkManager[860]: <warn> (eth0): DHCPv4 request timed out.
Jun  9 08:49:18   NetworkManager[860]: <info> (eth0): canceled DHCP
transaction, DHCP client pid 8279
Jun  9 08:49:18   NetworkManager[860]: <info> Activation (eth0) Stage
4 of 5 (IP4 Configure Timeout) scheduled...
Jun  9 08:49:18   NetworkManager[860]: <info> Activation (eth0) Stage
4 of 5 (IP4 Configure Timeout) started...
Jun  9 08:49:18   NetworkManager[860]: <info> (eth0): device state
change: ip-config -> failed (reason 'ip-config-unavailable') [70 120
5]
Jun  9 08:49:18   NetworkManager[860]: <info> Marking connection 'dhcp' invalid.
Jun  9 08:49:18   NetworkManager[860]: <warn> Activation (eth0) failed.
Jun  9 08:49:18   NetworkManager[860]: <info> Activation (eth0) Stage
4 of 5 (IP4 Configure Timeout) complete.
Jun  9 08:49:18   NetworkManager[860]: <info> (eth0): device state
change: failed -> disconnected (reason 'none') [120 30 0]
Jun  9 08:49:18   NetworkManager[860]: <info> (eth0): deactivating
device (reason: 0).
Jun  9 08:49:18   NetworkManager[860]: <info> Policy set 'Static'
(em1) as default for IPv4 routing and DNS. <-- here it switches to
"Static" connection...
Jun  9 08:49:18   NetworkManager[860]: <info> Policy set 'Static'
(em1) as default for IPv4 routing and DNS.
Jun  9 08:49:21   NetworkManager[860]: <info> Activation (eth0)
starting connection 'Static'

Thanks in advance,
Gianluca


More information about the users mailing list