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? Thanks, -- Andrew McGregor - TXM.MOBI Ltd Launching: http://www.ariel-leve.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew McGregor
2007-Feb-05 14:08 UTC
Re: [Xen-users] xen cfg + route + passing a list of IP
Andrew McGregor wrote:> : ip route add ${FIRST_DOMU_IP} dev vif2.0 src ${DOM0_IP} > > What do I have to change, presumably in /etc/xen/xend-config.sxp to pass > a list of IP addresses?Rebooting Dom0 seems to have sorted it out. I''ll have another go later creating more DomU''s to work out why I needed to re-boot and find out what I was doing wrong. .. meanwhile, on each DomU I have to manually add the gateway route and restart networking: : route add -host x.x.x.1 dev eth0 Where is the best place to do this? And can it be a Dom0 level config? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users