On Thu, 2016-09-22 at 12:55 +0200, Harald Jung - ECOS Technology wrote:
> Hi,
> 
>  
> how can i tell Networkmanager to setup the IP Parameters with dhcp?
> I had a problem like this with another huawei device.

We somehow get ModemManager to report the bearer IP method as "DHCP"
instead of static.  MM defaults to DHCP for the Huawei bearer, but if
^DHCP returns usable information MM will respect that information and
change the method to STATIC.

But if we're talking about MBIM, that's *always* static addressing
using IP information reported from the MBIM spec calls to the device.

Dan

>  
> Harald
> 
>  
> 
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Harald Jung - ECOS Technology <harald.j...@ecos.de>
> Gesendet: Mit 21 September 2016 15:12
> An: Bjørn Mork <bj...@mork.no>
> CC: Dan Williams <d...@redhat.com>; ModemManager (development) <modem
> manager-de...@lists.freedesktop.org>
> Betreff: AW: 03f0:521d Hewlett-Packard again
> 
>  
> 
> I've put this entry in the usb_device_id mbim_devs struct:
> 
> 
> 
>  { USB_VENDOR_AND_INTERFACE_INFO(0x03f0, USB_CLASS_COMM,
> USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE),
>  .driver_info = (unsigned long)&cdc_mbim_info,
>  },
> 
> 
> 
> now the mbim driver binds to the interface and it gets a data
> connection including the IP configuration. 
> 
> 
> 
> But I can't establish any connection to the internet. I can't even
> resolve a host against the DNS I've got by Networkmanager. 
> I see only tx packets but no rx packets. 
> 
> 
> 
> 
> 
> Sep 21 15:00:20 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> device state change: unavailable -> disconnected (reason 'none') [20
> 30 0]
> Sep 21 15:00:21 ThinClient ModemManager[7986]: <info> Modem
> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> changed (unknown -> registering) 
> Sep 21 15:00:21 ThinClient ModemManager[7986]: <info> Modem
> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> changed (registering -> home) 
> Sep 21 15:00:21 ThinClient ModemManager[7986]: <info> Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (enabling ->
> registered) 
> Sep 21 15:00:21 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> modem state changed, 'enabling' --> 'registered' (reason: user-
> requested) 
> Sep 21 15:00:33 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> Activation: starting connection 'T-Mobile(Telekom) Vorgabe'
> (d0ccfb13-fc0a-4fa2-8b75-40ea2deeb114)
> Sep 21 15:00:33 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> device state change: disconnected -> prepare (reason 'none') [30 40
> 0]
> Sep 21 15:00:33 ThinClient ModemManager[7986]: <info> Simple connect
> started... 
> Sep 21 15:00:33 ThinClient ModemManager[7986]: <info> Simple connect
> state (4/8): Wait to get fully enabled 
> Sep 21 15:00:33 ThinClient ModemManager[7986]: <info> Simple connect
> state (5/8): Register 
> Sep 21 15:00:33 ThinClient ModemManager[7986]: <info> Simple connect
> state (6/8): Bearer 
> Sep 21 15:00:33 ThinClient ModemManager[7986]: <info> Simple connect
> state (7/8): Connect 
> Sep 21 15:00:33 ThinClient ModemManager[7986]: <info> Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (registered ->
> connecting) 
> Sep 21 15:00:33 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> modem state changed, 'registered' --> 'connecting' (reason: user-
> requested) 
> Sep 21 15:00:35 ThinClient ModemManager[7986]: <info> Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (connecting ->
> connected) 
> Sep 21 15:00:35 ThinClient ModemManager[7986]: <info> Simple connect
> state (8/8): All done 
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> modem state changed, 'connecting' --> 'connected' (reason: user-
> requested) 
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> device state change: prepare -> config (reason 'none') [40 50 0]
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> device state change: config -> ip-config (reason 'none') [50 70 0]
> Sep 21 15:00:35 ThinClient kernel: mbim:rx fixup
> Sep 21 15:00:35 ThinClient kernel: 8021q: adding VLAN 0 to HW filter
> on device wwan0
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> IPv4 static configuration:
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> address
> 37.80.216.78/30
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> gateway
> 37.80.216.77
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> DNS
> 10.74.210.210
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> DNS
> 10.74.210.211
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <error>
> [1474462835.279208] [/usr/bbsrc/bbbuild/dev-cdb3/std/portage/net-
> misc/networkmanager-1.0.10-r1/work/NetworkManager-
> 1.0.10/src/devices/nm-device.c:4
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> device state change: ip-config -> ip-check (reason 'none') [70 80 0]
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> device state change: ip-check -> secondaries (reason 'none') [80 90
> 0]
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> device state change: secondaries -> activated (reason 'none') [90 100
> 0]
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> Writing DNS
> information to /sbin/resolvconf
> Sep 21 15:00:35 ThinClient NetworkManager[2386]: <info> (cdc-wdm0):
> Activation: successful, device activated.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Harald
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> ModemManager-devel mailing list
> 
> ModemManager-devel@lists.freedesktop.org
> 
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
> 
> 
> 
_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to