鼎鼎知识库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cd /etc/netplan
ls
ifconfig
sudo apt install net-tools
ifconfig
	eno1
sudo apt install nano
sudo chmod 777 01-network-manager-all.yaml
nano 01-network-manager-all.yaml

修改配置文件

network:
  version: 2
  renderer: NetworkManager
  ethernets:
    eno1:
      dhcp4: no
      addresses: [192.168.8.141/24]
      gateway4: 192.168.8.1
      nameservers:
      	addresses: [192.168.8.1]

让生效

sudo netplan apply