[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] one DomU, 2 IP =>why ? any ideas,



Hi Stéphane,

I needed to switch one DomU from one IP to an other tonight.
I'm on centos 5.2 (Dom0 and DomU)
Therefore, I made a script using perl to make so. This script modify the IPADDR line in the following files :
- /etc/sysconfig/network-scripts/ifcfg-eth0
- /etc/sysconfig/networking/devices/ifcfg-eth0
- /etc/sysconfig/networking/profiles/default/ifcfg-eth0

modifying "/etc/sysconfig/network-scripts/ifcfg-eth0" should be enough I guess...

Then I reboot the VM and it worked just fine. The VM was still reachable using its old ip address. I thought that was because I do not to have rebooted the Dom0.
I put my IP back in the above files and rebooted the Dom0 and DomU.
Nevertheless, my DomU is still reachable from the 2 different IPs.

Any ideas/suggestions ?
I can't understand how it is possible. I tried to change the vif mac address but it is still the same.

Could you post the output of ifconfig? Are you sure your forme IP address was not bound to something else than eth0, like eth1 or eth2?

When deploying linux vm, one common mistake is that when you change the mac address, at boot up udev make a new rules and bind your new mac address on eth1 or eth2 and up (depending on the last time you cleaned up your /etc/udev/rules.d/xxx_net_xxx file. So eth0 is still bound to the old mac address which is not existing anymore.

I guess cleaning udev should be enough, otherwise could you please post your ifconfig output.

Cheers,

Denis




Regards,



--
Denis Cardon
Tranquil IT Systems
44 bvd des pas enchantés
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.56
http://www.tranquil-it-systems.fr



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.