[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] xen cfg + route + passing a list of IP

  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Andrew McGregor <andy@xxxxxxxx>
  • Date: Mon, 05 Feb 2007 12:47:36 +0000
  • Delivery-date: Mon, 05 Feb 2007 04:47:30 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi there,

I've just set up Etch/Xen and my ISP requires routing instead of bridging. Dom0 has a single IP and I have a network x.x.x.x/24.

DomU couldn't route outside until I ran the following on Dom0:

: ip route add ${FIRST_DOMU_IP} dev vif2.0 src ${DOM0_IP}

I found it in this script, /etc/xen/scripts/vif-route.

: if [ "${ip}" ] ; then
: # If we've been given a list of IP addresses, then add routes from dom0 to
:     # the guest using those addresses.
:     for addr in ${ip} ; do
:       ${cmdprefix} ip route ${ipcmd} ${addr} dev ${vif} src ${main_ip}
:     done
: fi

What do I have to change, presumably in /etc/xen/xend-config.sxp to pass a list of IP addresses?


Andrew McGregor - TXM.MOBI Ltd
Launching: http://www.ariel-leve.com

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.