From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: User feedback Date: Sun, 07 Oct 2007 09:34:58 -0500 Message-ID: <4708EE92.3080808@codemonkey.ws> References: <20071007121109.13666.qmail@md.dent.med.uni-muenchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Wolfram Gloger Return-path: In-Reply-To: <20071007121109.13666.qmail-apX3yWB0kgwDWtnaHct1IhJ8j3Mt6MsSG9Ur7JDdleE@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Wolfram Gloger wrote: > Anthony Liguori writes: > > >> http://kvm.qumranet.com/kvmwiki/AnthonyLiguori/Networking >> >> This is for Ubuntu but it probably works in Debian too. It uses NAT >> instead of bridging and it is what I use on my desktop. >> > > Good advice, but why use a bridge interface _at all_ in this case? > Because sometimes I launch more than one VM and I also wanted to be able to use dhcp in the guest. But yeah, you're right, you could just preconfigure a bunch of tapN devices and that would solve the problem too. Regards, Anthony Liguori > I have the following in /etc/network/interfaces: > > iface tap0 inet static > address 192.168.0.1 > netmask 255.255.255.0 > pre-up iptables-setup-for-masq > > and in my qemu-ifup (or rather kvm-ifup): > > #!/bin/sh > /sbin/ifconfig $1 0.0.0.0 up > /sbin/ifup $1 > exit 0 > > and that is all.. No more need for any bridging. > > BTW I think it would be an important feature to also have > a qemu-ifdown / kvm-ifdown script to remove the iptables > rules after the tap device disappears. > > Regards, > Wolfram. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > kvm-devel mailing list > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/