vif_addip
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 image : "/boot/xenolinux.gz"
VM ramdisk : ""
VM memory (MB) : "64"
VM IP address(es) : "169.254.1.1"
VM block device(s) : "vd:2,/dev/xvda,w"
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.
This requires to have 2 hardware network(because 1 have only one)?
I also tried to add a new ip from the config file:
[root@xen xc]# xc_dom_create.py -f /etc/xc/test -D vmid=1 vif_addip 1 0 192.168.250.60 Parsing config file '/etc/xc/test'
VM image : "/boot/xenolinux.gz"
VM ramdisk : ""
VM memory (MB) : "64"
VM IP address(es) : "169.254.1.1; 192.168.250.60"
VM block device(s) : "vd:2,/dev/xvda,w"
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 2
Thank you.
-------------------------------------------------------
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
Quoted 10 lines
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
Quoted 3 lines
Then I add the address:
xc_dom_control.pyvif_addip1 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.
Quoted 1 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