流程
-
開啟Terminal
-
輸入
sudo nano /etc/netplan/01-network-manager-all.yaml
-
修改成以下
1 2 3 4 5 6 7 8 9 10 11
network: version: 2 renderer: networkd ethernets: ens3: dhcp4: no addresses: - 192.168.121.221/24 gateway4: 192.168.121.1 nameservers: addresses: [8.8.8.8, 1.1.1.1]
-
完成