Add static routes to your Mac
For some reasons, I want to add self-defined static routes to my Mac. It's easy but requires root privilege.
Type this in your Terminal, for example:
sudo route -n add 192.168.2.0/24 172.31.30.5This syntax add a static route to your Mac's route table:
Destination: 192.168.2.0
Genmask: 255.255.255.0
Next hop: 172.31.30.5Hope this would help you guys.
Tom
MacBook Pro (15-inch, 2017), macOS High Sierra (10.13.6)