Hello, guys in this short post I share how to add a route in MAC OS for our labs.
sudo route add -net <Subnet/Mask> <Gateway>
Example
sudo route add -net 172.16.2.0/24 172.16.0.10
Verify the new route with ping, traceroute and, netstat -nr
![](https://otheritblog.wordpress.com/wp-content/uploads/2020/04/image-24.png?w=872)
![](https://otheritblog.wordpress.com/wp-content/uploads/2020/04/image-25.png?w=1024)
![](https://otheritblog.wordpress.com/wp-content/uploads/2020/04/image-26.png?w=888)