How to create a non-nat lxd network bridge?
I have tried the below network configs, then ran sudo service networking reload
and lxc stop
and lxc start
for the container in question. I was unable to get the host and the containers to both be on the 10.1.1.1/24
subnet using a non-NAT bridge. When using the default lxdbr0
with NAT everything works fine.
I have tried the below configurations. First without assigning a subnet:
config:
ipv4.nat: "false"
ipv6.address: none
description: ""
name: testbr0
type: bridge
used_by:
- /1.0/containers/test
managed: true
The with assigning a subnet:
config:
ipv4.address: 10.1.1.1/24
ipv4.nat: "false"
ipv6.address: none
description: ""
name: testbr0
type: bridge
used_by:
- /1.0/containers/test
managed: true
When to above configurations were used the host lost network connectivity.
How to create a non-nat lxd network bridge (using lxd network)?