I rty to setup new Gentoo containers with static IP configured by LXC (4.0.4) config file. When container started I could’t see any IP adreses seted. Discovering this problem I understud, that IP originaly setted corrctly, but then container initilized and trying to get new address by dhcp, if not when Gentoo unseting IP from eth0. I think we need to use this setting (/etc/conf.d/net)
# Keep our kernel assigned address, unless the interface goes # down so assign another via DHCP. If DHCP fails then add a # static address determined by APIPA config_eth0="noop dhcp" fallback_eth0="null apipa"
from gentoo handbook https://wiki.gentoo.org/wiki/Handbook:X86/Full/Networking to setup network correctly.