This post is the basic configuration needed to setup a DHCP IP address on Ubuntu Server using a VLAN. It is VERY important to note that when using Netplan spacing must be exact. DO NOT use tabs to fill out spaces. Make sure to change the interface name to the interface presented in your installation otherwise this will not work.

  1. Netplan configuration which is located at /etc/netplan most files are named 00-installer-config.yaml
    ens160: {}
  version: 2
      dhcp4: true
      id: 99
      link: ens160

2. Apply the configuration using sudo netplan apply . If the configuration fails to paste check your spacing as everything must be spaced properly.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Back To Top