From owner-freebsd-virtualization@freebsd.org Wed Apr 25 20:12:22 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 1D51DFAF21F for ; Wed, 25 Apr 2018 20:12:22 +0000 (UTC) (envelope-from paul.esson@redstor.com) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0608.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::608]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 473217CFEC for ; Wed, 25 Apr 2018 20:12:21 +0000 (UTC) (envelope-from paul.esson@redstor.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redstorltd.onmicrosoft.com; s=selector1-redstor-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=j25rnFZQLoCeE6SwF00kRHjVf9rgPt8K6vQtlrZ4tHg=; b=IH79c2yA60KB8Adxi3U0hmCUV9KiOMBYmSZ9jKTNSlrKawgXBWIjr0RLOL2U5z8Y7xRYy+EM5mXsHW5sp0woFRUG7QB4lRnbMssXD8sZ9IFhAJqxjgctY7sBgu+EpNz9yOH1loiVKKCLIzqoJQ4etQ2C2H6sSiD6CNN153Hi/QI= Received: from HE1PR0102MB2588.eurprd01.prod.exchangelabs.com (10.170.251.141) by HE1PR0102MB3147.eurprd01.prod.exchangelabs.com (10.167.124.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Wed, 25 Apr 2018 20:12:16 +0000 Received: from HE1PR0102MB2588.eurprd01.prod.exchangelabs.com ([fe80::dd48:cd01:a067:e152]) by HE1PR0102MB2588.eurprd01.prod.exchangelabs.com ([fe80::dd48:cd01:a067:e152%13]) with mapi id 15.20.0696.020; Wed, 25 Apr 2018 20:12:16 +0000 From: Paul Esson To: Harry Schmalzbauer CC: "freebsd-virtualization@freebsd.org" Subject: Re: bhyve networking Thread-Topic: bhyve networking Thread-Index: AdPcwrhbbh0fzB+SRv2CNcsNb6p8OQABdzsAAAJH2bQ= Date: Wed, 25 Apr 2018 20:12:16 +0000 Message-ID: References: , <5AE0D1D2.9010201@omnilan.de> In-Reply-To: <5AE0D1D2.9010201@omnilan.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=paul.esson@redstor.com; x-originating-ip: [13.95.219.91] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0102MB3147; 7:nqeUgGOIPQCmRqsXFKHFawmTiwBoOPpYoz6/sBZ6B1Bh1CZG2o0Ay17qEuro6JA2qXTdw5+DyYr9v+Veja5FzIjUcf/r3TqMiABmCBegTbvHkXL09H+e7vWGx7mznv74H1mC8XrkzhjrRHul16t104VCrzgsG3WPR4uIvOqfodai1QgLsgsInT0OLwXZB6ELbOpDYipRjOasS12UG5CEShnPjta0H/LDeEuVIlAnq62WTcgAyCJe0RUCOsQNBSQR x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0102MB3147; x-ms-traffictypediagnostic: HE1PR0102MB3147: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(788757137089)(81439100147899)(21532816269658); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231232)(944501410)(52105095)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0102MB3147; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0102MB3147; x-forefront-prvs: 06530126A4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(366004)(39380400002)(346002)(376002)(189003)(199004)(105586002)(6436002)(59450400001)(106356001)(7116003)(6506007)(3480700004)(229853002)(81156014)(7696005)(76176011)(81166006)(2900100001)(74316002)(5660300001)(86362001)(186003)(102836004)(2906002)(25786009)(68736007)(11346002)(6246003)(53546011)(54896002)(6306002)(53936002)(8936002)(9686003)(55016002)(446003)(8676002)(486006)(3280700002)(14454004)(478600001)(44832011)(5250100002)(476003)(221733001)(316002)(99286004)(26005)(6116002)(6916009)(3846002)(66066001)(33656002)(7736002)(3660700001)(97736004)(4326008)(111123002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0102MB3147; H:HE1PR0102MB2588.eurprd01.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:3; A:1; received-spf: None (protection.outlook.com: redstor.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: +GLwzU7UMKKSnxxoWuFl/sFQJLjWYqw0aX8gsxqj9NZV+AubX4kG8KUC3dwKy4HkHkESIepR8ol+w4vmGBAA1dMqrn8Sxjg94sjPWxO8X3PdjpCMyGimKTHp26soxTqSktTJ+1qVjcrI6h3sr3N5r/b0Zb5FLMtjT/rXQiy/8c2c6NgAm/HneWif0YEu+zvC spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: afd099fd-3fbc-46d9-cf00-08d5aae8d76b X-OriginatorOrg: redstor.com X-MS-Exchange-CrossTenant-Network-Message-Id: afd099fd-3fbc-46d9-cf00-08d5aae8d76b X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2018 20:12:16.5313 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 24ac53ae-15a7-4211-afef-61d8f34e2571 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0102MB3147 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 20:12:22 -0000 Hi Harry, I=92m simply using the =93vm=94 utility as in vm switch create public vm switch add public igb1 That must make underlying calls to if config or equivalent as the bridge an= d tap interfaces are created automatically. The vm template file has these relevant parameters network0_type=3D=93virtio-net=94 network0_switch=3D=93public=94 I=92ve done nothing to the igb1 interface other than connect it to a physic= al switch on the appropriate VLAN. Regards, Paul Esson | Redstor Limited t +44 (0)118 951 5235 m +44 (0)776 690 6514 e paul.esson@redstor.com ________________________________ From: Harry Schmalzbauer Sent: Wednesday, April 25, 2018 8:06:58 PM To: Paul Esson Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve networking Bez=FCglich 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-RELEAS= E. I have two NICs and have configured the first (igb0) on a management net= work and want to use the second (igb1) for VMs. However, I can't get any V= M 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 v= alid. 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 us= e Hello, a example of the command you used was nice. I guess you're using if_bridge(4) =96 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