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

AIX--problem with gateway 1

Status
Not open for further replies.

aixquest

Technical User
Jan 15, 2001
53
US
I'm working on AIX 5.1L. I'm configuring a new server with a new gateway and IP, but everytime when the server rebooted, it changing its gateway. I suspect the server still remember the old gateway. I have used "configassist" to assist me changing the new IP and gateway, but the result is the same. Anybody know where I can find a file that contains gateway information or possibliy tell me why the gateway IP changing all the time after reboot? Thanks.
 
Sounds like something is stuck in your ODM from a past interface, you can see what it is with "lsattr -El inet0" but I cant remember how to fix it.

As a work around, add a static route (smitty route) with a DESTINATION ADDRESS = "default" and then the gateway in the appropriate field. I dont think this is the correct/IBM way to do this but it should work.
 
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.
 
simpler way:
smit mktcpip

set gateway address on the menu, and let it do the job.

Yes, default gateway is stored in the ODM. This attribute is related to inet0 device. You can query it like this:
lsattr -El ine0 | grep route

There must be a net route towards your old default gateway that is read and set on reboot.

--Trifo
 
trifo,

If there is a problem w/ the ODM, and you set it through smit like you say, it will always show back up on reboot, hence the problem that aixquest wrote about initially.
 
Here is the brute force method to delet from ODM if the ODM is the problem:
odmdelete -q "name=inet0 and value=net,-hopcount,1,-netmask,the actual
netmask,subnet,gateway" -o CuAt
If after you do this and it reappears after a reboot there is a script adding it in some where. You might try a "find" and grep for the ip string.
 
I didn't know how valuable the information was presented here. The problem is resolved. Thanks.
 
in smitty do a flush route and select yes yes for the 2 options. This has worked for never had any returem after a reboot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top