Today I had to deal with a box which had HP-UX installed, this are some of the commands I found available to accomplish my job.
Setup static routes on HP-ux 10 and HP-UX 11
route add net 10.230.96.0 netmask 255.255.248.0 14.2.12.1 1
Do not miss the last "1"!
How to preserve the configuration after a reboot, add to file /etc/rc.config.d/netconf,
ROUTE_DESTINATION[1]="net 10.230.96.0"
ROUTE_MASK[1]="255.255.248.0"
ROUTE_GATEWAY[1]="14.2.12.1"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
ROUTE_SOURCE[1]=""
restart /sbin/rc2.d/S340net
[root@localhost]:# ping -o localhost02
PING localhost02.net: 64 byte packets
64 bytes from 14.2.12.5: icmp_seq=0. time=0. ms
64 bytes from 14.2.12.5: icmp_seq=1. time=0. ms
----localhost02.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
2 packets sent via:
14.2.12.5 - localhost02.net
14.2.12.5 - localhost02.net
14.2.12.1 -localhost.net
And what's the command equivalent to "ifconfig -a" from GNU/Linux, Solaris, {Free|Net|Open}BSD?:
netstat -ni