From owner-freebsd-virtualization@FreeBSD.ORG Thu Oct 10 00:40:31 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 69644248; Thu, 10 Oct 2013 00:40:31 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pb0-x229.google.com (mail-pb0-x229.google.com [IPv6:2607:f8b0:400e:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3ADE121F7; Thu, 10 Oct 2013 00:40:31 +0000 (UTC) Received: by mail-pb0-f41.google.com with SMTP id rp2so1731819pbb.28 for ; Wed, 09 Oct 2013 17:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R81aFYVLjFfKuuqP5A2lolKhH9ncGvprZ6WrduhIV34=; b=EBZ0gUDNx8J2u9loaFLXRTy04oS9XP0EsdV2Xa4v+v5yjWQTvphqrtshrv7VxHtF0y PFz7/VHpU/Z/wEpZ4dRB8oEX8dr2yzMvqwCfKqV5pprTWyGbpVWW81KmSnJmv51PseXE lHbOezTTQ5iydIDXEQKK2Msc3/WD/MLaLeXQcpkbLceQ+kEeU8n1+ENgkdrNbjnCNIQi YghSa/kMnU2LlTJhhf3E250t3nKN2+6yil+yB+PYzE7V3TZVDCgFJArOgxSjmoWr+g48 sLlb6lk8H1Ne9KGMnkfigcRpsRnVMTd2BbqKZgFPVw3UPMAMY0Jr/YaWaGwfsJvUjstk leSA== MIME-Version: 1.0 X-Received: by 10.68.219.33 with SMTP id pl1mr10661071pbc.147.1381365630666; Wed, 09 Oct 2013 17:40:30 -0700 (PDT) Received: by 10.68.59.3 with HTTP; Wed, 9 Oct 2013 17:40:30 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Oct 2013 20:40:30 -0400 Message-ID: Subject: Re: Using wlan0 device over tap0 device with BHyve? From: Aryeh Friedman To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 00:40:31 -0000 I was refering to how it behavs in general and was using LAN NIC as an example of a non-virtual NIC On Wed, Oct 9, 2013 at 8:27 PM, Craig Rodrigues wrote: > Aryeh, > > In this case, I am not connected to the lan nic. From you look > at the ifconfig output from my previous posting, > you will see that my bridge0 interface only has two members: > > tap0 > wlan0 > > -- > Craig > > On Wed, Oct 9, 2013 at 4:36 PM, Aryeh Friedman wrote: > >> It sometimes doesn't like adding both the lan nic and tap to the bridge at >> the same time >> >> >> On Wed, Oct 9, 2013 at 7:30 PM, Craig Rodrigues >> wrote: >> >> > Hi, >> > >> > I am using this script to set up my tap device before >> > running BHyve: >> > >> > ================================================================= >> > #!/bin/sh >> > >> > >> > #iface=em0 >> > iface=wlan0 >> > >> > ifconfig bridge0 create >> > ifconfig tap0 create >> > ifconfig bridge0 addm $iface addm tap0 up >> > >> > sysctl net.link.tap.user_open=1 >> > sysctl net.link.tap.up_on_open=1 >> > ================================================================= >> > >> > >> > If I change the value of "iface" so that it uses em0 instead of >> > wlan0, networking works without a problem in my BHyve VM, and my BHyve >> VM >> > can send out a DHCP request, and get an address. >> > >> > However, if I set the value of "iface" to wlan0, to use the wireless NIC >> > in my laptop, then networking does not work in my BHyve VM, and >> > my BHyve VM tries to send out a DHCP request to get an address, but it >> > doesn't go out over the network. >> > >> > Any ideas why this isn't working for me? >> > >> > ================================================================ >> > em0: flags=8843 metric 0 mtu >> 1500 >> > >> > >> > >> options=4219b >> > ether e4:11:5b:55:a2:2c >> > nd6 options=29 >> > media: Ethernet autoselect >> > status: no carrier >> > iwn0: flags=8843 metric 0 mtu >> 2290 >> > ether 8c:70:5a:1b:92:54 >> > nd6 options=21 >> > media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng >> > status: associated >> > lo0: flags=8049 metric 0 mtu 16384 >> > options=600003 >> > inet6 ::1 prefixlen 128 >> > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 >> > inet 127.0.0.1 netmask 0xff000000 >> > nd6 options=21 >> > wlan0: flags=8943 >> metric 0 >> > mtu 1500 >> > ether 8c:70:5a:1b:92:54 >> > inet 10.2.1.110 netmask 0xffff0000 broadcast 10.2.255.255 >> > nd6 options=29 >> > media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >> > status: associated >> > ssid Blahblah channel 1 (2412 MHz 11g ht/20) bssid >> > 20:aa:4b:38:55:91 >> > country US authmode WPA2/802.11i privacy ON deftxkey UNDEF >> > AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 11 bmiss 10 >> scanvalid >> > 60 >> > bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 >> > protmode CTS ampdulimit 64k ampdudensity 8 -amsdutx amsdurx >> shortgi >> > wme roaming MANUAL >> > bridge0: flags=8843 metric 0 mtu >> > 1500 >> > ether 02:3e:3a:7a:d0:00 >> > nd6 options=9 >> > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 >> > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 >> > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 >> > member: tap0 flags=143 >> > ifmaxaddr 0 port 6 priority 128 path cost 2000000 >> > member: wlan0 flags=143 >> > ifmaxaddr 0 port 4 priority 128 path cost 33333 >> > tap0: flags=8902 metric 0 mtu 1500 >> > options=80000 >> > ether 00:bd:8e:95:01:00 >> > nd6 options=29 >> > media: Ethernet autoselect >> > status: no carrier >> > ================================================================ >> > >> > -- >> > Craig >> > _______________________________________________ >> > freebsd-virtualization@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> > To unsubscribe, send any mail to " >> > freebsd-virtualization-unsubscribe@freebsd.org" >> > >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to " >> freebsd-virtualization-unsubscribe@freebsd.org" >> > >