Node boots with different IP address from a fixed DHCP lease

asked 2016-10-20 05:29:55 -0500

rsalgadograd gravatar image

Hello, folks!

I'm currently experimenting a rare behaviour on my testing node which gets its IPv4 address through DHCP from a physically separated network. After rebooting the node it gets different IP address on the external bridge, this lease is fixed at DHCP server. It practically gets the right fixed address in about a 50% ratio. Distro is Ubuntu server 14.04 LTS.

I'm thinking about bridge utils / neutron-plugin-openvswitch-agent.

Content of /etc/network/interfaces:

...
auto em1
  iface em1 inet static
  address 0.0.0.0
...

address is set to "0.0.0.0" to force networking to set the interface up, required for bridging.

Content of /etc/network/interfaces.d/br-ex.cfg:

auto br-ex
iface br-ex inet dhcp

Sometimes I get X.Y.Z.189 (fixed) but sometimes it gets a different one. After reboot, it usually gets right. «br-ex» bridge interface inherits MAC address from the external iface (em1).

DHCP Server logs don't show any weird behaviour.

With all that given and explained:

Is anyone having this issue too? Shall I desist from using DHCP on node and setting it manually?

Thanks!

edit retag flag offensive close merge delete