ubuntu18.04静态ip设置

1.配置文件

vi /etc/netplan/-cloud-init.yaml
network:
ethernets:
enp129s0f0:
addresses: []
dhcp4: true
optional: true
enp129s0f1:
addresses: [100.100.22.16/]
dhcp4: false
gateway4: 100.100.22.254
nameservers:
addresses: [114.114.114.114,223.5.5.5]
ens4f0:
addresses: []
dhcp4: true
optional: true
ens4f1:
addresses: []
dhcp4: true
optional: true
version:

2.测试

netplan try

3.生效

netplan apply
上一篇:IIS网站打不开错误解决方案集锦(一):编译器错误消息: 编译器失败,错误代码为 -1073741502。


下一篇:java.lang.NoClassDefFoundError: org/apache/jute/CsvOutputArchive