Antsle Forum

Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more. 

Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked. 

You need to log in to create posts and topics.

new Ubuntu 18.04 LXC Templates - using netplan instead of ifupdown

new Ubuntu 18.04 LXC Templates - using netplan instead of ifupdown

network bridging for ubuntu in documentation, antsle, and edgelinux need to be updated with instructions for netplan configuration.

This link can guide you through the basics of Netplan:

If you are trying to add a DHCP interface that can be accessed by other hosts on your network:

Edit /etc/netplan/10-lcx.yaml to look like the following:

  version: 2
    eth0: {dhcp4: true}
    eth1: {dhcp4: true}

You can test your configuration with the following command:

sudo netplan try

if everything works, you can then apply the configuration:

sudo netplan apply


thanks for your reply..... I have dealt with it myself for my purposes.....  My point, is that the Official Antsle Documentation for network bridging needs to be updated.

I'd like to bump this topic because I can't get it to work. I've been googling a lot and netplan isn't a very intuitive tool.  It's also not installed by default on the ubuntu_1804_LNX antlet template.

I've tried the simple steps provided above by @captainmccrank, but it didn't work for me.

Is there anybody who has gotten this to work and is willing to share their easy-to-follow steps?



I was able to get this to work. I'm guessing when you set it up as above you have multiple default routes? That was my problem, and the extra default route prevented me from connecting directly to my antlet from anywhere outside my local network.

[email protected]:~$ ip route list
default via dev ens3 proto dhcp src metric 100
default via dev ens8 proto dhcp src metric 100 dev ens3 proto kernel scope link src dev docker0 proto kernel scope link src linkdown dev br-25a85cdd81e9 proto kernel scope link src dev ens8 proto kernel scope link src dev ens8 proto dhcp scope link src metric 100
[email protected]:~$

I was able to solve this problem by setting up netplan to ignore routes from dhcp on the ens3 interface:

[email protected]:~$ cat /etc/netplan/50-cloud-init.yaml
            dhcp4: true
            dhcp4: true
                use-routes: false
    version: 2

This removed the extra route and I was able to connect to my antlet from outside.