How do I change static routes?

e.g. Adding a route to host via gateway

chdev -l inet0 -a route=host,-hopcount,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,,

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.


I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: