Hi, I have just installed ‘Ubuntu 22.04 LTS (GNU/Linux 5.10.110-18-rockchip aarch64)’ on Rock Pi 4 SE.
I am trying to connect to the internet.
I am connected to WIFI ( nmcli d state is connected, I can ping router, I also ssh to rock pi wirelessly) but I cannot connect to Internet ( cannot ping google, sudo apt-get update fails ).
At first, the nmcli d would return status ‘unmanaged’. I fixed it by going to /etc/NetworkManager/NetworkManager.conf and changing this; wifi.scan-rand-mac-address=no to wifi.scan-rand-mac-address=yes.
After that I was able to connect to network, but not to internet.
I am not sure if it is connected to my issue but I found a post that mentions ‘The file /etc/network/interfaces has been replaced as of Ubuntu 17.10 with netplan’ https://askubuntu.com/questions/1249398/connected-to-wifi-but-no-internet-ubuntu-18-04#comment2109327_1249420
But I do not have /etc/netplan directory at all.
Some outputs;
rock@rock-4se:/etc$ nmcli d
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected Wired connection 1
wlan0 wifi connected KaczuszkaNet2G
p2p-dev-wlan0 wifi-p2p disconnected --
lo loopback unmanaged --
sudo service network-manager status
rock@rock-4se:/etc$ sudo service systemd-networkd status
● systemd-networkd.service - Network Configuration
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-08-21 21:11:42 UTC; 2 months 17 days ago
TriggeredBy: ● systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
Main PID: 303 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 4602)
Memory: 2.5M
CPU: 465ms
CGroup: /system.slice/systemd-networkd.service
└─303 /lib/systemd/systemd-networkd
Nov 08 10:48:10 rock-4se systemd-networkd[303]: eth0: Lost carrier
Nov 08 10:48:13 rock-4se systemd-networkd[303]: eth0: Gained carrier
Nov 08 12:12:31 rock-4se systemd-networkd[303]: eth0: Lost carrier
Nov 08 12:12:33 rock-4se systemd-networkd[303]: eth0: Gained carrier
Nov 08 12:12:35 rock-4se systemd-networkd[303]: eth0: Lost carrier
Nov 08 12:32:49 rock-4se systemd-networkd[303]: eth0: Gained carrier
Nov 08 12:32:52 rock-4se systemd-networkd[303]: eth0: Lost carrier
Nov 08 12:32:55 rock-4se systemd-networkd[303]: eth0: Gained carrier
Nov 08 12:32:56 rock-4se systemd-networkd[303]: eth0: Lost carrier
Nov 08 12:32:59 rock-4se systemd-networkd[303]: eth0: Gained carrier
rock@rock-4se:/etc$ sudo NetworkManager --print-config
# NetworkManager configuration: /etc/NetworkManager/NetworkManager.conf (lib: 10-disable-wifi-scan-rand-macaddr.conf, no-mac-addr-change.conf) (etc: 10-dns-resolved.conf, 10-globally-managed-devices.conf, default-wifi-powersave-on.conf)
[main]
# rc-manager=
# auth-polkit=true
# dhcp=internal
# iwd-config-path=
plugins=ifupdown,keyfile
no-auto-default=*
configure-and-quit=no
[ifupdown]
managed=false
[logging]
# backend=journal
# audit=true
[device]
# wifi.backend=wpa_supplicant
wifi.scan-rand-mac-address=yes
[device]
# wifi.backend=wpa_supplicant
wifi.scan-rand-mac-address=yes
[device-31-mac-addr-change]
match-device=driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no
[connection]
wifi.powersave=3
rock@rock-4se:/etc$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether be:68:8c:08:b8:50 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.101/24 brd 192.168.1.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 50:5a:65:af:da:91 brd ff:ff:ff:ff:ff:ff
inet 192.168.50.27/24 brd 192.168.50.255 scope global dynamic noprefixroute wlan0
valid_lft 76204sec preferred_lft 76204sec
inet6 fe80::af20:5c68:8838:32b6/64 scope link noprefixroute
valid_lft forever preferred_lft forever
rock@rock-4se:/etc$ ip neigh
192.168.1.1 dev eth0 FAILED
192.168.1.69 dev eth0 lladdr 10:65:30:1f:93:53 REACHABLE
192.168.50.1 dev wlan0 lladdr 50:eb:f6:84:bd:48 STALE
I found a tip thast i should go to resolv.conf and change
Generated by NetworkManager
nameserver 192.168.50.1
to
Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
but it did not help.