Ana içeriğe geç

Ubuntu Ip Ayarlama

Ip ayarlaması aşağıdaki gibi yapılmalıdır

network:
  ethernets:
    ens32:
      addresses:
      - 192.168.1.31/24 # 192.168.1.31 sunucumuzun IP adresidir
      gateway4: 192.168.1.254 # gateway
      nameservers:
        addresses:
        - 195.175.39.50 # DNS1
        - 192.168.1.10 # DNS2
  version: 2

Kaynaklar

how to configure a static ip address in ubuntu server