本文主要是介绍多网卡IP配置netplan,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
参考ubuntu 18.04 netplan 配置多网卡、多路由、多ip_netplan 多ip-CSDN博客
# Let NetworkManager manage all devices on this system
#network:
# version: 2
# renderer: NetworkManager
network:
version: 2
ethernets:
eno1:
dhcp4: false
addresses: [192.168.3.6/24]
routes:
- to: 0.0.0.0/0
via: 192.168.3.1
metric: 100
nameservers:
addresses: [114.114.114.114]
enp1s0:
dhcp4: false
addresses: [192.168.4.6/24]
enp2s0:
dhcp4: false
addresses: [192.168.5.6/24]
enp3s0:
dhcp4: false
addresses: [192.168.6.6/24]
enp4s0:
dhcp4: false
addresses: [192.168.7.6/24]
enp5s0:
dhcp4: false
addresses: [192.168.8.6/24]
这篇关于多网卡IP配置netplan的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!