Setting my default gateway no longer works in MacOS
Hello. I'm having difficulty with some simple IP routing. This used to work with Yosemite (probably later versions, too, but I don't recall) and absolutely does not work in Big Sur-onwards on my newer Apple Silicon MacBook Pro.
Scenario: I have a virtual network provided by Desktop Parallels or some other VM. This VM has internet access. I want the host Mac OS to have internet access, therefore I setup the host VM as a router. With this setup on older MacOS versions I could get internet access merely by setting the VM's IP as the gateway.
Current behavior: When I use the same setup on this Mac, I can set the gateway (as reported by netstat -nr) and I can ping the gateway, but MacOS refuses to use it as the gateway. Other VMs on the same virtual network have no difficulty using the exact same gateway on the exact same IP. This is why I know the router is 100% working.
I even setup a NetworkService in /Library/Preferences/SystemConfiguration/preferences.plist and it also sets the default gateway correctly (again, confirmed with netstat -nr). Still, it refuses to route. Everything looks identical to the old setup; the only difference is the OS version and the ISA.
I'll include some screen shots:
MacBook, macOS 10.14