Re: Establishing a Default Gateway

From: Adams Kevin J (kevin.adams@PHS.COM)
Date: Mon Jul 01 2002 - 18:10:55 EDT


Karl,

Route command is not permanent. You need to use Smitty route or chdev as
they update the ODM.

Use chdev as follows:

Chdev -l inet0 -a delroute=net|host,dest,gw
Chdev -l inet0 -a route=net|host,dest,gw

i.e., chdev -l inet0 -a route=net,0,192.168.0.1

You can display via lsattr -El inet0

Kevin
-----Original Message-----
From: Karl Jones [mailto:kjones@DBS1.COM]
Sent: Monday, July 01, 2002 1:41 PM
To: aix-l@Princeton.EDU
Subject: [aix-l] Establishing a Default Gateway

I manage an AIX 4.3 system that defaults to the wrong gateway after bootup.
I can use 'route' to change it but each time it reboots, I am off again. I
have checked both /etc/rc.net and /etc/rc.bsdnet to see if it is being set
there but it is not. I can certainly add the command into /etc/rc.net but
it seems like I am still missing something, especially given that I am not
sure if I should use "route add 0 XX.XX.XX.XX" or "route change 0
XX.XX.XX.XX" at that stage in the process.

Suggestions?

This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.

If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:02 EDT