美文网首页
Ubuntu netplan 网络配置

Ubuntu netplan 网络配置

作者: semiscone | 来源:发表于2021-06-22 10:36 被阅读0次

wlp0s20f3 接外网,
eno1 接内网

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

  ethernets:
    wlp0s20f3:
      addresses: []
      dhcp4: true
      routes:
        - to: 0.0.0.0/0
          via: 10.110.32.0
      optional: true
    eno1:
      dhcp4: false
      addresses: [172.20.1.100/16]
      routes:
        - to: 172.20.0.0/16
          via: 172.20.1.1
          metric: 30

相关文章

网友评论

      本文标题:Ubuntu netplan 网络配置

      本文链接:https://www.haomeiwen.com/subject/rampyltx.html