Given the following:
Router <-----> Server [with multiple LXD containers]
How does one configure netplan so that:
- All LXD containers use Router's DHCP for IP addresses [i.e. bridge acts like a dumb switch]
- Server uses Router's DHCP for IP address [router allocates static IP of 192.168.1.64]
This:
network:
version: 2
renderer: networkd
ethernets:
enp0s31f6:
dhcp4: no
bridges:
npbr0:
interfaces:
- enp0s31f6
dhcp4: yes
is close except:
- LXD containers use bridge's DHCP and not Routers
- Server gets IP from the bridge
Here is how it used to be done under Network Manager
ip addr add dev npbr0 192.168.1.64/24
and a restart - which fixed things for me. – TrevTheDev May 15 '20 at 1:48addresses:
. – slangasek May 16 '20 at 7:14macaddress:
– TrevTheDev May 17 '20 at 9:07