Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In the LXC config file we can specify an IP address for a container:

lxc.network.type=veth
lxc.network.link=br0
lxc.network.ipv4 = 10.1.0.35/16
lxc.network.flags=up
lxc.network.hwaddr= 00:16:3e:24:26:33

But if the container has the default configuration of DHCP, what's going to happen:

# The primary network interface
auto eth0
iface eth0 inet dhcp
  • Does LXC act as a DHCP server for the container?
  • Will the two configurations conflict with the container broadcasting requests for an IP before/after LXC attempts to manually configure the interface?
  • Will LXC simply override whatever is in the containers configuration for eth0?
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.