This post is the basic configuration needed to setup a DHCP VLAN interface on Ubuntu Server. 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. In this instance we are using VLAN100

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

2. Apply the configuration using sudo netplan apply . If the configuration fails to paste check your spacing a

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