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] set static ip in config file

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] set static ip in config file
From: ma qiang <maqiang1984@xxxxxxxxx>
Date: Mon, 1 Feb 2010 16:10:13 +0800
Cc:
Delivery-date: Mon, 01 Feb 2010 00:10:50 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=LH/I6sLBNFcAllM+UhCC6j506vHvmfH/+lDNgooQvqw=; b=canMrlI+5NOE9opSWu3shhjNZf2DH9cuFZElyd3k9MiME0fEDB72IPoHByXVOiQE2H Ogdok5/dXftPt3EWclsJ738BwdyFpZ+azobVrQpWc9ItbKbvIYCuQjbALtUQmzag7oi5 +kk74n0lHZHYRA6Me2fUdDjue0GnykFHTRfh8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=NoyvURrZTmhjWGlfrZiI5j+BAbdNcXKsPQ/2LiJoVAgN9+w1TWsdfP8RdjKQZEqXNN UrXH/TLolNjN9DnF0sr2Juv4g24KCq0epuL3a/TVTeFkQQakUBuYWmrXlRt9CvGnf0m9 FvozHh0Q7Qr866IYhffeS51kV8jEOYR7BMUSM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f1002010001r5f45c779s548cd82ab59c61e5@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: <2af70f431001312340m1c878638ifc0a86b24250cade@xxxxxxxxxxxxxx> <7207d96f1002010001r5f45c779s548cd82ab59c61e5@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hi,
Thanks very much.
I have many VMs to deploy and have to set static ip for each VM. So I
want to try some methods.
Can you send me some cases such as deploying custom bridge+iptables script?

Best Wishes
Qiang Ma

On Mon, Feb 1, 2010 at 4:01 PM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
> On Mon, Feb 1, 2010 at 2:40 PM, ma qiang <maqiang1984@xxxxxxxxx> wrote:
>> I set static ip==192.168.1.100 in vif, but the centos in domU still
>> use the dhcp.  To be noted here, I can set static ip in centos when I
>> connect to the console of domU.
>>
>> Who can tell me why and how to set static ip in config file.
>> Thanks a lot.
>
> Short answer: that's the way it works.
> There are cases when setting IP in domU config file can be used (for
> example when deploying custom bridge+iptables script), but that's
> kinda complicated. The short version is that using the default setup
> the setting is not used and has no effect on actual domU IP address.
>
> --
> Fajar
>

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

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