ubuntu20.04 TSL设置静态ip

vim /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens33:
      dhcp4: no
      addresses:
        - 192.168.100.136/24  #静态ip
      gateway4: 192.168.100.2 #网关
      nameservers:
        addresses:
          - 8.8.8.8   #DNS
  version: 2

 

posted @ 2024-09-25 14:45  KeepSmiling_me  阅读(28)  评论(0)    收藏  举报