From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uri Lublin Subject: Re: networking setup problem Date: Wed, 16 Jul 2008 17:00:32 +0300 Message-ID: <487DFF00.20409@qumranet.com> References: <487DBAD8.4000909@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: paolo pedaletti Return-path: Received: from mis011-2.exch011.intermedia.net ([64.78.21.129]:35377 "EHLO mis011-2.exch011.intermedia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757567AbYGPOAl (ORCPT ); Wed, 16 Jul 2008 10:00:41 -0400 In-Reply-To: <487DBAD8.4000909@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: paolo pedaletti wrote: > Hi, > I hope this is the right ml to submit my problem. > > Abstract: I can't setup 2 different network inside my VMs, one public > and one private. > > Scheme: > > eth0 --------- > ---------| proxy |---eth1 > | --------- | > H| | > O| eth0 --------- | > S|--------| web |--|eth1 > T| --------- | > | | > | eth0 --------- | > |--------| db |---eth1 > --------- > > > this is a "classic" LAMP, sparse on 3 VM > > 1) front end, proxy (apache2 in reverse with mod-security) > 2) application server, web (apache2 + php5) > 3) database (mysql5) > > (it's a test/backup environment) > > each VM must have 2 network card: > eth0 on the local network, in bridge with the host physical eth0 > eth1 on the virtual private network, for internal communications between > them > > saying that, ... it doesn't work :-( > (linux ubuntu 8.04 2.6.24-19-generic, kvm-62) > > these are the command lines: > > kvm -name PROXY > -net nic,vlan=0,macaddr=00:18:BE:EF:17:2A,model=rtl8139 > -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh > -net nic,vlan=1,macaddr=00:18:BE:EF:17:2B,model=rtl8139 > -net user,vlan=1,ifname=dmz0,script=./qemu-ifup.sh > -drive index=0,media=disk,if=scsi,file=./ubuntu-server.PROXY.root,boot=on > -drive index=1,media=disk,if=scsi,file=./ubuntu-server.PROXY.home > -drive index=2,media=disk,if=scsi,file=./ubuntu-server.PROXY.swap > > kvm -name WEBAPP > -net nic,vlan=0,macaddr=00:18:BE:EF:17:1A,model=rtl8139 > -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh > -net nic,vlan=1,macaddr=00:18:BE:EF:17:1B,model=rtl8139 > -net user,vlan=1,ifname=dmz0,script=./qemu-ifup.sh > -drive index=0,media=disk,if=scsi,file=./ubuntu-server.WEB.root,boot=on > -drive index=1,media=disk,if=scsi,file=./ubuntu-server.WEB.home > -drive index=2,media=disk,if=scsi,file=./ubuntu-server.WEB.swap > > kvm -name DB > -net nic,vlan=0,macaddr=00:18:BE:EF:17:0A,model=rtl8139 > -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh > -net nic,vlan=1,macaddr=00:18:BE:EF:17:0B,model=rtl8139 > -net user,vlan=1,ifname=dmz0,script=./qemu-ifup.sh > -drive index=0,media=disk,if=scsi,file=./ubuntu-server.DB.root,boot=on > -drive index=1,media=disk,if=scsi,file=./ubuntu-server.DB.home > -drive index=2,media=disk,if=scsi,file=./ubuntu-server.DB.swap > Does using a different ifname help ? PROXY: ifname=tap2 and dmz2 WEBAPP: ifname=tap1 and dmz1 DB: ifname=tap0 and dmz0 Also check route on guests.