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

Re: [Xen-users] Re: (vif-route) DomU IP troubles beyond Dom0



Dumbo.  There is no bug in multi-homed Dom0 as I was searching for.  I simply neglected to MASQ the Dom0s effectively.
Further to my advice for other Gentooists.  This Relates more specifically to those who wish to use Dom0s as DMZs, and route to local lan via eth0 and net via eth1 (pppoe).

the sys-apps/iproute package was emerged.
I changed the line in /etc/xen/scriptes/vif-route that refers to Dom0's IP address.  Now all the Dom0 vifX.0 /32 IPs have an IP address independent of eth0.

#/etc/xen/scriptes/vif-route
<snip>
#main_ip=$(dom0_ip)
main_ip=10.64.0.254

Dom0 net config
# /etc/conf.d/net
modules=( "iproute2" )
# Gigabit LAN
config_eth0=( "10.1.0.254/16" )
# PPPoE
config_eth1=( "adsl")
adsl_user_eth1="mango30"

DomU net config
#/etc/conf.d/net
modules=(       "iproute2" )
config_eth0=(   "10.64.0.1 peer 10.64.0.254" )

routes_eth0=(   "10.1.0.0/16 dev eth0"
                "10.64.0.0/24 via 10.64.0.254"
                "default via 10.64.0.254 dev eth0  mtu 1492"
)


On 01/04/2006, at 11:26 AM, Piers Dawson-Damer wrote:

Hello again,
 As it would have it, the routing is OK. The (a) problem was with my DSL router, not knowing the existence of the internally routed Xen network. A static link on the router did the trick.  As for the MacOS X 10.4.5 computers not responding to ping? who knows.

 The vifname= problem/bug persists though.
The interface works fine, there is just no sign of it in xentop.
I wonder if shorewall can specify interfaces my MAC address?

Nevertheless, for any other gentooists out there who may be interested, these are the Xen configs I used. USE & CFLAGS are on my previous post.

Dom0:
 - grub (with manual kernel compilation, no initrd, root on normal partition)
default 1
timeout 15

title=Gentoo Linux (2.6.15-gentoo-r1) [Genkernel]
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.15-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=/dev/sda2 dolvm2
initrd /initramfs-genkernel-x86-2.6.15-gentoo-r1

title=Gentoo Xen 3 (9029-r2) Linux (2.6.12-xen-r3)
root(hd0,0)
kernel /xen.gz dom0_mem=131072 physdev_dom0_hide=(00:04.0)(00:04.1)(00:06.0)(02:02.0) ro loopback.nloopbacks=1
module /vmlinuz-2.6.12.6-xen0 udev dolvm2 root=/dev/sda2 ro

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

 


Rackspace

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