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?