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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX 5.1 - Routing Table Not Persistent

Status
Not open for further replies.

aixer2004

Technical User
Mar 9, 2004
5
GB
I am trying to move a server from one network to another.

1) I connected the server to the new network

2) I ran the mktcpip command to change the ip address, interface, gateway etc..

3) I flushed the routing table

4) I set the default gateway

5) I set-up a route from a desktop pc and connected to the server without any problem

6) Now if I reboot the server the routing table changes. It now adds both the default gateways for the old network and the new network. It also adds two ip addresses from the old network. If I now try and connect to the server it fails. That applies to both ftp and telnet.

 
hi,
have you installed the server, or you have inerited ?
Some scripts called from /etc/inittab ?
bye
 
This is an inherited server. Which scripts are related to routing? Where do they read the routing info from. I can not find a file that contains this information, such as the default gateway and routes to other networks. DNS and hosts name info are in the /etc/hosts and /etc/resolv.conf respectively. I think the info is held in the config database, but I donot know how to view and edit this info
 
have you try with smitty chinet ?
otherwise try to suppress and recreate the interface ?



 
raztaboule, I have not tried using smitty chinet. Should I change the interface state to down then up or detach it? Is it safe to delete and re-add the interface?
 
plamb, I have looked at /etc/rc.tcpip. I can see anything that is related to routing
 
I found a solution to the problem and now the routing and gateway settings are persistent after a reboot.

I tried the suggestion from theycallmetim in the AIX - problem with gateway thread.
----------------------------------
The solution being :

check to ODM

odmget -q "name=inet0" CuAt

See if you have the "old" entry in there. Try to select just that entry

odmget -q "name=inet0 and value={whatever it says}" CuAt

Then delete it from the ODM

odmdelete -q "name=inet0 and value={whatever}" -o CuAt

Flush the route table, and re-add it with what you want.

----------------------

Thanks for you help

 
glad you find a solution.
just to answer the question about chinet and the delete of the interface.
yes i think you have to put the interface into a detach status before using chinet.
the supress is safe, cfgmgr will recreate . if not you have a hardware or driver problem.

but the solution from theycallmetim is more smart :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top