Featured image of post Ubuntu 22.04 靜態 IP 設定

Ubuntu 22.04 靜態 IP 設定

Ubuntu 22.04 Static IP Setting

流程

  1. 開啟Terminal

  2. 輸入sudo nano /etc/netplan/01-network-manager-all.yaml

  3. 修改成以下

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    
    network:
    version: 2
    renderer: networkd
    ethernets:
        ens3:
        dhcp4: no
        addresses:
            - 192.168.121.221/24
        gateway4: 192.168.121.1
        nameservers:
            addresses: [8.8.8.8, 1.1.1.1]
    
  4. 完成

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy