Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
The tap interface for the bhyve instance is not added to the bridge if the underlying Ethernet interface has an mtu other than 1500.
If I set mtu in bconfig->bhyvenic->nic1->nic_mtu to 1420, the interface is still not added to the bridge (I get the
running 'ifconfig bridge1 addm tap2' manually adds the tap2 to the bridge:
I suspect that the ifconfig addm is performed before the mtu of the tap interface is set. Ideally the mtu for the tap interface would be taken from the bridge
CBSD ( at least the latest versions ) inherits parent NIC MTU by default:
I'll now try to find an opportunity to reproduce your cases ( as I understand it, just change the physical interface MTU is enough). But before - can you update CBSD to latest version ( 11.2.0, e.g from the ports ) and after
@awrede We can test your assumptions by moving MTU settings block before 'addm' in /usr/local/cbsd/bhyve.subr (and re-run 'cbsd initenv' after this change)
Or you can download and apply this modification via:
!!! This is for CBSD 11.2.0 !!!
Sorry for the late reply. I updated to 11.2.0 and fetch'd the new bhyve.subr from the repo (per your suggestion) but that did not change the error behaviour. I then did git clone the repo and installed it (11.2.1d) and the mtu is now properly configure on the tap interface plus the tap interface is properly added to the bridge. Maybe just changing bhyve.subr in 11.2.0 is insufficient?…
On 2018-07-04 15:30 , Oleg Ginzburg wrote: @awrede <https://github.com/awrede> We can test your assumptions by moving MTU settings block before 'addm' in /usr/local/cbsd/bhyve.subr (and re-run 'cbsd initenv' after this change) E.g: e49f76d <e49f76d> Or you can download this modification via: |cd /usr/local/cbsd mv bhyve.subr bhyve.subr-orig fetch -o bhyve.subr https://raw.githubusercontent.com/cbsd/cbsd/e49f76d530ebe68fbb8cb2c8d037dedfb701f3aa/bhyve.subr cbsd initenv | !!! This is for CBSD 11.2.0 !!! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#301 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABKzU0fBZ0bfeTBzZR2Vh8n5-M86cd0Aks5uDRfbgaJpZM4VBToa>.