Setup MC7455 connection to internet with modem manager
Aleksander Morgado
aleksander at aleksander.es
Mon Jun 12 11:39:04 UTC 2017
Hey,
>
> I'm trying to setup an internet connection for a box with a MC7455 on ubuntu
> 17.04. I'm a newbie on this so some help would be nice
>
> ~$ sudo mmcli -b 0
> Bearer '/org/freedesktop/ModemManager1/Bearer/0'
> -------------------------
> Status | connected: 'yes'
> | suspended: 'no'
> | interface: 'wwp0s20f0u6i8'
> | IP timeout: '20'
> -------------------------
> Properties | apn: 'mmsbouygtel.com'
> | roaming: 'allowed'
> | IP type: 'none'
> | user: 'none'
> | password: 'none'
> | number: 'none'
> | Rm protocol: 'unknown'
> -------------------------
> IPv4 configuration | method: 'static'
> | address: '10.212.108.250'
> | prefix: '30'
> | gateway: '10.212.108.249'
> | DNS: '62.201.129.99', '62.201.159.99'
> | MTU: '1500'
> -------------------------
> IPv6 configuration | method: 'unknown'
> -------------------------
> Stats | Duration: '329'
> | Bytes received: 'N/A'
> | Bytes transmitted: 'N/A'
>
All the previous info is OK.
> but my interface isn't up
>
> ~$ ifconfig
> enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet netmask 255.255.255.0 broadcast
> inet6 prefixlen 64 scopeid 0x20<link>
> ether txqueuelen 1000 (Ethernet)
> RX packets 1454 bytes 138198 (138.1 KB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 231 bytes 32199 (32.1 KB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
> device interrupt 16 memory 0xdf300000-df320000
>
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
> inet 127.0.0.1 netmask 255.0.0.0
> inet6 ::1 prefixlen 128 scopeid 0x10<host>
> loop txqueuelen 1000 (Boucle locale)
> RX packets 700 bytes 52204 (52.2 KB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 700 bytes 52204 (52.2 KB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
Are you manually triggering the connection attempt with mmcli? Or are
you using e.g. NetworkManager through the applet? ModemManager does
*not* configure the network interface; it just tells the upper layers
what configuration is required (static IP addressing on the WWAN in
your case).
> and when I bring it up
>
> ~$ sudo ifconfig wwp0s20f0u6i8 up
>
> I don't have any ip address
>
> wwp0s20f0u6i8: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
> inet6 fe80::ef2d:ce86:2e80:bfa4 prefixlen 64 scopeid 0x20<link>
> unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000
> (UNSPEC)
> RX packets 0 bytes 0 (0.0 B)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 12 bytes 576 (576.0 B)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> I tried dhclient
>
> sudo dhclient wwp0s20f0u6i8 -v
>
> But it returns an error
>
> Internet Systems Consortium DHCP Client 4.3.5
> Copyright 2004-2016 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
>
> Unsupported device type 65534 for "wwp0s20f0u6i8"
>
> If you think you have received this message due to a bug rather
> than a configuration issue please read the section on submitting
> bugs on either our web page at www.isc.org or in the README file
> before submitting a bug. These pages explain the proper
> process and the information we find helpful for debugging..
>
> exiting.
>
Yes, dhclient doesn't know how to configure the raw-ip interface in
the MC7455, so that is why ModemManager requests static IP addressing.
Try to launch the connection through NetworkManager, not through
ModemManager directly, as NM knows how to setup the WWAN interface
once ModemManager says it's connected. If you still have issues with
the NM+MM combo, follow these steps to gather NM and MM debug logs and
send back an example run so that we can see what's happening:
https://www.freedesktop.org/wiki/Software/ModemManager/Debugging/
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list