How to get an LXC container on the Hetnzer cloud private network?

Is there any document/guide that describes how to get an LXC container on to a private network provided by Hetzner Cloud (i.e. the one which has IP addresses starting with 10.0.0.x)?

On my hetzner cloud VM, I can see two network interfaces:

ens10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 10.0.0.2  netmask 255.255.255.255  broadcast 10.0.0.2
        inet6 fe80::8400:ff:febd:d7d1  prefixlen 64  scopeid 0x20<link>
        ether 86:00:00:bd:d7:d1  txqueuelen 1000  (Ethernet)
        RX packets 7460846  bytes 73765405743 (73.7 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3881130  bytes 283593323 (283.5 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 95.216.218.253  netmask 255.255.255.255  broadcast 95.216.218.253
        inet6 fe80::9400:ff:febd:d7d0  prefixlen 64  scopeid 0x20<link>
        inet6 2a01:4f9:c010:71df::1  prefixlen 64  scopeid 0x0<global>
        ether 96:00:00:bd:d7:d0  txqueuelen 1000  (Ethernet)
        RX packets 111749  bytes 196201391 (196.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 110633  bytes 19843084 (19.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Is there any way for an LXC container to talk to the DHCP server running on 10.0.0.1, get a new IP address, and be able to route relevant incoming/outgoing traffic for the newly acquired 10.0.0.x address via the existing ens10 network?

Are you using LXC or LXD? You mention LXC but the category of the post is LXD?

Also, do you know if Hetzner allow multiple MAC addresses on their private network (its been discussed on this forum in the past that at least on their public network its not allowed).

Are you using LXC or LXD? You mention LXC but the category of the post is LXD?

I think I’m using lxd (I did an apt-get install lxd on Ubuntu 18.04 if that clarifies things)

Also, do you know if Hetzner allow multiple MAC addresses on their private network (its been discussed on this forum in the past that at least on their public network its not allowed).

What’s the exact question I need to ask the Hetzner support folks? The last time I reached out to them they give some answer that didn’t make any sense to me.

Also, just so that I understand, why would multiple MAC addresses be needed? Can’t the same MAC address acquire two IP addresses from a DHCP server?

You can try using the macvlan NIC type in the container to connect it to the private network interface using:

lxc config device add <instance> eth0 nic nictype=macvlan parent=<private network interface>

This will cause your container to appear on the private network with its own MAC address that is different from the LXD host’s. This is why I ask about whether its allowed or not in the Hetzner private network.