配置 /etc/network/interfaces 已无效
- 配置方式
~# vim /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: no
addresses: [192.168.33.201/24]
gateway4: 192.168.33.1
nameservers:
addresses: [114.114.114.114]
~# netplan apply
网友评论