Install with the jail tools instead of copying from examples.
Document topology and MAC derivation.
Relnotes: yes
Differential D59474
jib, jng: Move to usr.sbin and add manuals Authored by dteske on Sep 7 2026, 8:00 AM.
Details
Diff Detail
Event TimelineComment Actions I'm OK with "promoting" these example scripts into actual commands. However, since this is a user-facing change for Jails, I would suggest setting Relnotes: yes, as some users already install jib,jng into /usr/local/sbin. Comment Actions @jlduran (and others), I've sent a call-for-review (CFR) to freebsd-jail@ ML -- if no response over the next 4 weeks, I'll probably merge without additional feedback Comment Actions It makes sense for these to be official, though I don't have any particular feedback to offer on them (I've never actually run vnet jails myself). Comment Actions No, not at this time. Both jib and jng have race conditions when operating in-parallel. jib would need a lockf(1) around the ifconfig test, bridge create, addm of the parent, the bridge rename, and bringing up the bridge. After the bridge is up, epair create and addm of the epair can overlap. jib would need a lockf(1) around the getstats scan, mkpeer that consumes linkN, and secondary bridge. Not a difficult change. |