Permanent Default Route

Hi,
We are running AIX 5.2.
Our default gateway used to be IP Address A.
Our new default gateway is IP Address B.

A netstat revealed that our default route was IP address A.
We manually added default route with IP address B and removed the default route with IP address A.

However, when we reboot the machine, the default route reverts back to IP Address A.

How do we go about making the default route to IP Adress B permanent?

Thanks in advance for your help.

The reason is you set the default route with something like a "route add ...", right?

This is fine, but is not persistent, because th information is not stored anywhere on a media which would survive reboot, just in memory. To change the default route permanently you would habe to change it in /etc/rc.inetd or - better yet in AIX - there and in the ODM too.

To do this issue a "chdev" (see the man page for chdev for details) or (this is effectively doing the same) issue "smitty tcpip", enter the "minimum configuration" screen and change it. (Pressing <F6> after filling out all the menus will show you the command SMITty would issue, so you could write it down and further use it in a script or so.)

bakunin

Your OS has files which are excuted when the system boots. You must put systems instructions, like your routing information, in those system boot files.

See this IBM info for AIX boot files.

Thanks for the help.