I starting working on LXD on ubuntu 18 and I am testing the possibility to assign a local IP on each containers to get LAN access.
I tried a method I saw on a poste her with macvlan.
my container is receiving an IP from the LAN dhcp but i am not able to ping anything from the container. From the host I am not able to ping it either, but this I don’t really care.
Weird thing : when I start tcpdump on the container i am able to ping it from another computer on the LAN.
I assigned the container to a new profile copied from default with these parameters :
root@lxd:/home/dom# lxc profile show test
description: Default LXD profile
this is my configuration on the host in /etc/network/interfaces:
iface ensp0s3 dhcp
the ip route in the container
default via 192.168.15.5 dev eth0 proto dhcp src 192.168.15.99 metric 100
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.99
192.168.15.5 dev eth0 proto dhcp scope link src 192.168.15.99 metric 100
can someone put me in the right direction?