netplan网卡配置

root@tpl-ops:~# cat /etc/netplan/00-installer-config.yaml 
# This is the network config written by 'subiquity'
network:
  ethernets:
    ens160:
      dhcp4: false
      dhcp6: false
      accept-ra: no
      link-local: []
      addresses:
      - 192.168.22.138/24
      routes:
      - to: default
        via: 192.168.22.1 
      nameservers:
        addresses:
        - 223.5.5.5
        - 8.8.8.8
  version: 2
posted @ 2025-11-21 13:47  Gshelldon  阅读(4)  评论(0)    收藏  举报