From owner-freebsd-virtualization@freebsd.org Wed Apr 25 19:07:02 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A38E8FAD0DC for ; Wed, 25 Apr 2018 19:07:02 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 21A3B6D9D1 for ; Wed, 25 Apr 2018 19:07:01 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [78.138.80.135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id w3PJ6xHH099857; Wed, 25 Apr 2018 21:06:59 +0200 (CEST) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (s1.omnilan.de [217.91.127.234]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 13089781; Wed, 25 Apr 2018 21:06:59 +0200 (CEST) Message-ID: <5AE0D1D2.9010201@omnilan.de> Date: Wed, 25 Apr 2018 21:06:58 +0200 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Paul Esson CC: "freebsd-virtualization@freebsd.org" Subject: Re: bhyve networking References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: ACL 130 matched, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [78.138.80.130]); Wed, 25 Apr 2018 21:06:59 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: 78.138.80.135; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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: Wed, 25 Apr 2018 19:07:02 -0000 Bezüglich Paul Esson's Nachricht vom 25.04.2018 20:44 (localtime): > Hi Folks, > > I'm struggling with networking when using vm-bhyve on FreeBSD 11.1-RELEASE. I have two NICs and have configured the first (igb0) on a management network and want to use the second (igb1) for VMs. However, I can't get any VM to communicate through the virtual switch if I have igb1 added to it. If I take the NIC out of the switch and configure an ipv4 address on it I can reach other hosts on the relevant subnet so I believe the poet set-up is valid. If I replace igb1 in the switch with igb0, I can then configure VMs on my management network and they have network connectivity. Can I only use Hello, a example of the command you used was nice. I guess you're using if_bridge(4) – the example would clarify. But there's ng_bridge(4) and vale(4) also, and others are using OpenVSwitch... > an interface that has an IP address configured at the host level before adding it to the switch? I've used other No. But the interface has to be in promisc mode. And some offloading functions must be disabled, but in case of if_bridge(4), it's done automagically (and reverted if you remove the interface again). Hth, -harry