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] network-route and vif-route setup help

Hi William,

I'm running public static routed network config on CentOS 5.3 largely 'out-of-the-box'. The problem was understanding how it all fit together as I'm no network engineer. What it came down to was this: comment the bridge stuff in xend-config.sxp, uncomment the route scripts.

In your VM config use vif=["ip=123.123.123.123"]

From within your DomU, set your IPADDR,.. under a routed config I've figured(?) the NETMASK and GATEWAY aren't really relevant but they must be legal.. so for instance if I have IP= 123.123.123.123, I set netmask 255.255.255.0 and GW to 123.123.123.1. That way from within the DomU when you run "route -n" you'll see:
0.0.0.0         123.123.123.1   0.0.0.0         UG    0      0        0 eth0

And in your Dom0, "route -n" will reveal:
123.123.123.123  0.0.0.0         255.255.255.255 UH    0      0        0 vifXXX.0

I've since changed to using libvirt, so I no longer use the Xen VM config files, but everything works the same way.

HTH


2009/10/6 Grant McWilliams <grantmasterflash@xxxxxxxxx>
William,
   I'm exhausted and need sleep but before I really put some effort into helping you let me just mention that unless you've recompiled your CentOS kernel than setting your DomU ip address in the DomU config file (vif=) won't work.  CONFIG_IP_PNP needs to be compiled in the kernel.

However, you're setting the IP inside the DomU manually so it should still be working. Now I'm going to sleep. I hope someone else has more insight. If not when I wake up I'll tackle it. :-)

Cheers!
Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use Windows."
Now they have two problems.



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

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