Unable to connect to the internet using WLAN


For some reason, I had to assign a static IP to my Jetson device so that other devices could always find it at the same IP. As the devices were to be connected via Ethernet, I created a new file eth0 in /etc/network/interfaces.d/eth0 and populated it as:

auto eth0
iface eth0 inet static

This worked as intended but wouldn’t let me connect to the internet so whenever I needed to, I’d rather used WLAN.

But now as I have switched to a different WiFi device, I asked Jetson to connect to this new WiFi using nmcli (and the network’s SSID & password). Now, Jetson won’t connect to the internet.

The static IP I chose for the eth0 was and the WiFI dongle assigns to Jetson. I confirm this using ifconfig

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        ether 00:04:4b:cb:ab:ad  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 40 
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        inet6 fe80::8ac:88e5:38a5:746d  prefixlen 64  scopeid 0x20<link>
        ether 0c:54:15:b6:63:9f  txqueuelen 1000  (Ethernet)
        RX packets 722290  bytes 226415836 (226.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7651  bytes 1978671 (1.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

When I try to ping google.com , I get

jetson@jetson-desktop:~$ ping google.com
PING google.com ( 56(84) bytes of data.
From jetson-desktop ( icmp_seq=1 Destination Host Unreachable
--- google.com ping statistics ---
6 packets transmitted, 0 received, +1 errors, 100% packet loss, time 5088ms
pipe 4

I noticed that it tries to use the static IP. How can I connect to the internet ?

Also checked dmesg and found

Intel(R) Wireless WiFi driver for Linux
[    6.986955] Copyright(c) 2003- 2015 Intel Corporation
[    6.987264] iwlwifi 0003:01:00.0: enabling device (0000 -> 0002)
[    6.991026] iwlwifi 0003:01:00.0: Direct firmware load for iwlwifi-8265-26.ucode failed with error -2
[    6.991216] iwlwifi 0003:01:00.0: Falling back to user helper
[    7.174902] random: crng init done
[    7.174992] random: 7 urandom warning(s) missed due to ratelimiting
[    7.413344] EXT4-fs (nvme0n1p1): recovery complete

Can you try with ubuntu GUI instaed of nmcli tool?

Ok. I sorted it out this way:

  1. Reset the interfaces file
sudo nano /etc/network/interfaces

such that it reflects

auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp

and commented everything else.

  1. Restart network interface
sudo ifconfig wlan0 down && sudo ifconfig wlan0 up

And voila !

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.