I have an issue where, each time I start my CentOS 5.6 VM, DHCP (I believe) is allocating my VM a different IP. I have the VM mapped as a Samba share in Windows 7 and this changes between 192.168.0.8, 192.168.0.9 and 192.168.0.10 each time meaning I have to mount a new drive in Windows each time.
This is also frustrating as I have to update my hosts file to point to a different IP each time and any projects I have pointing to the Samba share in my IDE are also gone.
Is there a way that I can set the IP to be the same each time in the Devernet Configuration under the
setup tool in CentOS?
[root@dev ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 08:00:27:f2:9f:d6 brd ff:ff:ff:ff:ff:ff inet 192.168.0.8/24 brd 192.168.0.255 scope global eth0
Here is a screenshot of the Devernet Configuration under the
setup utility in CentOS. I had Use DHCP on, but I have turned it off in this screenshot.