From owner-freebsd-net@FreeBSD.ORG Fri May 18 23:03:18 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D320D106566B; Fri, 18 May 2012 23:03:18 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3DB5B8FC15; Fri, 18 May 2012 23:03:17 +0000 (UTC) Received: by werg1 with SMTP id g1so2770246wer.13 for ; Fri, 18 May 2012 16:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=Ts64pjJLP8Rnk6sSDyVNaE4nnhqRRGlfIbf4LIvA0dg=; b=VnU4XfM7khKyJROBb93e8fYA68fn1bUrzd8WsdNc4wRNDeHG1HTMpuqJj4+jdYDjeF SKlSq5pw2MhEVlPVEUzO8ZidumhDYbGkbAgAbC+tw3l3xsibQgc3r9GjVuGCqERXfpK9 82/js9w5gZlFxeHRdPLSwIF/GECWMlpLQKsdre++bhJOF3U26HR6ygzu/S9nf0sXr7d7 EpFmhwsTDF114tjgvKo+QVFOtoAGU3ueJfyqKeZmD0DDmp+rWzz4klbszXKAsNrA/KvY BcdZoHLGylJl6y1aRK0SC7ZDnZ0JBSzmgeFCw6EgBXeZJtcK/mvhVqBaHTWDgXt1dAoR YkYg== MIME-Version: 1.0 Received: by 10.180.20.137 with SMTP id n9mr5528892wie.3.1337382197196; Fri, 18 May 2012 16:03:17 -0700 (PDT) Received: by 10.216.163.136 with HTTP; Fri, 18 May 2012 16:03:17 -0700 (PDT) Date: Fri, 18 May 2012 19:03:17 -0400 Message-ID: From: Arnaud Lacombe To: FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1 Cc: Jack Vogel Subject: Multiple em(4) not working with qemu X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2012 23:03:18 -0000 Hi, It would seem that FreeBSD[0] is unable to deal correctly with qemu's networking when *more* than one e1000 interface is exported. Interfaces are identified as: # qemu -nographic -hda /vm/hdd-freebsd-i386 \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 CPU: QEMU Virtual CPU version 0.14.50 (2660.53-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x633 Family = 6 Model = 3 Stepping = 3 Features=0x781abf9 Features2=0x80800001 real memory = 134205440 (127 MB) avail memory = 112107520 (106 MB) [...] em0: port 0xc040-0xc07f mem 0xf2020000-0xf203ffff irq 11 at device 3.0 on pci0 em0: Memory Access and/or Bus Master bits were not set! em0: Ethernet address: 52:54:00:12:34:56 [...] em5: port 0xc180-0xc1bf mem 0xf2160000-0xf217ffff irq 11 at device 8.0 on pci0 em5: Memory Access and/or Bus Master bits were not set! em5: Ethernet address: 52:54:00:12:34:5b [...] # ifconfig em0 10.0.255.2 # ping 10.0.255.1 PING 10.0.255.1 (10.0.255.1): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down TX works , but RX seems broken. re(4) in the exact same configuration works fine. any ideas ? Thanks, - Arnaud ps: latest qemu shows the same behavior. [0]: at least FreeBSD 7.1 base + lem(4) v 1.0.3, confirmed on FreeBSD 9.0-RELEASE