sudo nano /etc/systemd/network/eth0.network
[Match] Name=eth0
[Network] Address=192.168.1.50/24 # 为 eth0 分配一个静态 IP Gateway=192.168.1.1 # 你的路由器 IP 地址 DNS=192.168.1.1 # 路由器作为 DNS
sudo nano /etc/systemd/network/eth0.network
[Match] Name=eth0
[Network] Address=192.168.1.50/24 # 为 eth0 分配一个静态 IP Gateway=192.168.1.1 # 你的路由器 IP 地址 DNS=192.168.1.1 # 路由器作为 DNS