Hi, I am new in the virtualization and xen world and have setup a gentoo based dom0 system with Xen 3.1 and 2.6.20 kernel successfully. In addition my server has one nic and a bunch of public ip addresses. The dom0 has one ip and each domU should get one public ip, too. I use the route network config of xen. I have several gentoo domUs running fine, they each have one public ip and have full access to the internet. Awesome! Now I try to setup a debian domU. The first test system boots fine with the same kernel which is used by the gentoo domUs. The only problem here is the network configuration since on boot the configuration of eth0 fails: Debian boot message: ----------------------- Setting up networking...done. Configuring network interfaces...SIOCADDRT: Network is unreachable Failed to bring up eth0. done. ------------------------ Gentoo domU /etc/conf.d/net (works well) -------------------- config_eth0=( "78.47.*.210 broadcast 78.255.255.255 netmask 255.255.255.255" ) routes_eth0=( "213.239.*.45" ) postup() { route add default gw 213.239.*.45 } Debian domU /etc/network/interfaces (does not work) -------------------- auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 78.47.*.213 broadcast 78.255.255.255 netmask 255.255.255.255 gateway 213.239.*.45 -------------------- 213.239.*.45 is the ip of dom0 and I guess it should be the gateway of my domUs. The ip range I can use for my domUs is 78.47.*.210 - 78.47.*.215 Maybe someone had a similar problem or just knows some advice for my situation. Thank You in advance, Jens _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Jens, On Mon, Sep 24, 2007 at 03:49:58PM +0200, Jens Kleikamp wrote:> Debian domU /etc/network/interfaces (does not work) > -------------------- > auto lo > iface lo inet loopback > > auto eth0 > iface eth0 inet static > address 78.47.*.213 > broadcast 78.255.255.255 > netmask 255.255.255.255 > gateway 213.239.*.45 > --------------------This network setup is completely wrong. 213.239.x.45 is not reachable from 78.47.x.213, also your netmask and broadcast do not match. 78.47.*.210 - 78.47.*.215 is not any kind of sensible IP allocation I have ever heard of if you really mean that * can be anything. If you are just trying to obscure your IP addresses then DON''T - it only makes debugging harder. Assuming you mean that * is some fixed value then 78.47.1.210 -> 78.47.1.215 would probably correspond to an 8 IP allocation, or /28. That would make your network address 78.47.1.208, your brodcast address 78.47.1.215, and your netmask 255.255.255.252. Give dom0 an IP in 78.47.1.209 -> 78.47.1.214 inclusive, then your domUs can use that as their default gateway. Cheers, Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andy Smith schrieb:> Hi Jens, > > On Mon, Sep 24, 2007 at 03:49:58PM +0200, Jens Kleikamp wrote: >> Debian domU /etc/network/interfaces (does not work) >> -------------------- >> auto lo >> iface lo inet loopback >> >> auto eth0 >> iface eth0 inet static >> address 78.47.*.213 >> broadcast 78.255.255.255 >> netmask 255.255.255.255 >> gateway 213.239.*.45 >> -------------------- > > This network setup is completely wrong. 213.239.x.45 is not > reachable from 78.47.x.213, also your netmask and broadcast do not > match. > > 78.47.*.210 - 78.47.*.215 is not any kind of sensible IP allocation > I have ever heard of if you really mean that * can be anything. If > you are just trying to obscure your IP addresses then DON''T - it > only makes debugging harder. > > Assuming you mean that * is some fixed value then 78.47.1.210 -> > 78.47.1.215 would probably correspond to an 8 IP allocation, or > /28. That would make your network address 78.47.1.208, your > brodcast address 78.47.1.215, and your netmask 255.255.255.252. > > Give dom0 an IP in 78.47.1.209 -> 78.47.1.214 inclusive, then your > domUs can use that as their default gateway.> > Cheers, > Andy > >Hello Andy, thank you very much for taking the time to read my mail. Sorry, I used the * just for not making my ip address public when I post to the mailinglist. It has fixed value. I am wonder why this setup does work properly on gentoo domUs but not on debian. Here is my gentoo domU ifconfig+route -------- eth0 Protokoll:Ethernet Hardware Adresse 00:16:3E:2F:62:C2 inet Adresse:78.47.*.210 Bcast:78.255.255.255 Maske:255.255.255.255 inet6 Adresse: fe80::216:3eff:fe2f:62c2/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:282 errors:0 dropped:0 overruns:0 frame:0 TX packets:375 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:24045 (23.4 Kb) TX bytes:45080 (44.0 Kb) lo Protokoll:Lokale Schleife inet Adresse:127.0.0.1 Maske:255.0.0.0 inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) -------- route -n Iface 213.239.*.45 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 213.239.*.45 0.0.0.0 UG 0 0 0 eth0 ----------------------------- My mission seems to be to get just that on debian too. I must admit that the network setup looks crazy, but why the hell does it working on gentoo domUs. Sorry for my bad english and thanks again Jens _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users