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-devel

Re: [Xen-devel] vif_addip

To: victor <victor@xxxxxxxx>
Subject: Re: [Xen-devel] vif_addip
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Fri, 05 Mar 2004 11:23:33 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Fri, 05 Mar 2004 11:25:24 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Fri, 05 Mar 2032 13:03:11 EST." <74F39D5F.3040805@xxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> I'm trying to add a new ip address to a running domain;
> 
> The domain starts:
> [root@xen xenolinux-2.4.24]# xc_dom_create.py -f /etc/xc/test -D vmid=1
> Parsing config file '/etc/xc/test'
> VM IP address(es)  : "169.254.1.1"
> VM cmdline         : 
> "ip=169.254.1.1:169.254.1.0:169.254.1.0:255.255.0.0::eth0:off root=/dev/xvda 
> ro 4 VMID=1"
> VM started in domain 1
> 
> Then I add the address:
> xc_dom_control.py vif_addip 1 0 192.168.250.60 
> But no address is added.

You've told Xen about the domain's new IP address, but you still
need to tell the domain itself in the normal way.

i.e. either log into the domain and "ifconfig eth0:1 192.168.250.60", or 
put the configuration runes in the
/etc/sysconfig/network-scripts/ifcfg-eth0:1 script (or whatever
the equivalent on your distribution is).

The linux kernel command line only allows you to configure a
single IP address, but if you don't need the 169.254.1.1 address
for other things you might want to configure the 192.168.250.60
address in the ip= line.

> This requires to have 2 hardware network(because 1 have only one)?

No, one will work just fine.


Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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