WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] one DomU, 2 IP =>why ? any ideas,
From: Denis Cardon <denis.cardon@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 05 Aug 2008 18:30:11 +0200
Cc: Stéphane Cesbron <Stephane.Cesbron@xxxxxxxxx>
Delivery-date: Tue, 05 Aug 2008 09:30:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48987D17.30900@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <48987D17.30900@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (X11/20080213)
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

<Prev in Thread] Current Thread [Next in Thread>