1

I have raspberry pi 4 with ubuntu server 64 bit installed. I'm trying to connect my pi with another wifi but unable to connect. I used netplan to connect with first wifi successfully connected. but later on, tried to connect with different ssid using nmcli but device is not listing ssids and or list

i have tried below steps

sudo nano /etc/network/interface.
auto wlan0
iface wlan0 inet dhcp

sudo iwlist wlan0 scan

its list all the wifi properly

sudo nmcli device wifi list

IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY

test 2 :

$ rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no

  1. sudo /etc/init.d/networking restart && dhclient

[ ok ] Restarting networking (via systemctl): networking.service. RTNETLINK answers: Operation not permitted RTNETLINK answers: Operation not permitted

4.    nmcli radio 

WIFI-HW WIFI WWAN-HW WWAN
enabled enabled enabled enabled

nmcli radio wifi on

sudo nmcli device wifi list

IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY

I tried nmtui its also not showing wifi list

are there any methods I can try to connect with my other wifi?

  • 1
    Ubuntu server uses NEITHER /etc/network/interfaces NOR nmcli but AFAIK uses systemd-networkd (unless you have installed a desktop which uses NetworkManager) so your Question is unanswerable. You will be lucky to find someone on this site who uses it. – Milliways Jul 4 at 6:06
  • ubuntu server 18.04 comes with netplan right? so I have to use only netplan 50-cloud-init.yaml to add another wifi, should I replace with existing wifi details to the new one? – Thowsif ahmed Jul 4 at 6:11
0

Instead of nmcli use netplan.

open yaml file and add wifi details in(spaces are important) -
/etc/netplan/50-cloud-init.yaml

network:
version: 2
ethernets:
    eth0:
        optional: true
        dhcp4: true
# add wifi setup information here ...
wifis:
    wlan0:
        optional: true
        access-points:
            "ssid":
                password: "123pass00"
        dhcp4: true
        dhcp6: true

save and use command - sudo netplan try

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.