HOWTO: Setup PowerVM Shared Ethernet Adapter (SEA)
HOWTO: Get Zenoss to monitor AIX servers correctly
ISSLE: Integrated Stack SUSE Linux Enterprise for POWER
vgHome
Disclaimer
Privacy Policy and Contacts
About Rootvg
vgBookmarks
old Bookmarks
vgForum
Recent Posts
Old Forums
vgGuides
AIX6
FAQ
HOWTO
Service Bulletins
QuickRef AIX 5.2
QuickRef AIX 5.2 - Help
vgNews
Changing the default route
Home
Help
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
August 21, 2008, 07:52:15 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
ROOTVG
>
AIX
>
HACMP
>
Changing the default route
Pages: [
1
]
Go Down
Print
Author
Topic: Changing the default route (Read 4754 times)
0 Members and 1 Guest are viewing this topic.
JazzyG
New Member
Offline
Posts: 3
Re: Changing the default route
«
Reply #13 on:
April 11, 2007, 04:44:42 PM »
The easiest way to change the default route is to do the following:
1. Use smitty route->Remove Static Route or issue the route -f to flush the routing table.
2. You should see output to the screen informing you that routes are being removed.
3. Then issue the netstat -rn command. You should not see the default in the routing table.
4. Issue the smitty mkroute command. This is pretty straight forward and it will it will add this default route to the ODM database and make it permanent even after a system reboot.
5. Issue another netstat -rn command, you should see your new default route.
Logged
webmaster
Administrator
Jr. Member
Offline
Posts: 5
Re: Changing the default route
«
Reply #12 on:
November 13, 2006, 11:19:00 AM »
Quote from: mahdi on November 13, 2006, 07:09:03 AM
route net,-hopcount,0,,0,10.40.0.2 Route True
This line states that AIX has one default route, and the router address is 10.40.0.2
If, after a reboot, you have an extra route defined, you will need to check for programs and/or scripts that are being executed by /etc/inittab. Dont forget the programs started via the rc.d mechanism.
And, considering HACMP - verify the start script(s) of the applications, and also HACMP event customization.
Logged
mahdi
Jr. Member
Offline
Posts: 6
Re: Changing the default route
«
Reply #11 on:
November 13, 2006, 07:09:03 AM »
/ # lsattr -El inet0
hostname core1 Host Name True
gateway Gateway True
route net,-hopcount,0,,0,10.40.0.2 Route True
bootup_option no Serial Optical Network Interface True
rout6 FDDI Network Interface True
authm 65536 Authentication Methods True
And HACMP Version 5.1
Logged
Michael
Administrator
Hero Member
Offline
Posts: 464
Re: Changing the default route
«
Reply #10 on:
November 12, 2006, 11:20:39 AM »
please post the output of
lsattr -El inet0
If it isnt in there, then I'll try to think of other locations.
And, what version of HACMP are you using?
If the information is in the ODM standard editting is not recommended.
Logged
mahdi
Jr. Member
Offline
Posts: 6
Re: Changing the default route
«
Reply #9 on:
November 11, 2006, 06:56:50 AM »
the aix version is 5.1 ml4
i am searchinf to find the bad gateway on incorrect location as i said before ,i tried to search bad gateway with find command and find it ,but i can not find on which file and is it possible to edit file manully without damage to os files or no?
Logged
nath
Jr. Member
Offline
Posts: 8
Re: Changing the default route
«
Reply #8 on:
November 09, 2006, 02:58:50 PM »
What version of AIX?
Are you using etherchannel?
Try to set your default Gateway IP using "smit mktcpip"
Also look at lsattr -El inet0 for default gateway, and use chdev to change the Correct GW IP if the above didn't work
Logged
Michael
Administrator
Hero Member
Offline
Posts: 464
Re: Changing the default route
«
Reply #7 on:
November 09, 2006, 11:00:26 AM »
Did you do the lsattr command before the smitty command? Or only after?
If only after, the warning message is what I expected, as you had already removed the active route info.
To verify, you will need to do a reboot. If the 'bad' route returns, then the route is being added in a non-standard location.
I can help with that as well I expect, but first I need verification of the current situation.
Logged
mahdi
Jr. Member
Offline
Posts: 6
Re: Changing the default route
«
Reply #6 on:
November 09, 2006, 10:31:49 AM »
i did smitty netstat to delete 192.168.168.4 static route ,but return below message :
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Method error (/usr/lib/methods/chginet):
0514-009 Cannot delete an object from the device
configuration database.
0821-216 chginet: Cannot delete route (net,0,192.168.168.4) from CuAt.
/ # lsattr -El inet0 -a route
route net,-hopcount,0,,0,10.40.0.2 Route True
now what can o do
Logged
Michael
Administrator
Hero Member
Offline
Posts: 464
Re: Changing the default route
«
Reply #5 on:
November 09, 2006, 10:21:07 AM »
using
smitty netstat
you can delete individual static routes.
for destination enter either 0 (zero) or default, for router enter the address you want deleted (in your case 192.168.168.4)
As you have already deleted the entry from the kernel (live situation) you may get a warning/error message.
To verify before and after that the settings are removed:
lsattr -El inet0 -a route
an example output:
Code:
root@x054:[/var/spool/mail]lsattr -El inet0 -a route
route net,-hopcount,0,,0,192.168.129.124 Route True
route net,-hopcount,0,-netmask,255.255.255.0,,,192.168.1.0,192.168.129.100 Route True
Logged
mahdi
Jr. Member
Offline
Posts: 6
Re: Changing the default route
«
Reply #4 on:
November 09, 2006, 10:13:27 AM »
Hi
I said hacmp running ,because i can not remove device only,the route problem before the hacmp starts appear and not related to hacmp ,before the hacmp configured we have this problem and we must remove this routing from route table maunally but when the server start ( boot ) the old route come back
route table after booting:
/ # netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 10.40.0.2 UGc 0 0 en0 - -
default 192.168.168.4 .....
and i deleted by:
route delete default 192.168.168.4
and the problem solve until next booting
Logged
Michael
Administrator
Hero Member
Offline
Posts: 464
Re: Changing the default route
«
Reply #3 on:
November 09, 2006, 09:02:33 AM »
the command to modify default routes is:
smitty netstat
But, as this is HACMP related I need to know which address this (and I am moving topic to HACMP area of forums)
Is this a service (application) address, standby, admin, etc. etc.
And, actually, you should not be doing this while HACMP is active. imho as HACMP instructor.
This is kind of like when they close the roads you are using everyday without telling you that the roads have changed - and also not mentioning which roads are now open to use.
Logged
Michael
Administrator
Hero Member
Offline
Posts: 464
Re: Changing the default route
«
Reply #2 on:
November 09, 2006, 08:58:15 AM »
I forgot to say that we are running HACMP on server and can not do rmdev or cfgmgr ,is it possible explain how can i find routing information where stored ( file )
i tried to search "192.168.168.4" pattern in all files on aix like :
find . -type f -exec grep -i 192.168.168.4 '{}' \; -print
but this command do not show which file contains this pattern
please let me more
Logged
Michael
Administrator
Hero Member
Offline
Posts: 464
Re: Changing the default route
«
Reply #1 on:
November 09, 2006, 08:36:12 AM »
If you are adding an interface, the easiest way to change all the settings is to use:
smitty mktcpip
If you still have 'console' access I recommend the following:
* as root
# rmdev -dl en0
# rmdev -dl inet0
# cfgmgr
# smitty mktcpip
Normally you would need only to use smitty (or smit) mktcpip, but this will first remove all configuration settings for an interface (assuming you are using en0), base tcpip settings (including all static routes); create new empty configuration objects; and then configure them.
Lastly, verify manually (vi /etc/hosts) that your hostname is not showing up twice in /etc/hosts with old and new IP address.
regards, Michael
Logged
TestUser
Jr. Member
Offline
Posts: 7
Changing the default route
«
on:
November 09, 2006, 08:30:12 AM »
Hi
I have problem with routing table in aix,i have been changed ip address from 192.168.168.23 to 10.40.0.100 and need change default route ,i did it ,but when the server booted the old deafult gateway (192.168.168.4) back and create problem when client try to connect to server .
i can not find any file that may be has this ip address in it
please let me know how can fix this problem and delete old gateway from server ( which file must be check ) and can i use odm command and how?
regards,
Bashiri
Logged
Pages: [
1
]
Go Up
Print
Jump to:
Please select a destination:
-----------------------------
AIX
-----------------------------
=> Administration
=> Virtualization
=> Applications
=> HACMP
=> Security
=> AIX6 Implementation and Administration
-----------------------------
Hardware
-----------------------------
=> Power6
=> Power5
=> Power4
=> RS/6000 (Power III and earlier)
-----------------------------
Linux on POWER
-----------------------------
=> Planning and Installation
=> General
-----------------------------
Announcements
-----------------------------
=> Announcements
=> Discussion
Loading...
FastPath
New in AIX6
RBAC
Security
WPAR
Service Bulletins
InfoCenters
AIX 6.1
AIX 5.3
AIX 5.2
AIX 5.1
src="http://e1.extreme-dm.com/s10.g?login=jootvg&j=n&jv=n" />
Terms of Use
and
Privacy and Security Policies
Copyright 2001-2008 Michael Felt and ROOTVG.NET
HOWTO: Get Zenoss to monitor AIX servers correctly
ISSLE: Integrated Stack SUSE Linux Enterprise for POWER
AIX 6.1 Boot Messages - What's New?
HOWTO: Cleanup a PVMISSING disk
FAQ: System P Certification - how to become CATE!
HOWTO: Create a boot-only CD or DVD for AIX