Configuration

Configuration

configuration, deployment and architecture files

Set static IP

change /etc/netplan/50-cloud-init.yaml

Careful: do not use any tabulators, use 2 spaces for indentations

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  version: 2
  ethernets:
    ens160:
      dhcp4: no
      addresses: [10.0.0.100/24]
      gateway4: 10.0.0.1
      nameservers:
        addresses: [10.0.0.11,10.0.0.12]