# - bof - #



# :a
# -  - #
# - uServer 26.04 - #
# - 00-installer-config.yaml - #
sudo vim /etc/netplan/00-installer-config.yaml;

# -  - #
# - When cloning the VM - #
Copy the new VM MacAddress into the config file 00-installer-config.yaml

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens18:
      addresses:
      - 192.168.1.220/24
      dhcp6: true
      match:
        macaddress: bc:24:11:43:73:e1
      nameservers:
        addresses:
        - 4.4.4.4
        - 8.8.8.8
        search: []
      routes:
      - to: default
        via: 192.168.1.1
      set-name: ens18
  version: 2


sudo netplan apply;



# :b
# -  - #
# - 00-installer-config.yaml - #
sudo vim /etc/netplan/00-installer-config.yaml;

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp1s0:
      dhcp4: no
      addresses: [192.168.1.103/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
  version: 2


sudo netplan apply;



# :c
# -  - #
# - 50-cloud-init.yaml - #
sudo vim /etc/netplan/50-cloud-init.yaml;

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp1s0:
      dhcp4: no
      addresses: [192.168.1.101/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
  version: 2


sudo netplan apply;



# - eof - #