ubuntu22设置固定ip

network:
  ethernets:
    eth0:
      dhcp4: false
      addresses: [192.168.1.11/24]
      optional: true
      routes:
        - to: default
          via: 192.168.1.1
      nameservers:
        addresses: [192.168.1.1]
  version: 2

 

posted @ 2024-01-16 19:24  天涯已可  阅读(59)  评论(0编辑  收藏  举报