lxc

Public ip address in to lxc

lxc network set lxdbr0 ipv4.routes 94.130.21.165/32

Теперь можно добавить ip в контейнер

lxc exec c1 -- ip -4 addr add dev eth0 94.130.21.165/32 

Постоянное поднятие адреса

cat <<EOF > /etc/network/interfaces.d/50-cloud-init.cfg 
auto eth0
iface eth0 inet static
    address 94.130.21.165
    netmask 255.255.255.0
    gateway 10.10.10.1

    pre-up ip -4 link set dev eth0 up
    pre-up ip -4 route add dev eth0 10.10.10.1/32
EOF