Ubuntu22.04静态ip配置

Ubuntu22.04静态ip配置 - 知乎 (zhihu.com)

 

network:
  renderer: NetworkManager
  ethernets:
    ens33:
      addresses:
        - 10.128.39.42/24
      routes:
        - to: default
          via: 10.128.39.1
      nameservers:
        addresses:
          - 114.114.114.114
  version: 2

 

sudo netplan apply

 

posted @ 2023-11-28 13:51  shiningrise  阅读(32)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css