How do I establish and IP connection to the WWAN of a Sierra Wireless MC7354?
I have a system with a Sierra Wireless MC7354 modem running Ubuntu 18.04.
ModemManager can see and control the modem.
$ mmcli --modem 0
returns lots of great information. (That's how I know the modem is an MC7354.)
/org/freedesktop/ModemManager1/Modem/0 (device id '232972a04adf83122a392fd83b274431de596ebd')
-------------------------
Hardware | manufacturer: 'Sierra Wireless, Incorporated'
| model: 'MC7354'
|
The ports list shows several ports:
ports: 'ttyUSB0 (qcdm), wwp0s20u5i8 (net), wwp0s20u5i10 (net), cdc-wdm0 (qmi), cdc-wdm1 (qmi), ttyUSB2 (at)'
$ mmcli --modem 0 --simple-connect="apn=internet"
is successful
$ mmcli --bearer 0
Bearer '/org/freedesktop/ModemManager1/Bearer/0'
-------------------------
Status | connected: 'yes'
| suspended: 'no'
| interface: 'wwp0s20u5i8'
| IP timeout: '20'
-------------------------
Properties | apn: 'internet'
| roaming: 'allowed'
| IP type: 'none'
| user: 'none'
| password: 'none'
| number: 'none'
| Rm protocol: 'unknown'
-------------------------
IPv4 configuration | method: 'static'
| address: '100.232.81.142'
| prefix: '30'
| gateway: '100.232.81.141'
| DNS: '10.177.0.34', '10.177.0.210'
| MTU: '1430'
-------------------------
IPv6 configuration | method: 'unknown'
-------------------------
Stats | Duration: '839'
| Bytes received: 'N/A'
| Bytes transmitted: 'N/A'
Shows that the modem is connected to the internet (?).
How do I establish a connection on Ubuntu to use this interface?
$ ifconfig -a
wwp0s20u5i8: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 0e:ff:cc:40:45:be txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wwp0s20u5i10: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 12:4e:ee:54:3e:3e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
How do I establish an IP connection to this device?
Thanks for the help!
I assume you would still like to know.
You have already done that:
So basically all left is to set the appropriate WWAN interface with the IP and netmask setting given. However you would also have to route the traffic you want to go over the interface to the defined gateway.
You should maybe read the whole section around page 43 in the server guide Be aware that if you use netplan it will screw with you, eg it will ignore your manually added connections for network-manager.
That it say static is irrelevant and only mean that you will have that IP as long as the bearer stays connected. Unless you pay for a static IP, isp's will most likely give you a new one when you reconnect the bearer.
The settings you have received is most likely based on the APN you have connected.
Dependent on ISP, they could force use of they dns aswell.
So, my question is why bother to do this manually when you have at least one easy to use network manager that can take care of it?
If you read the above it stands not any place that it require Desktop, actually it stands the opposite, that the desktop will pull it in exactly to do the networking part.
So my Suggestion still stands the same, install network-manager.
If you already use any other networkmanager like networkd eg., Just configure network-manager to only configure wwan.
That could be done with editing
/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
To set up a connection you could use
nmcli
or manually create a configuration:sudo vim /etc/NetworkManager/system-connections/myisp
Hopefully this will lead you in the right direction, best wishes :)