Skip to contentSkip to conversation

vif_addip

DISCUSSION victor 2 participants 2 messages Mar 17, 2004

lore
Share & tools
lore

victor

author
#0 lore raw

I'm trying to add a new address to a runing domain. This is the domain:

[root@xen victor]# xc_dom_control.py list

Dom  Name             Mem(kb)  CPU  State  Time(s)
0    Domain-0          131072   0    r-      156
1    This is VM 1       65536   0    --       46

This is how I try to add the address:
xc_dom_control.py vif_addip 1 0 192.168.250.60

But no address apears:
eth0 Link encap:Ethernet HWaddr AA:00:00:2F:57:69

         inet addr:169.254.1.1  Bcast:169.254.255.255  Mask:255.255.0.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:97 errors:0 dropped:0 overruns:0 frame:0 TX packets:74 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:9906 (9.6 Kb) TX bytes:11273 (11.0 Kb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:737 (737.0 b) TX bytes:737 (737.0 b)

I suppose that the command "xc_dom_control.py vif_addip 1 0 192.168.250.60" only make internal routing. So I added manualy the ip address, but it still not answering.

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

#1 lore raw
Quoted 11 lines

This is how I try to add the address:
xc_dom_control.py vif_addip 1 0 192.168.250.60

But no address apears:
eth0 Link encap:Ethernet HWaddr AA:00:00:2F:57:69
inet addr:169.254.1.1 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:97 errors:0 dropped:0 overruns:0 frame:0 TX packets:74 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:9906 (9.6 Kb) TX bytes:11273 (11.0 Kb)

"xc_dom_control.py vif_addip" tells Xen about the new address, but you'll still need to configure it in the domain with ifconfig.

Quoted 8 lines

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:737 (737.0 b) TX bytes:737 (737.0 b)

Quoted 4 lines

I suppose that the command "xc_dom_control.py vif_addip 1 0 192.168.250.60" only make internal routing. So I added manualy the ip address, but it still not answering.

From within domain 1, did you ifconfig an alias with something

like the following?

ifconfig eth0:60 192.168.250.60 netmask 255.255.0.0

You should then be able to ping 192.168.250.60 from within domain 1, domain 0, and other the machines on the LAN.

Ian

Quoted 6 lines

Thank you.

Quoted 9 lines

-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

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