运维
yaml文件 标签描述

ubuntu从17.10开始,改成netplan方式配置IP,配置写在/etc/netplan/01-network-manager-all.yaml或者类似名称的yaml文件里。 1、查看你要设置静态IP的网卡名称 通过ifconfig命令,查看到网卡的名字为enp1s0 test@test:/etc/netplan$ifconfig enp1s0:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500 inet192.168.100.110netmask255.255.255.0broadcast192.168.100.255 ...

  c0ThQ5mQpCxB   2023年11月02日   43   0   0 ubuntu配置IPnetplan静态ipyaml文件