> 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel