Anyone know how to createa bridge network interface on MacOS v12.4 Mon?
I have tried:
sudo ifconfig bridge7 create
sudo ifconfig bridge7 addm en0
sudo ifconfig bridge7 up
In step two I get this:
ifconfig: BRDGADD en0: Resource busy
Short answer: see the Apple Support article "Bridge virtual network interfaces on Mac".
Long answer: On macOS, you generally shouldn't use ifconfig
to modify the network setup; that'll change the "live" interface state, but it tends to get overwritten by the system configuration daemon (configd
) setting things to the way it thinks they should be. Instead, use networksetup
or the System Preferences utility to change the system config database, and let configd
apply those changes to the live network state.
Unfortunately, networksetup
doesn't seem to have options to create and manage bridge interfaces, so you'll need to use System Preferences:
ifconfig
listing. – Gordon Davisson Jun 18 '22 at 20:52