From owner-freebsd-virtualization@freebsd.org Wed Apr 25 21:15:56 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 D9C77FB0AB2 for ; Wed, 25 Apr 2018 21:15:55 +0000 (UTC) (envelope-from paul.esson@redstor.com) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on0607.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe09::607]) (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 EFBD66BD90 for ; Wed, 25 Apr 2018 21:15:54 +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=eNMeY4Vq31Oi5Gk4nw2eaxgylQIhqLivgZVFowLsl64=; b=W9qhw7VQLHiX6cszdNStaeFmOI1NhfBXA0zpjkaTJgnuXYoWq2EbF2Wpu6u9RBecw5Nu2dE/Tg1gzX7R7EN3dS9fRfhDC2RwzCr8pMeuj20V0vjilmiQRrOhcqcwnJKhQCND+Y17KTqWSHhEUWrWKw435WzlHjG1EZk7WAA3qyM= Received: from HE1PR0102MB2588.eurprd01.prod.exchangelabs.com (10.170.251.141) by HE1PR0102MB3274.eurprd01.prod.exchangelabs.com (10.167.124.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Wed, 25 Apr 2018 21:15:51 +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 21:15:51 +0000 From: Paul Esson To: "Rodney W. Grimes" CC: Harry Schmalzbauer , "freebsd-virtualization@freebsd.org" Subject: Re: bhyve networking Thread-Topic: bhyve networking Thread-Index: AdPcwrhbbh0fzB+SRv2CNcsNb6p8OQABdzsAAAJH2bQAAMHYgAABdrkY Date: Wed, 25 Apr 2018 21:15:51 +0000 Message-ID: References: , <201804252033.w3PKXv8M097827@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <201804252033.w3PKXv8M097827@pdx.rh.CN85.dnsmgr.net> 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; HE1PR0102MB3274; 7:At9mcFfddXJNOSzS8SRCqZ/WdGrH4AxjDL90Ra8wacDdEjTxI78uNH7rkdcZxDpd+u+SdIZKyPiTJlWAUP4xG1DDMtuOTXjKWN84rp6LgX0SN84hwC9gsHg9uRyxUvRffKKXpmN24/nUPVps3ksiV9zLGxTicyPN6++xM8fCUkmzAaLCuNf+znlb2ni9UDTn630ivREqd8Jy/SYXMhGeGJSWB1XvmVpja5OdbiKYPMX3mc9CiWh8T1Wm5yyahfCA 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:HE1PR0102MB3274; x-ms-traffictypediagnostic: HE1PR0102MB3274: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(788757137089)(81439100147899)(75325880899374)(21532816269658)(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231232)(944501410)(52105095)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:HE1PR0102MB3274; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0102MB3274; x-forefront-prvs: 06530126A4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(39850400004)(396003)(366004)(39380400002)(199004)(189003)(2906002)(59450400001)(2900100001)(3480700004)(3660700001)(221733001)(53546011)(25786009)(11346002)(26005)(105586002)(44832011)(966005)(446003)(6506007)(86362001)(7116003)(106356001)(476003)(3280700002)(606006)(478600001)(316002)(14454004)(74316002)(81156014)(5250100002)(4326008)(55016002)(97736004)(6116002)(6306002)(66066001)(99286004)(6246003)(3846002)(54906003)(6436002)(6916009)(5660300001)(9686003)(33656002)(229853002)(102836004)(486006)(8936002)(68736007)(53936002)(7736002)(236005)(8676002)(186003)(54896002)(81166006)(76176011)(7696005)(111123002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0102MB3274; H:HE1PR0102MB2588.eurprd01.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: redstor.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: dZoj660Gr72UEsMKK/2uM1KCszdMKjvPMl3BFl2T8CqIRAraQwhTwXsMjOE9+jPd7txtpr+K5pcr/FEDuAT27wzieTLG5ELBmd0/0TncXVNUUrlE1tw0PbtnFa94gq1ur23Qbt4F0FSnl9+rhgnQJTAVweOjjr6i5vTXbDj+3zJ0La5RKFsFrI2XO0WAA2IX spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 13616142-acf4-4519-7005-08d5aaf1b988 X-OriginatorOrg: redstor.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13616142-acf4-4519-7005-08d5aaf1b988 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2018 21:15:51.8578 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 24ac53ae-15a7-4211-afef-61d8f34e2571 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0102MB3274 Content-Type: text/plain; charset="us-ascii" 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 21:15:56 -0000 Hi Rod, Can you share a command line for that? I also tried presenting an access p= ort from my switch on a specific VLAN - not trimmed. Would I still have to= tag the interface on the guest in that scenario? Regards, Paul Esson | Redstor Limited t +44 (0)118 951 5235 m +44 (0)776 690 6514 e paul.esson@redstor.com ________________________________ From: Rodney W. Grimes Sent: Wednesday, April 25, 2018 9:33:57 PM To: Paul Esson Cc: Harry Schmalzbauer; freebsd-virtualization@freebsd.org Subject: Re: bhyve networking [ Charset windows-1252 unsupported, converting... ] > Hi Harry, > I?m simply using the ?vm? 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 = and tap interfaces are created automatically. > > The vm template file has these relevant parameters > > network0_type=3D?virtio-net? > network0_switch=3D?public? > > I?ve done nothing to the igb1 interface other than connect it to a physic= al switch on the appropriate VLAN. How have you configured your vtnet devices inside the guest? If your pass = a "trunked" ethernet device to a guest the guest is going to need to run vlan decapuslation. I do this= here, and it works fine. vtnet0: flags=3D8943 metric= 0 mtu 1500 options=3D80028 ether 58:9c:fc:0e:8b:ec nd6 options=3D29 media: Ethernet 10Gbase-T status: active lo0: flags=3D8049 metric 0 mtu 16384 options=3D600003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 nd6 options=3D21 groups: lo vlan48: flags=3D8843 metric 0 mtu 1= 500 ether 58:9c:fc:0e:8b:ec inet 192.168.48.38 netmask 0xffffff00 broadcast 192.168.48.255 nd6 options=3D29 media: Ethernet 10Gbase-T status: active vlan: 48 vlanpcp: 0 parent interface: vtnet0 groups: vlan ... > > 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-RELE= ASE. I have two NICs and have configured the first (igb0) on a management n= etwork 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 c= an 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 VM= s 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 befor= e 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 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org" > > -- Rod Grimes rgrimes@freebsd.= org