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

RE: [Xen-users] Not able to assing static IP to domU


  • To: "Meghanand Acharekar" <vasco.debian@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Tait Clarridge" <Tait.Clarridge@xxxxxxxxxxxx>
  • Date: Wed, 28 Jan 2009 09:14:31 -0500
  • Cc:
  • Delivery-date: Wed, 28 Jan 2009 06:16:34 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcmBE/N5mO1+khdySmyIhVPKx0cPAAAPlkkQ
  • Thread-topic: [Xen-users] Not able to assing static IP to domU

Hello,

What I do is pass the mac address in the config file after I boot up the domU 
and do an ifconfig ethX.

Then I make sure the HWADDR= line in the 
/etc/sysconfig/network-scripts/ifcfg-ethX is what ifconfig tells me for that 
interface.

For the domU config file it should be :

vif= [âbridge=bridgeInterface,mac=xx:xx:xx:xx:xx:xxâ]

for the networking interface line.

The reason behind this is that (I think) Xen assigns random MAC addresses when 
the domU is started.. but others will have to verify that.

Best,
Tait




From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Meghanand Acharekar
Sent: Wednesday, January 28, 2009 1:46 AM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Not able to assing static IP to domU

Hi,

I am quite new to XEN :) ,
I have installed XEN on RHEL5.3 server (dom0 is RHEL5) having ip address say 
123.234.1.11
After I installed domU on which is also RHEL5 server, assigned ip address 
123.243.2.1.12
After rebooting domU the static address is automatically wiped out, found it 
was searching for DHCP, also the n/w configuration file
i.e. ifcfg-eth0 PROTOCOL is set to dhcp,
The static address works fine when manually assigned but after every reboot it 
automatically replaces with DHCP.

No able to figure out the reason behind this


-- 
Thanks & Regards,

Meghanand N. Acharekar
" A proud Linux User "
Reg Linux User Â#397975
------------------------------------------
I was born free! No Gates and Windows can restrict my Freedom !!!


_______________________________________________
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®.