Getting Your Modem Running on Ubuntu

To start your modem in Ubuntu, you need to enable the modem device, load the correct driver, and configure the connection through the network settings. Most USB modems and built-in modem hardware will appear in Ubuntu's device list automatically, but you have to tell the system to recognize and use them. The fastest route is through the graphical Settings app if your modem is already detected, or through the terminal if you need to load a driver or troubleshoot a connection that isn't showing up.

Ubuntu treats modems as network devices, so the setup process is similar to connecting any other network hardware. The steps differ slightly depending on whether your modem is USB-based, built into your laptop, or connected through a serial port, but the end result is the same: your modem will appear in the network menu and you can dial or connect through it.

Key Takeaways

  • Check that your modem appears in the device list by opening Settings, selecting Network, and looking for your modem in the list of available connections.
  • If your modem does not appear, you may need to install a driver package using the terminal command sudo apt install modem-manager-gui or a manufacturer-specific driver.
  • Once the modem is detected, you can set up it by selecting it from the Network menu and entering your ISP's dial-up credentials if required.
  • For USB modems that are not recognized, check that the device is listed in the terminal by running lsusb and verify the modem is not in a locked or airplane mode state.
  • Most modern modems work without additional setup once the driver is installed, but older or proprietary modems may require manual configuration through the terminal.

Check If Your Modem Is Already Detected

Open the Settings process by clicking the system menu in the top-right corner and selecting Settings. Navigate to the Network section on the left sidebar. Look at the list of available connections—if your modem appears here with a name like "Modem" or the manufacturer's name, it is already detected and you can move to the set up step.

If you see your modem listed but it shows as disconnected or unavailable, click on it to open the connection details. Check that the toggle switch is turned on. If the toggle is already on but the modem is not connecting, the issue is usually a missing driver or incorrect dial-up settings rather than a detection problem.

Install the Modem Manager if Your Modem Is Not Detected

If your modem does not appear in the Network settings at all, you need to install the software that manages modem devices. Open the terminal by pressing Ctrl+Alt+T. Type the following command and press Enter:

sudo apt update && sudo apt install modem-manager-gui

This command updates your package list and installs the Modem Manager GUI, which handles detection and configuration of modems in Ubuntu. You will be asked to enter your password—type it and press Enter. The installation takes a few minutes depending on your internet speed.

After installation completes, restart your computer or run sudo systemctl restart ModemManager in the terminal to reload the modem detection service. Then return to Settings and check the Network section again—your modem should now appear in the list.

Verify Your USB Modem Is Recognized by the System

If you are using a USB modem and it still does not appear after installing Modem Manager, check whether the system can see the device at all. Open the terminal and type:

lsusb

This command lists all USB devices connected to your computer. Look through the output for your modem's manufacturer name or model number. If your modem appears in this list, the hardware is connected properly and the issue is a missing or incompatible driver. If it does not appear, check that the USB cable is fully inserted and try a different USB port.

Some USB modems have a hardware switch or button that enables or disables the device. Check the modem itself for a power switch or mode button. A few modems also have an airplane mode that can be toggled on or off—if your modem has this feature, make sure it is not in airplane mode.

Load a Manufacturer-Specific Driver

If your modem is detected by lsusb but does not appear in Ubuntu's Network settings, you may need a driver from the manufacturer. Visit the modem manufacturer's support website and search for Linux drivers. read the driver package for Ubuntu or Debian—most modern modems provide these as .deb files that you can install directly.

To install a downloaded driver file, open the terminal, navigate to the folder where you saved it, and type:

sudo dpkg -i driver-filename.deb

Replace "driver-filename.deb" with the actual name of the file you downloaded. After installation, restart the ModemManager service again with sudo systemctl restart ModemManager and check the Network settings. Your modem should now be visible.

If the manufacturer does not provide a Linux driver, search online for the modem model number plus "Ubuntu driver" or "Linux driver"—community members often create and share drivers for popular modems that manufacturers do not officially support.

set up Your Modem and Connect

Once your modem appears in the Network settings, click on it to open the connection details. If this is a dial-up modem, you will see fields for the phone number, username, and password. Enter the dial-up number and credentials provided by your internet service provider. If this is a broadband modem (cable or DSL), the connection may be automatic and require no additional information.

Click the toggle switch or the Connect button to set up the modem. Ubuntu will attempt to establish a connection. If the connection succeeds, you will see a "Connected" status next to the modem name. If the connection fails, check that you entered the correct dial-up number and credentials, and verify that the modem is powered on and properly connected to the phone line or cable.

Troubleshoot a Modem That Connects but Has No Internet

If your modem connects but you cannot access websites or services, the issue is usually a DNS configuration problem rather than a modem problem. Open the terminal and type:

nmcli device show

This command displays detailed information about all network devices. Look for your modem in the output and check the DNS servers listed. If the DNS field is empty or shows 0.0.0.0, your modem is not receiving DNS settings from your ISP.

To set DNS manually, open Settings, go to Network, click on your modem connection, and select the IPv4 tab. Toggle the DNS switch to on and enter 8.8.8.8 and 8.8.4.4 (Google's public DNS servers) or 1.1.1.1 and 1.0.0.1 (Cloudflare's public DNS servers). Save the settings and try connecting again.

Frequently Asked Questions

Why does my modem show in lsusb but not in Ubuntu Settings?

The modem hardware is detected by the system but the modem management software is not recognizing it as a network device. Install modem-manager-gui and restart the ModemManager service. If that does not work, the modem may need a manufacturer-specific driver or may use a protocol that Ubuntu does not support natively.

Can I use a modem that came with Windows drivers?

Some Windows modems work in Ubuntu if the hardware is standard, but many require Linux-specific drivers. Check the manufacturer's website for a Linux version first. If none exists, search online for community-created drivers for your modem model. Some older modems may not have Linux support at all.

What should I do if the modem connects but drops the connection frequently?

Frequent disconnections usually indicate a weak signal, line noise, or a driver issue. Move the modem closer to the signal source if possible, check that all cables are fully inserted, and try updating to the latest driver from the manufacturer. If the problem persists, contact your ISP to check the line quality.

Do I need to restart Ubuntu after installing a modem driver?

A full restart is not always necessary, but restarting the ModemManager service with sudo systemctl restart ModemManager is usually required for the system to recognize the driver. A full system restart guarantees that all services reload and is the safest option if you are unsure.

How do I know if my modem is in airplane mode?

Check the modem itself for a physical button or switch labeled "Airplane Mode" or "Flight Mode." Some modems also have an LED indicator that lights up when airplane mode is active. Consult your modem's manual or the manufacturer's website for the exact location and how to toggle it off.