| | 53 | |
| | 54 | General modem information that should be understood is located on the [wiki:wireless/modem Gateworks Modem Wiki Page] |
| | 55 | |
| | 56 | ''' Note, because this modem uses raw-ip, DHCP does not work and a IP will not automatically be applied to the interface. The provider will give an IP and then it must manually be applied to the wwan0 interface.''' |
| | 57 | |
| | 58 | Sample set of commands for Ventana Ubuntu Bionic: |
| | 59 | {{{ |
| | 60 | systemctl stop ModemManager #Stop modem manager, doing things manually |
| | 61 | ifdown eth0 #bring down eth0 so not confused for WAN/LAN link. |
| | 62 | |
| | 63 | echo "APN=ATT.APNI" > /etc/qmi-network.conf #replace with appropriate APN |
| | 64 | echo "PROXY=yes" >> /etc/qmi-network.conf # add prox |
| | 65 | qmicli -p -d /dev/cdc-wdm0 --wda-set-data-format=raw-ip #set raw ip format |
| | 66 | qmicli -p -d /dev/cdc-wdm0 --set-expected-data-format=raw-ip #set raw ip format |
| | 67 | qmi-network /dev/cdc-wdm0 start #start the interface |
| | 68 | |
| | 69 | qmicli --device /dev/cdc-wdm0 --wds-get-current-settings #retrieve IP address information |
| | 70 | |
| | 71 | ifconfig wwan0 100.22.44.187 netmask 255.255.255.248 #assign IP |
| | 72 | route add default gw 100.75.76.188 wwan0 #assign route |
| | 73 | echo "nameserver 198.224.182.135" > /etc/resolv.conf #assign nameserver |
| | 74 | }}} |