---
title: "Connect cellular module to internet in ECM mode"
description: "Set a Quectel or Telit mini PCIe module to ECM mode, so it appears to Linux as a USB Ethernet interface: configure it with AT commands, connect and test."
url: "https://docs.sixfab.com/guides/connect-cellular-module-internet-ecm-mode/"
last_updated: "2026-10-12"
---

# Connect cellular module to internet in ECM mode

Set a Quectel or Telit mini PCIe module to ECM mode: the module appears to Linux as a USB Ethernet interface, with no extra software. Configure it with AT commands, connect and test.

**Works with:** [Base HAT](https://docs.sixfab.com/cellular/base-hat/), [4G/LTE Cellular Modem Kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/), [Jetson Nano Cellular Modem Kit](https://docs.sixfab.com/cellular/jetson-nano-cellular-modem-kit/)

In ECM (Ethernet Control Model) mode, the cellular module appears to Linux as a USB Ethernet interface, handled by the kernel’s `cdc_ether` driver; no extra software is needed.

## Requirements

Finish the quickstart of the board first: [Get started with Base HAT](https://docs.sixfab.com/cellular/base-hat/quickstart/), [Get started with 4G/LTE Cellular Modem Kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/quickstart/) or [Get started with Jetson Nano Cellular Modem Kit](https://docs.sixfab.com/cellular/jetson-nano-cellular-modem-kit/quickstart/).

**Required**

**Hardware**

- **Base HAT, 4G/LTE Cellular Modem Kit or Jetson Nano Cellular Modem Kit**: Assembled as in the quickstart of the [Base HAT](https://docs.sixfab.com/cellular/base-hat/quickstart/), the [4G/LTE kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/quickstart/) or the [Jetson Nano kit](https://docs.sixfab.com/cellular/jetson-nano-cellular-modem-kit/quickstart/), with the USB cable connected.
- **A module that supports ECM**: Tested: Quectel EC25-A, EC25-E, EC25-AU and EG25-G; Telit LE910C1, LE910C4 (NF, EU, AP) and ME910C1-WW. The EC25-AF does not support ECM; other variants are not tested.

**SIM**

- **SIM card with data service**: Its APN: `super` for the Sixfab SIM and the KORE Super SIM (formerly Twilio Super SIM).

**Software**

- **Serial terminal**: To send AT commands: see [Send AT commands](https://docs.sixfab.com/guides/send-at-commands-cellular-module/).

## Stop ModemManager

On Raspberry Pi OS Bookworm and later, ModemManager is installed by default and can take over the module’s ports. Without ModemManager, skip this stage.

1. **Stop and disable ModemManager**

   ```bash
   sudo systemctl stop ModemManager.service
   sudo systemctl disable ModemManager.service
   ```

   To remove it instead, see [Remove ModemManager](https://docs.sixfab.com/guides/connect-cellular-module-internet-ecm-mode/#remove-modemmanager).

## Configure module

**Quectel**

1. **Check that Linux detects module**

   ```bash
   lsusb
   ```

   The list shows the module, for example `ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem`. In the default QMI mode, `lsusb -t` shows the `qmi_wwan` driver on interface 4:

   ```text
   $ lsusb -t
   |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=option, 480M
   |__ Port 1: Dev 3, If 1, Class=Vendor Specific Class, Driver=option, 480M
   |__ Port 1: Dev 3, If 2, Class=Vendor Specific Class, Driver=option, 480M
   |__ Port 1: Dev 3, If 3, Class=Vendor Specific Class, Driver=option, 480M
   |__ Port 1: Dev 3, If 4, Class=Vendor Specific Class, Driver=qmi_wwan, 480M
   ```

2. **Open AT command port**

   Open the module’s AT port (`/dev/ttyUSB2`) at 115200 baud, as in [Send AT commands](https://docs.sixfab.com/guides/send-at-commands-cellular-module/), and send `AT`. The answer is `OK`.

3. **Set APN**

   ```text
   AT+CGDCONT=1,"IPV4V6","super"
   ```

   Replace `super` with the APN of your SIM. `super` is the APN of the Sixfab SIM and of the KORE Super SIM (formerly Twilio Super SIM), with no username or password; for another SIM, ask its provider.

4. **Switch module to ECM mode**

   ```text
   AT+QCFG="usbnet",1
   ```

   The module may restart by itself.

5. **Restart module**

   ```text
   AT+CFUN=1,1
   ```

   Wait about 30 seconds for the module to start again. After the restart, `lsusb -t` shows the `cdc_ether` driver instead of `qmi_wwan`, and Linux has a `usb0` interface.

**Telit**

1. **Check that Linux detects module**

   ```bash
   lsusb
   ```

   The USB ID shows the module and its USB configuration:

   | Module | Default (RmNet) | ECM | ECM setting |
   | --- | --- | --- | --- |
   | LE910C1, LE910C4 | `1bc7:1201` | `1bc7:1206` | `AT#USBCFG=4` |
   | ME910C1-WW | `1bc7:0036` | `1bc7:1102` | `AT#USBCFG=3` |

   In the default mode, `lsusb -t` shows the `qmi_wwan` driver on interface 2:

   ```text
   $ lsusb -t
   |__ Port 2: Dev 4, If 0, Class=Vendor Specific Class, Driver=option, 480M
   |__ Port 2: Dev 4, If 1, Class=Vendor Specific Class, Driver=, 480M
   |__ Port 2: Dev 4, If 2, Class=Vendor Specific Class, Driver=qmi_wwan, 480M
   |__ Port 2: Dev 4, If 3, Class=Vendor Specific Class, Driver=option, 480M
   ...
   ```

2. **Open AT command port**

   Open the module’s AT port at 115200 baud, as in [Send AT commands](https://docs.sixfab.com/guides/send-at-commands-cellular-module/), and send `AT`. The answer is `OK`.

3. **Set APN**

   ```text
   AT+CGDCONT=1,"IPV4V6","super"
   ```

   Replace `super` with the APN of your SIM. `super` is the APN of the Sixfab SIM and of the KORE Super SIM (formerly Twilio Super SIM), with no username or password; for another SIM, ask its provider.

4. **Switch module to ECM mode**

   Send the ECM setting of your module from the table above, for example on an LE910C4:

   ```text
   AT#USBCFG=4
   ```

   The module restarts by itself. If it does not, restart it with `AT#REBOOT`. It takes about 30 seconds to start again.

5. **Check that ECM driver is loaded**

   `lsusb` shows the ECM USB ID from the table, and `lsusb -t` shows the `cdc_ether` driver on interfaces 2 and 3:

   ```text
   $ lsusb -t
   |__ Port 1: Dev 112, If 0, Class=Vendor Specific Class, Driver=option, 480M
   |__ Port 1: Dev 112, If 1, Class=Vendor Specific Class, Driver=, 480M
   |__ Port 1: Dev 112, If 2, Class=Communications, Driver=cdc_ether, 480M
   |__ Port 1: Dev 112, If 3, Class=CDC Data, Driver=cdc_ether, 480M
   |__ Port 1: Dev 112, If 4, Class=Vendor Specific Class, Driver=option, 480M
   ...
   ```

## Check network registration

1. **Open AT port again**

   After the restart, open the AT port again. Registration can take a few minutes, depending on the network.

2. **Check SIM and registration**

   Send each command:

   | Command | Checks | Expected answer |
   | --- | --- | --- |
   | `AT+CPIN?` | SIM status | `+CPIN: READY` |
   | `AT+CSQ` | Signal quality | For example `+CSQ: 25,99`; `99,99` means no signal |
   | `AT+CREG?` | Network registration | `+CREG: 0,1` (home network) or `+CREG: 0,5` (roaming) |
   | `AT+COPS?` | Operator | For example `+COPS: 0,0,"T-Mobile"` |
   | `AT+CGDCONT?` | APN of each context | Context 1 with your APN, for example `+CGDCONT: 1,"IPV4V6","super",…` |

## Start connection

**Quectel**

The module starts the data connection by itself once it is registered; the `usb0` interface gets an IPv4 address from the module.

**Telit**

Start the connection:

```text
AT#ECM=1,0
```

The answer is `OK`. The command activates the data context, so it returns `ERROR` when the SIM is not ready, the module is not registered or the APN is wrong; check the table above and send it again. The `wwan0` interface then gets an IPv4 address from the module.

The APN and ECM settings stay in the module. After a restart of the module or the computer, or when the connection drops, send only `AT#ECM=1,0` again.

## Verify

The interface is `usb0` (Quectel) or `wwan0` (Telit); the name can differ with the operating system and kernel. The outputs below are from a Quectel module.

1. **Check address and routing table**

   ```bash
   ip addr show usb0
   route -n
   ```

   ```text
   $ ip addr show usb0
   6: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
   link/ether 6e:a6:1a:53:e6:e8 brd ff:ff:ff:ff:ff:ff
   inet 192.168.225.57/24 brd 192.168.225.255 scope global dynamic noprefixroute usb0
   valid_lft 42918sec preferred_lft 42918sec
   ```

   ```text
   $ route -n
   Kernel IP routing table
   Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
   0.0.0.0         192.168.225.1   0.0.0.0         UG    100    0        0 usb0
   0.0.0.0         192.168.68.1    0.0.0.0         UG    600    0        0 wlan0
   192.168.68.0    0.0.0.0         255.255.255.0   U     600    0        0 wlan0
   192.168.225.0   0.0.0.0         255.255.255.0   U     100    0        0 usb0
   ```

   The interface has an IPv4 address. With several interfaces, the one with the lowest metric carries the traffic: here `usb0` (100) before `wlan0` (600).

2. **Ping through cellular interface**

   ```bash
   ping -I usb0 -c 5 sixfab.com
   ```

   **Result:** five replies and `0% packet loss`; addresses and times differ by network.

## Details

### Remove ModemManager

Instead of stopping and disabling ModemManager, remove it:

```bash
sudo apt purge modemmanager -y
```

## Troubleshooting

### The cellular interface does not appear

If the interface does not appear, restart the computer and check the SIM, the antennas, the module seating and the USB cable ([Base HAT troubleshooting](https://docs.sixfab.com/cellular/base-hat/troubleshooting/)). Then check the module:

| Check | Command | Expected answer |
| --- | --- | --- |
| ECM mode is set (Quectel) | `AT+QCFG="usbnet"` | `+QCFG: "usbnet",1` |
| ECM mode is set (Telit) | `AT#USBCFG?` | `4` on the LE910C1 and LE910C4, `3` on the ME910C1-WW |
| The ECM context is active (Telit) | `AT#ECM?` | `#ECM: 0,1`. With `0,0`, send `AT#ECM=1,0,"","",0`. |
| The SIM is detected | `AT+CPIN?` | `+CPIN: READY` |
| The module is registered | `AT+CREG?` | `+CREG: 0,1` or `+CREG: 0,5` |
| The APN is right and the context has an IP address | `AT+CGCONTRDP` (Quectel), `AT+CGDCONT?` (Telit) | Your APN and an IP address |

### The wwan0 interface has no IPv4 address (Telit)

If `wwan0` is listed by `ip addr` but has no IPv4 address, request one, and add a DNS server if names do not resolve:

```bash
sudo dhclient -v wwan0
echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf
```

## Next steps

- [Send AT commands to cellular module](https://docs.sixfab.com/guides/send-at-commands-cellular-module/): Find the AT port and send commands with Minicom or ATCom.
- [Create LTE Wi-Fi hotspot on Raspberry Pi](https://docs.sixfab.com/guides/create-lte-wifi-hotspot-raspberry-pi/): Share the ECM connection of the Raspberry Pi over Wi-Fi.
- [Connect cellular module in QMI mode with libqmi](https://docs.sixfab.com/guides/connect-cellular-module-qmi-mode-libqmi/): Another connection method: qmicli and the qmi_wwan driver.
- [Connect Quectel module with quectel-CM](https://docs.sixfab.com/guides/connect-quectel-module-quectel-cm/): Quectel’s connection manager for QMI mode.
- [Base HAT troubleshooting](https://docs.sixfab.com/cellular/base-hat/troubleshooting/): Power, SIM, antenna, USB and UART checks.
