我正在基于 Rockchip RK3588 SoC 的RX1 板上配置 Ubuntu 20.04
我已经安装了映像并使用 DHCP 启动了系统并且正在运行,之后我使用以下配置将配置更改为静态 IP:
---
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 10.0.20.21/24
routes:
- to: default
via: 10.0.20.1
dhcp4: false
dhcp6: false
nameservers:
addresses:
- 10.0.20.53
- 10.0.20.54
该 IP 未被接受,并且我在 Syslog 中发现错误
ubuntu@ubuntu:~$ ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 2a:5f:76:bb:49:c8 brd ff:ff:ff:ff:ff:ff
Jun 16 09:56:43 ubuntu systemd-udevd[1210]: Using default interface naming scheme 'v249'.
Jun 16 09:56:43 ubuntu systemd-udevd[1210]: eth0: Failed to query device driver: Device or resource busy
Jun 16 09:56:45 ubuntu ModemManager[879]: <info> [base-manager] couldn't check support for device '/sys/devices/platform/fe1c0000.ethernet': not supported by any plugin
如果我手动配置 IP,一切都会正常工作。
sudo ip link set eth0 up
sudo ip addr add 10.0.20.21/24 brd 10.0.20.255 dev eth0
sudo ip route add default via 10.0.20.1
ubuntu@ubuntu:~$ ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 pe host
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 2a:5f:76:bb:49:c8 brd ff:ff:ff:ff:ff:ff
inet 10.0.20.21/24 brd 10.0.20.255 scope glorever preferred_lft forever
我该怎么做才能使 netplan 正常工作?
我曾尝试升级系统,但没有成功。
问题出在我用来刷新主板的 ubuntu 映像中。这是Ubuntu Rockchip官方页面。我已经安装了 24.04 映像,现在一切都运行正常!