How to connect to internet with RM500Q-GL modem with netplan

HI, I’m trying to configure the RM500Q-GL on linux with netplan.

The modem seems to be connected to network, , but pinging doesn’t work and neither does any other website.

the modem is connected via usb adapter board with sim card.
netplan yaml configuration looks like this:

      apn: internet
      dhcp4: true
        route-metric: 101

      pin: '1234'
  renderer: NetworkManager
  version: 2

nmcli device settings show this:

GENERAL.DEVICE:                         cdc-wdm0
GENERAL.TYPE:                           gsm
GENERAL.HWADDR:                         (unknown)
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     netplan-cdc-wdm0
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/3
IP4.ROUTE[1]:                           dst =, nh =, mt = 101
IP4.ROUTE[2]:                           dst =, nh =, mt = 204
IP4.ROUTE[3]:                           dst =, nh =, mt = 101
IP6.GATEWAY:                            --

and the route settings look like this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         UG    101    0        0 wwan0
default         UG    303    0        0 wlan0 U     101    0        0 wwan0
link-local     U     202    0        0 eth0
link-local     U     204    0        0 wwan0     U     0      0        0 docker0   U     100    0        0 eth0   U     303    0        0 wlan0

This could be a trivial linux setting or something wrong with the provider, but at this point I really don’t know why it doesn’t work.

so, apparently just restarting the modem manager service with --debug flag made it work