From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLkcd-0003Tu-HE for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:44:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLkcY-0003Md-R1 for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:44:27 -0500 Received: from [199.232.76.173] (port=53248 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLkcY-0003ML-MM for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:44:22 -0500 Received: from mail.gmx.net ([213.165.64.20]:60920) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NLkcY-0004nW-DS for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:44:22 -0500 Message-ID: <934349ECE007414393806679A9601B59@FSCPC> From: "Sebastian Herbszt" References: <154639B97697400DB13CEC80171644F1@FSCPC> <4B2B3F52.4020407@redhat.com> <90808A6C76FB43D7ACAAF92D940271C5@FSCPC> <4B2BEBF4.6070202@codemonkey.ws> In-Reply-To: <4B2BEBF4.6070202@codemonkey.ws> Subject: Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq? Date: Fri, 18 Dec 2009 22:43:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Gerd Hoffmann , Markus Armbruster Anthony Liguori wrote: > Sebastian Herbszt wrote: >> Gerd Hoffmann wrote: >>> On 12/18/09 07:12, Markus Armbruster wrote: >>>> "Sebastian Herbszt" writes: >>>> >>>>> The default iobase and irq for the ne2k_isa card are 0x300 and 9. >>>>> It should be possible to override both using the "-net" syntax like >>>>> "-net nic,model=ne2k_isa,irq=5,iobase=0x280". >>>> >>>> -device ne2k_isa,irq=5,iobase=0x280 >>> >>> Also needs vlan=0, otherwise you'll end up with an unconnected nic. >> >> Shouldn't vlan have a default value of 0 like it does with the "-net" >> syntax? > > No, you don't actually have to tie it to a vlan. Actually you have to else networking doesn't work at all. Without specifying "vlan" with the "-device" syntax you end up with vlan= and not vlan=0 with "info qtree". - Sebastian