Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static route keeps re appearing 2

Status
Not open for further replies.

shaunh

IS-IT--Management
Jun 7, 2001
6
DE
Have static route that keeps re appearing on AIX server it is the old IP address of the server. Can delete using netstat but will appear after reboot
Checked hosts file resolv.conf and all options through smit with no joy.
System has weblogic installed and have checked all config scripts with no reference to old IP any ideas??
 
it has to be set by some script...

try:

cd /etc
grep -l route *

and then ransack the matched files...
 
Ah the magic of smit's ODM. I've been there.

smit tcpip
>Further Configuration
>Static Routes
>Flush Routing Table
"Flush the routes effective the next system restart"

 
It's probably in the ODM, which the route command (I'm assuming that's what you used, as opposed to netstat) doesn't effect.

The smit Flush Routing Table command also uses route.

The clean the ODM, as I just had the pleasure of doing about a month ago, follow this procedure, clipped from a comp.unix.aix posting:

Then it may be time to do some ODM editing.
You can get a list of the routes currently defined using the following:
odmget -q 'name=inet0 and attribute=route' CuAt
You will be able to identify the one you want to delete from the ip
address in the value field.
Then insert the contents of the value field (without the ""'s)into the
following:
odmdelete -o CuAt -q 'name=inet0 and attribute=route and
value=insert_here'

Please remember to back up the ODM files in /etc/objrepos before doing
any hacking and check the man pages for the commands used.


For added safety, I'd add a second odmget, using the same query as the delete, to be sure that it only describes a single entry. That way you can be sure you've typed the query correctly, then edit the command line to perform the delete.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
Thanks guys,
I think this is resolved now, I cleared out odm and also flushed all routing tables using smit rather than smitty
Now when I run netstat -nr there is no occurrence of old IP
Have rebooted and get same so hopefully all OK
Shaun
 
smit and smitty are the same program but one it text and one is graphical.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top