标签:ice bsp netplan this dhcp end 文件的 let deb
$ip a
看见系统中有两块网卡
lo: ......
ens33: ......
#cd /etc/netplan
$ls
目录下面有文件
01-network-manager-all.yaml
$sudo vim 01-network-manager-all.yaml
文件内容类似如下
一定要注意yaml文件的格式,冒号后面跟一个空格
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: false
addresses: [192.168.0.240/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.1,114.114.114.114]
$sudo netplan --debug apply
$sudo netplan apply
标签:ice bsp netplan this dhcp end 文件的 let deb
原文地址:https://www.cnblogs.com/tochw/p/12942342.html