e.g. Adding a route to host 192.168.100.1 via gateway 192.168.0.1

chdev -l inet0 -a route=host,-hopcount,1,,192.168.100.1,192.168.0.1

also spotted the following, not sure of the effect of the differences at the moment :

chdev -l inet0 -a route=host,-hopcount,0,,,,,,-static,192.168.100.1,192.168.0.1

For a network, use “net” instead of host.

Of course, you could just use smitty tcpip – further configuration – static routes -add a route.

Using “route add” does not write to the ODM and therefore are removed if the server is rebooted.

Private