VMware Communities > VMTN > VMware Infrastructure™ > VI: ESXi 3.5 > Discussions

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
5 Replies Last post: Jun 27, 2009 7:52 AM by relegated
Reply

Debian guest NIC IP keeps changing

Jun 26, 2009 1:35 PM

Click to view relegated's profile Novice relegated 8 posts since
Jun 26, 2009

I have a Debian 5 guest running on ESXi 3.5 and for some reason, at random it changes its IP from what I defined it as (192.168.0.201) to 192.168.0.107 for some reason. I don't know if this is due to a misconfiguration in the guest, something to do with the VMware NIC, or what. I'm not sure exactly where to start in terms of finding the root cause, can anyone give me some suggestions. Not sure exactly where to check to see maybe if I have Debian misconfigured or maybe there are two NICs there or something.

Anytime this occurs I do /etc/init.d/networking restart and it switches back ot the correct IP address.

Reply Re: Debian guest NIC IP keeps changing Jun 26, 2009 2:34 PM
Click to view athlon_crazy's profile Expert athlon_crazy 507 posts since
Oct 28, 2007
It's happened previously on one of my Linux guest machines when I forgot to turn off dhcp client service on this machine. Make sure permanently turn off this service.


vcbMC-1.0.6 Beta
vcbMC-1.0.7 Lite
http://www.no-x.org

Reply Re: Debian guest NIC IP keeps changing Jun 26, 2009 2:35 PM
in response to: athlon_crazy
Click to view relegated's profile Novice relegated 8 posts since
Jun 26, 2009
Sorry, still semi-noob when it comes to Linux how would I go about doing that in Debian?
Reply Re: Debian guest NIC IP keeps changing Jun 26, 2009 2:52 PM
in response to: relegated
Click to view athlon_crazy's profile Expert athlon_crazy 507 posts since
Oct 28, 2007

check your /etc/network/interfaces (debian always check this file when reboot)

make sure it's something like this "iface eth0 inet static"

or you can kill using /etc/rc.d/rc.local

killall dhcp or dhcpcd or dhcp-client

vcbMC-1.0.6 Beta
vcbMC-1.0.7 Lite
http://www.no-x.org

Reply Re: Debian guest NIC IP keeps changing Jun 26, 2009 3:13 PM
in response to: athlon_crazy
Click to view relegated's profile Novice relegated 8 posts since
Jun 26, 2009

Ironically this just happened again, I just restarted networking which fixed it but I need to stop it.

Below is my /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.201
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

I tried to kill those processes and none of them were running.

Reply Re: Debian guest NIC IP keeps changing Jun 27, 2009 7:52 AM
in response to: relegated
Click to view relegated's profile Novice relegated 8 posts since
Jun 26, 2009
Happened again this morning :( anyone else ahve any idea?
Actions