Ubuntu 18.04修改ip步骤
Ubuntu 18.04修改ip步骤:注:
配置/etc/network/interfaces已无用
查看ip命令:
ip addr
vi /etc/netplan/50-cloud-init.yaml
network:
ethernets:
eno1:
addresses:
dhcp4: no
gateway4: 10.0.0.1
:wq
注:
1、":"后要有空格
2、Ubuntu 18.04的网卡名已改为eno1、eno2....
使配置生效(不需重启服务器):
netplan apply
页:
[1]