Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 08:14:30 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Boris <borisbsd@gmail.com>, freebsd-net@freebsd.org
Subject:   Re: bridge interface IP connectivity issue when using oce interface
Message-ID:  <599B8576.8030801@grosbein.net>
In-Reply-To: <CAJYdwgUDWbp=2ONfSJdpNzNb8h7NomnJQecMqivg1j-tAjLhSg@mail.gmail.com>
References:  <CAJYdwgUDWbp=2ONfSJdpNzNb8h7NomnJQecMqivg1j-tAjLhSg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?599B8576.8030801>