Essas configurações devem ser colocadas no arquivo /var/lib/lxc/ContainerName/config
. Os valores possíveis dos parâmetros são especificados no no Manual . Eles pertencem a áreas diferentes, hostname, rede, console, ttys, ponto de montagem, cgroups, capacidades, ...
Na rede, você encontrará tudo o que precisa. Valores sensíveis são automaticamente produzidos para variáveis não especificadas. A parte mais relevante para sua pergunta é a seguinte:
lxc.network.name
the interface name is dynamically allocated, but if another name is needed because the configuration files being used by the container use a generic name, eg. eth0, this option will rename the interface in the container.
lxc.network.hwaddr
the interface mac address is dynamically allocated by default to the virtual interface, but in some cases, this is needed to resolve a mac address conflict or to always have the same link-local ipv6 address
lxc.network.ipv4
specify the ipv4 address to assign to the virtualized interface. Several lines specify several ipv4 addresses. The address is in format x.y.z.t/m, eg. 192.168.1.123/24. The broadcast address should be specified on the same line, right after the ipv4 address.
lxc.network.ipv4.gateway
specify the ipv4 address to use as the gateway inside the container. The address is in format x.y.z.t, eg. 192.168.1.123. Can also have the special value auto, which means to take the primary address from the bridge interface (as specified by the lxc.network.link option) and use that as the gateway. auto is only available when using the veth and macvlan network types.