ubuntu20.04设置静态ip地址(包括不同版本)
2020-06-03 本文已影响0人
Then丶
vim /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
ens33:
dhcp4: no
addresses: [192.168.65.106/24]
gateway4: 192.168.60.253
nameservers:
addresses: [8.8.8.8,114.114.114.114]
netplan --debug apply