ubuntu 20.04 网络手工配置

新版本在ubuntu系统已经使用yml 文件方式配置了,配置位置: /etc/netplan/00-installer-config.yaml


# This is the network config written by 'subiquity'

network:

  ethernets:

    eno1np0:

      dhcp4:  no

      addresses: 

              - 192.168.1.234/24

              - 192.168.0.234/24

    eno2np1:

      dhcp4: no

      addresses: [192.168.8.234/24]

      routes:

        - to: default

          via: 192.168.8.1

      nameservers:

        addresses: [223.5.5.5,114.144.114.144]

  version: 2


请先 登录 后评论
  • 0 关注
  • 0 收藏,583 浏览
  • shitian 提出于 2023-08-30 16:05

相似问题