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
网友评论