I'm using two boards, one running ubuntu desktop 18.04 and one running ubuntu server 18.04. In the desktop board, I have set a vlan by writing the /etc/network/interfaces
file as described below (I know it is incorrect to set auto by first and than set a static address, but it is working anyhow and it is not the topic of my question):
auto eno1
iface eno1 inet dhcp
auto eno1.1
iface eno1.1 inet static
address XX.XX.XX.91/23
netmask 255.255.254.0
gateway XX.XX.XX.1
vlan-raw-device eno1
auto lo
iface lo inet loopback
I need to do just the same setting: two addresses on a unique physical port using vlan, naming like eno1 and eno1.1, with only eno1.1 defined as a static address, for the board where ubuntu server is loaded. I have seen the /etc/network/interface
is not used at all and the networks must be set using /etc/netplan/50-cloud-init.yaml
. I wasn't able to have a working board just following netplan.io/examples for vlan setting. So I would appreciate if you could help me showing how NN-cloud-init.yaml should look like to do just the same as in my /etc/network/interfaces
file for the desktop
.
sudo lshw -C network
.