Setting a Non-Persistent route in OS X

 sudo route -n add 172.168.17.0/24 192.168.1.27

Where 172.168.17.0/24 is the network and 192.168.1.27 is the gateway 

Written on June 11, 2010