NetworkManager and mobile connection with CDC Ethernet

Connecting my mobile via USB to SuSe 11.1 system I get:

Jan  3 19:11:53 asterix kernel: usb 2-2: Product: Sony Ericsson K530
Jan  3 19:11:53 asterix kernel: usb 2-2: Manufacturer: Sony Ericsson
Jan  3 19:11:53 asterix kernel: usb 2-2: SerialNumber: 3578040110895250
Jan  3 19:11:53 asterix kernel: cdc_acm 2-2:3.1: ttyACM0: USB ACM device
Jan  3 19:11:53 asterix kernel: cdc_acm 2-2:3.3: ttyACM1: USB ACM device
Jan  3 19:11:53 asterix kernel: usbcore: registered new interface driver cdc_acm
Jan  3 19:11:53 asterix kernel: cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Jan  3 19:11:53 asterix kernel: cdc_wdm 2-2:3.7: cdc-wdm0: USB WDM device
Jan  3 19:11:53 asterix kernel: usbcore: registered new interface driver cdc_wdm
Jan  3 19:11:53 asterix kernel: usb0: register 'cdc_ether' at usb-0000:00:1d.1-2, CDC Ethernet Device, 02:80:37:0a:03:00
Jan  3 19:11:53 asterix kernel: usbcore: registered new interface driver cdc_ether
Jan  3 19:11:54 asterix ifup: Network interface is managed from NetworkManager
Jan  3 19:11:54 asterix ifup: NetworkManager will be advised to set up usb0
Jan  3 19:11:54 asterix ifup: but it cannot be assured from here.
Jan  3 19:11:59 asterix avahi-daemon[2762]: Registering new address record for fe80::80:37ff:fe0a:300 on usb0.*.
Jan  3 19:12:08 asterix kernel: usb0: no IPv6 routers present

NetworkManager then has an entry “usb0 No carrier”. I then select “New connection -> usb0” and do “Save & Connect”. Then nothing happens, mobile doesn’t connect to internet.

Any idea what’s missing to make NetworkManager to connect to internet via mobile?

Some additional info to above kernel messages.

If I do “Save & Connect” for USB0 at NetworkManager, /var/log/NetworkManager reports:

– cut –
NetworkManager: <WARN>
connection_added_default_handler(): Connection (2)
/org/freedesktop/NetworkManagerSettings/Connection/2 failed to
activate: (2) Device not managed by NetworkManager
– cut –

This is quite strange, as at connecting mobile to USB in parallel to above kernel messages NetworkManager reports

– cut –
NetworkManager: <info> usb0: driver is ‘cdc_ether’.
NetworkManager: <info> Found new Ethernet device ‘usb0’.
NetworkManager: <info> (usb0): exported as /org/freedesktop/Hal/devices/net_02_80_37_0a_03_00
NetworkManager: <info> /dev/ttyACM0: driver is ‘cdc_ether’.
NetworkManager: <info> Found new GSM modem device ‘/dev/ttyACM0’.
NetworkManager: <info> (/dev/ttyACM0): exported as /org/freedesktop/Hal/device/usb_device_fce_d079_3578040110895250_if1_serial_unknown_0
NetworkManager: <info> (usb0): device state change: 1 → 2
NetworkManager: <info> (usb0): bringing up device.
NetworkManager: <info> (usb0): preparing device.
NetworkManager: <info> (usb0): deactivating device (reason: 2).
NetworkManager: <debug> [1231082232.194815]
run_netconfig(): Spawning ‘/sbin/netconfig modify --service NetworkManager’
NetworkManager: <debug> [1231082232.197477] write_to_netconfig(): Writing to netconfig: INTERFACE=‘eth1’
NetworkManager: <debug> [1231082232.197552] write_to_netconfig(): Writing to netconfig: DNSSERVERS=‘192.168.2.1’
NetworkManager: <info> Clearing nscd hosts cache.
NetworkManager: <info> Policy set’WLAN-001F3F12FA7D’ (eth1) as default for routing and DNS.
NetworkManager: <info> (usb0): carrier now ON (device state 2)
NetworkManager: <info> (usb0): device state change: 2 → 3
NetworkManager: <info> (usb0): carrier now OFF (device state 3)
NetworkManager: <info> (usb0): device state change: 3 → 2
NetworkManager: <info> (usb0): deactivating device (reason: 40).
NetworkManager: <debug> [1231082232.219188] run_netconfig(): Spawning ‘/sbin/netconfig modify --service NetworkManager’
NetworkManager: <debug> [1231082232.225981] write_to_netconfig(): Writing to netconfig: INTERFACE=‘eth1’
NetworkManager: <debug> [1231082232.226067] write_to_netconfig(): Writing to netconfig: DNSSERVERS=‘192.168.2.1’
NetworkManager: <info> Clearing nscd hosts cache.
NetworkManager: <info> Policy set ‘WLAN-001F3F12FA7D’ (eth1) as default for routing and DNS.
NetworkManager: <WARN> auto_activate_device(): Connection ‘System eth0’ auto-activation failed: (2) Device not managed by NetworkManager
NetworkManager: <info> (/dev/ttyACM0): device state change: 1 → 2
NetworkManager: <info> (/dev/ttyACM0): deactivating device (reason: 2).
NetworkManager: <debug> [1231082232.383326] run_netconfig(): Spawning ‘/sbin/netconfig modify --service NetworkManager’
NetworkManager: <debug> [1231082232.389284] write_to_netconfig(): Writing to netconfig: INTERFACE=‘eth1’
NetworkManager: <debug> [1231082232.389368] write_to_netconfig(): Writing to netconfig: DNSSERVERS=‘192.168.2.1’
NetworkManager: <info> Clearing nscd hosts cache.
NetworkManager: <info> Policy set ‘WLAN-001F3F12FA7D’ (eth1) as default for routing and DNS.
NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion iface_idx >= 0' failed NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion iface_idx >= 0’ failed
NetworkManager: <info> (/dev/ttyACM0): device state change: 2 → 3
– cut –

And there is an USB0, too:

ifconfig usb0:

– cut –
usb0 Link encap:Ethernet Hardware Adresse 02:80:37:0A:03:00
inet6 Adresse: fe80::80:37ff:fe0a:300/64
Gültigkeitsbereich:Verbindung
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 b) TX bytes:90 (90.0 b)
– cut –

Any idea what might be wrong here? Or maybe how to connect to internet using this mobile?

Solution for the archives:

You have to enable “cdc_ethernet” over USB at mobile.

For Sony Ericsson e.g via

Configuration -> Connections -> USB -> USB-Internet -> Enable

Error message

NetworkManager: <WARN>
connection_added_default_handler(): Connection (2)
/org/freedesktop/NetworkManagerSettings/Connection/2 failed to
activate: (2) Device not managed by NetworkManager

is quite misleading and does mean NetworkManager is not allowed to access Internet via usb0 cause it isn’t enabled in mobile.