How to get LXD containers get IP from the LAN with routed network

How to use the routed NIC type in LXD. I show how to setup individual LXD profiles with all the configuration in setting up the static IP address in the container. You can use the profile and directly launch a container with routed NIC.

5 Likes
Best practices for assigning static IP address?
Passtrough public IP to LXC
3.19 and Routed networking mode configuration example needed
LXD using IPVLAN for public ip alias
LXD 4.13 on Debian 10 and IPv6
LXD and MACVLAN
IP Passthrough, Nictype: routed. All my pings are filtered
Static IP on LXD container
Assign external ip address to container
Network unreachable in LXD container configured to use OVH failover IP (with netplan)
How to make LXD give public IPv6 addresses to containers?
Configure LXD container with public IP and make it available online
How can i set static ip address for my lxc container (lxcbr0)?
Problem route host en lxd container
Simple bridge from lxd to hosts private network, with static IP
Container not start when mounting file into if it presents inside container - Too many levels of symbolic links
Assigning OVHcloud's Fallback IP to an LXD Container
Problem route host en lxd container
Routable IPv6 addresses for LXD cluster instances
Connecting LXD Containers to LAN in Centos 8
Bridging the wireless adapter with br0
LXD container static IP set up
How to properly setup public IP aliases to containers?
Assign external ipv6 address and internal ipv4 to container
Hetzner additional IP (bridged) working
IPv6 address is not appearing in 'lxc list' output
Container with WAN NAT and second NIC for LAN
I Interface with 2 addresses. How can I assign 1 of the addresses as the main gateway for an container?
Unable to connect to routed container after wifi is restarted
Going mad trying to configure unrouted static ipv6 for my containers
Network forward routing
Nictype: routed -- ipv6 prefix range?
Public IP for container on different subnet than gateway
Troubleshooting Network Issues with LXD Containers
Help in routing LXD container network
Public IP for container on different subnet than gateway
Setting a static IP address using network bridge
Bug? Static IP configured in ubuntu-20.04 container, but not applied due to Netplan config
3.19 and Routed networking mode configuration example needed