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/
Home Products Support Community News


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="]

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=, I set netmask and GW to That way from within the DomU when you run "route -n" you'll see:         UG    0      0        0 eth0

And in your Dom0, "route -n" will reveal: 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.


2009/10/6 Grant McWilliams <grantmasterflash@xxxxxxxxx>
   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. :-)

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