Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




default config


Code Block
titlecode
collapsetrue
ubuntu@ip-10-0-11-132:~$ more /etc/netplan/50-cloud-init.yaml
# 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:
        eth0:
            dhcp4: true
            match:
                macaddress: 0a:0a:b0:22:e4:a8
            set-name: eth0


changes
apply changes
sudo netplan try