Network issues

Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.


Troubleshoot network connectivity issues

Network layer (IP addressing&subnet mask)

Symptom: Running the ip a command in the terminal returns no assigned IP address.

Root Cause

Resolution

Failed to acquire DHCP lease

Check whether the DHCP client daemon is running (ps aux | grep dhcp), or manually configure a static IP to rule out DHCP server issues.

Symptom: Running the ip a command in the terminal displays an assigned IP address, but pinging the gateway fails.

Root cause

Resolution

IP address misconfiguration (Subnet mismatch)

Inspect the IP address and subnet mask (e.g., /24) output from ip a to ensure it resides on the same subnet as the gateway (e.g., 192.168.1.1).

IP address conflict (Duplicate IP assigned to multiple hosts)

Switch to an unused IP address, or renew the lease via DHCP (dhclient eth0).

Missing default gateway

Run ip route show to check for a default via entry. If missing, manually add it: ip route add default via 192.168.1.1 dev eth0.

Transport layer (firewall&ports)

Symptom: Ping succeeds (ICMP is functional), but application services such as SSH and HTTP are unreachable.

Root cause

Resolution

Traffic blocked by firewall (iptables/ nftables)

The firewall is disabled by default on the Quectel Pi H1.

Service port not listening or daemon not started

Run netstat -tulpn | grep 22 to verify that the sshd process is actively listening.

Port conflict or service bound to localhost (127.0.0.1)

Check the service configuration to ensure it binds to 0.0.0.0 (all network interfaces) rather than 127.0.0.1 (loopback only).

Application layer (DNS resolution)

Symptom: Pinging an IP address (e.g., 8.8.8.8) succeeds, but running ping www.baidu.com (domain name) fails with a name resolution error.

Root cause

Resolution

DNS server unconfigured or unreachable

Inspect /etc/resolv.conf to ensure nameserver entries are configured (e.g., nameserver 8.8.8.8 or 114.114.114.114).

Corrupted or poisoned DNS cache

Run resolvectl --flush-caches (if using systemd-resolved), or restart the networking service.

International upstream DNS unreachable

Switch to domestic/local public DNS resolvers (such as 223.5.5.5 or 114.114.114.114) to bypass outbound network restrictions.

Run through the following steps for quick troubleshooting:

# 1. Inspect current DNS configuration
cat /etc/resolv.conf

# 2. Test hostname/ DNS resolution
getent hosts baidu.com

# 3. Check for iptables/ nftables packet filtering
sudo iptables -L -n
sudo nft list ruleset

How to troubleshoot network issues?

Refer to the sections above for the troubleshooting guide.

Troubleshooting Wi-Fi connection failures

Verify hardware and firmware

First, ensure that the system properly recognizes the Wi-Fi module.

  • Verify the Wi-Fi module: Consult the development board's hardware manual to confirm the module model and ensure the antenna is properly connected.

  • Check driver initialization: Run iw dev in the terminal to check whether the wlan0 interface is listed. If there is no output, the driver might not be loaded.

  • Inspect firmware loading: Run dmesg | grep -i firmware to check for firmware loading errors (e.g., failed to load).

  • Confirm Wi-Fi mode: Certain modules must first be explicitly set to STA (Station) mode.

Verify network interface and scan for networks

If the hardware is functioning properly, check whether the system can discover nearby wireless networks.

  • Check interface state: Run ip addr show wlan0 to verify that the interface is in the UP state. If it is DOWN, manually bring it up by running sudo ip link set wlan0 up.

  • Scan for available networks: Run sudo iw dev wlan0 scan | grep SSID to scan for nearby Wi-Fi networks. If this returns no output, it is likely due to one of the following four reasons: The interface is not UP (Linux requires ip link set wlan0 up prior to scanning); the radio transmitter is blocked via RF-Kill; the antenna is disconnected or loose, dropping the received signal below the receiver sensitivity threshold; channel regulatory restrictions are enforced (an unconfigured country code disables active scanning on 5 GHz DFS channels).

  • Using NetworkManager: You can alternatively run nmcli dev wifi list to trigger a scan and view available networks.

Verify connection configuration

Once nearby networks are discovered, connection failures are typically due to configuration issues.

  • Verify SSID and passphrase: Incorrect credentials or SSIDs are the most common cause—ensure proper case sensitivity.

  • Verify encryption/ security mode: If using wpa_supplicant, ensure the configuration matches the router's security suite (e.g., WPA2-PSK).

  • Check the NetworkManager daemon: Run systemctl status NetworkManager to confirm that the service is running.

  • Check supported Wi-Fi frequency bands: Verify that the development board supports the target frequency band (e.g., 2.4 GHz vs. 5 GHz).

Verify IP Address Assignment

If the Wi-Fi association succeeds but there is no internet access, it is usually an IP addressing issue.

  • Inspect the assigned IP address: Run ip addr show wlan0 to verify that an interface has acquired a valid IP address (and not a link-local 169.254.x.x address).

  • Manually request a DHCP lease: Run sudo dhclient wlan0 or sudo udhcpc -i wlan0 to trigger DHCP address acquisition manually.

  • Check the upstream DHCP service: Confirm that the router's DHCP server is enabled and its address pool is not exhausted.

How to configure a static IP on Ethernet?

Temporary configuration using the ip command (immediate, non-persistent across reboots)

# 1. Identify the network interface name (typically eth0 or enp*)
ip addr show

# 2. Assign a static IP to the interface (e.g., 192.168.1.100/24)
sudo ip addr add 192.168.1.100/24 dev eth0

# 3. Bring up the interface (if currently in the DOWN state)
sudo ip link set eth0 up

# 4. Add the default gateway (e.g., 192.168.1.1)
sudo ip route add default via 192.168.1.1 dev eth0

# 5. Configure DNS resolvers (updates /etc/resolv.conf)
printf 'nameserver 8.8.8.8\nnameserver 114.114.114.114\n' | sudo tee /etc/resolv.conf

Persisting configuration via systemd-networkd

Create or edit the network interface configuration file

sudo nano /etc/systemd/network/20-eth0-static.network

Populate it with the following configuration

[Match]
Name=eth0

[Network]
Address=192.168.1.100/24
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=114.114.114.114

Restart the network service

sudo systemctl restart systemd-networkd

How to check network bandwidth?

Option A: Read native kernel sysfs attributes (Zero dependencies; compatible with Yocto and Ubuntu):

# Output negotiated link speed (e.g., 1000 represents 1000 Mbps)
cat /sys/class/net/eth0/speed

# Output duplex mode (e.g., full represents full-duplex)
cat /sys/class/net/eth0/duplex

Option B: Use ethtool to inspect detailed hardware auto-negotiation parameters (requires ethtool installation):

ethtool eth0 | grep -iE "speed|duplex|link detected"