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] Not able to assing static IP to domU

To: Meghanand Acharekar <vasco.debian@xxxxxxxxx>
Subject: Re: [Xen-users] Not able to assing static IP to domU
From: "Ferreira, N. L. (Nuno)" <n.l.ferreira@xxxxx>
Date: Wed, 28 Jan 2009 12:28:53 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Jan 2009 03:29:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <90f2ab800901272245we143a25mcd30a4ac725e90c9@xxxxxxxxxxxxxx>
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: <90f2ab800901272245we143a25mcd30a4ac725e90c9@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
Hi Meghanand

How did you assigned the domU IP address?

First, you need to be sure that the IP address is available and DNS registered. For this, talk with the network administrator.
Second, after having a domU working, you must edit the following files:
1 - /etc/sysconfig/network
2 - /etc/sysconfig/network-scripts/ifcfg-eth0

Here's an example:

more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hostname.your.domain
GATEWAY=xxx.xxx.xxx.xxx

more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.xxx
#HWADDR=
IPADDR=123.243.2.1.12
NETMASK=255.255.255.0
ONBOOT=yes

Use the gateway and netmask as in your dom0. Hopefully, during domU installation, these values are taken from the dom0. Important, change the BOOTPROTO var to static (not dhcp). Also, take care of the Mac address (HWADDR var). If you want to use it, do not forget that it must match the one in your xen config file.
Reboot machine. And that's it.

Nuno
Meghanand Acharekar wrote:
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


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