You are not logged in.

#1 2019-06-18 15:17:07

amir.varasteh
Member
Registered: 2010-04-25
Posts: 12

VM takes a new IP from DHCP once a while

Hi,

I've a set of VMs (they are copies), and I work with them via SSH.
I sometimes couldn't connect to them. Then I found that their IP address is constantly chaning! What do you think?

DHCP has no problem, since other VMs (e.g., Windows) are fine.

Last edited by amir.varasteh (2019-06-18 15:17:26)

Offline

#2 2019-06-18 15:51:19

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: VM takes a new IP from DHCP once a while

DHCP might sometimes renew with a different IP address. If you're using DNS to connect, then DNS records will also need to be managed.

For Windows machines in an Active Directory environment, this happens automatically. For Linux interoperability, secure DDNS updates must be configured.


--
saint_abroad

Offline

#3 2019-06-18 16:35:41

chr0mag
Member
From: Vancouver, Canada
Registered: 2017-02-02
Posts: 94

Re: VM takes a new IP from DHCP once a while

amir.varasteh wrote:

I've a set of VMs (they are copies)

Are they exact copies? ie. do they have the same MAC address, or same /etc/machine-id ? If so, those copies might be fighting over the same IP.

Failing that, you'll need to post your DHCP server configuration, journal output of one of the VMs covering a period when the IP changes as well as the network config of one of the VMs.

Offline

Board footer

Powered by FluxBB