sudo route add [-net|-host] IP netmask MASK gw GATEWAYIP dev INTERFACE
Fo the permanent route add the line to the /etc/network/interfaces:
up route add [-net|-host] IP/MASK gw GATEWAYIP dev INTERFACE
See also: How to add route in HP-UX (Ukrainian language)