From a terminal:

 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