From owner-freebsd-net@freebsd.org Tue Aug 22 01:14:50 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2A87DE1DCB for ; Tue, 22 Aug 2017 01:14:50 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 54C8C694C0 for ; Tue, 22 Aug 2017 01:14:49 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id v7M1EhrR037792 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Aug 2017 03:14:44 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: borisbsd@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id v7M1EYee088573 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 22 Aug 2017 08:14:34 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: bridge interface IP connectivity issue when using oce interface To: Boris , freebsd-net@freebsd.org References: From: Eugene Grosbein Message-ID: <599B8576.8030801@grosbein.net> Date: Tue, 22 Aug 2017 08:14:30 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2017 01:14:50 -0000 22.08.2017 7:49, Boris пишет: > Hi all, > > I have two environments. > > Environment A: > Server running fresh install of 11.1-RELEASE with bge physical NIC. > If I just configure a bridge interface, add a physical NIC which has > working connectivity, say bge3, and add an IP address on the bridge > interface in the same subnet as bge3, I can ping that IP from any host on > the LAN. > > Environment B: > Server running fresh install of 11.1-RELEASE with oce physical NIC. > If I just configure a bridge interface, add a physical NIC which has > working connectivity, say oce3, and add an IP address on the bridge > interface in the same subnet as oce3, I CANNOT ping that IP from anywhere > on the LAN. First, when you add member interfaces to a bridge, you should move all their IP addresses to the bridge. That is, bridge member interfaces should have no IP addresses, only bridge itself. Second, you should re-read bridge(4) manual page and use sysctl net.link.bridge.inherit_mac=1 and use physical NIC as first bridge member so that your uplink has no reasons to filter traffic of the bridge due to its fabricated MAC. > > I need the bridge as I would like to have bhyve VM's connected through that > bridge to the outside - plain bridged networking, no NAT or anything else. > Unfortunately, the VM does not have any connectivity to the outside. What > is weird is that I see the ARP entries in the VM for its gateway, I see the > MAC addresses in the bridge for the VM and the gateway, but no IP > connectivity seems to work - ping fails. > I disabled TX checksum and other things using 'ifconfig oce3 -txcsum -lro > -tso' to avoid messages around capabilities issues when adding a tap > interface which does not have the same features as the physical interface. > So far, I have not been able to get IP connectivity to the VM. > > In terms of documentation, I have used the handbook to create the VM: > https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html > > I have used the handbook to create the bridge: > https://www.freebsd.org/doc/handbook/network-bridging.html > > Under 30.6.1, it says, I should be able to configure the bridge with an IP > address which seems to fail when the 'oce' interface is used. > > Would anybody have any pointer at what to do next to help identify the > issue? > > Thanks ! > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >