The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
configuring 2-gateways in linux jagdish.machhi@ Shell Programming and Scripting 1 09-20-2007 10:35 AM
Configuring 1 Nic card with 2 IP addresses and 2 seperate default Gateways in Solaris Remi SUN Solaris 1 04-11-2007 09:06 PM
setup of 2 gateways on AIX mynikolas AIX 2 06-06-2005 04:00 AM
2 gateways on the same unix box josramon IP Networking 2 04-12-2004 11:56 AM
gateways Deuce UNIX for Dummies Questions & Answers 2 11-12-2001 07:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-18-2009
ce9888 ce9888 is offline
Registered User
  
 

Join Date: Aug 2008
Location: Montreal, Qc, CA
Posts: 98
2 default gateways

I have a bunch of servers on AIX, we have at least 2 NIC cards in each of them.

We upgraded them from AIX 4.2 to AIX 5.2. Since then when we reboot a server its always coming up with 2 default gateways. Habitually this is not a problem but sometime its causing some connection problem. We remove the 2nd gateway manually and then everything is fine until next reboot. We never had this problem with AIX 4.2.

When I'm looking in "smitty tcpip" both nic card are pointing on the same gateway so I'm really confused about where this can come from. I tried to find out but I didnt have any luck. I'm planning to have a script to remove it at boot time but i would like to have a cleaner solution or at least to know why its happening.

Anyone having a clue where i can fix that ?
  #2 (permalink)  
Old 03-18-2009
shockneck's Avatar
shockneck shockneck is offline Forum Advisor  
No RISC - No Fun
  
 

Join Date: Mar 2008
Location: Infractor's boudoir
Posts: 355
A duplicate default route might lead to every second data packet getting lost.
A route that becomes active with reboot is either defined in the ODM or activated with the route add command from an rc file (most likely rc.net) that is called from inittab.
Check ODM routes with
Code:
# odmget -q attribute=route CuAt
Remove a route from the ODM with the chdev command that is accessible from the SMIT panel
Code:
 # smitty rmroute
If there are no entries in the ODM check for stanzas like
Code:
route add ....
in /etc directory.
  #3 (permalink)  
Old 03-18-2009
ce9888 ce9888 is offline
Registered User
  
 

Join Date: Aug 2008
Location: Montreal, Qc, CA
Posts: 98
Quote:
Check ODM routes with
Code:
# odmget -q attribute=route CuAt
Returns nothing:

Code:
# odmget -q attribute=route CuAt
#

Quote:
If there are no entries in the ODM check for stanzas like
Code:
route add ....
in /etc directory.
I checked :

Code:
# cd /etc
# for file in `find . -type f`
> do
>    grep "route" $file | grep -v "^#" 
> done
and found no "route add defautl" matching the 2nd default gateway

Thanks a lot for the reply.
  #4 (permalink)  
Old 03-18-2009
shockneck's Avatar
shockneck shockneck is offline Forum Advisor  
No RISC - No Fun
  
 

Join Date: Mar 2008
Location: Infractor's boudoir
Posts: 355
Quote:
Originally Posted by ce9888 View Post
[...]and found no "route add defautl" matching the 2nd default gateway[...]
A default route does not need to be set with the word "default".... Btw. how is the first default route set?
  #5 (permalink)  
Old 03-18-2009
ce9888 ce9888 is offline
Registered User
  
 

Join Date: Aug 2008
Location: Montreal, Qc, CA
Posts: 98
Quote:
Originally Posted by shockneck View Post
A default route does not need to be set with the word "default".... Btw. how is the first default route set?
When I "smitty tcpip", "minimum configuration", en0 or en1. I can see the default gateway address in that screen and it's the same address for both NIC cards.

Quote:
A default route does not need to be set with the word "default".... Btw. how is the first default route set?
There is no "route add" with the address specified as the second default gateway
  #6 (permalink)  
Old 03-18-2009
shockneck's Avatar
shockneck shockneck is offline Forum Advisor  
No RISC - No Fun
  
 

Join Date: Mar 2008
Location: Infractor's boudoir
Posts: 355
Quote:
Originally Posted by ce9888 View Post
When I "smitty tcpip", "minimum configuration", en0 or en1. I can see the default gateway address in that screen and it's the same address for both NIC cards.
Hm... First thought: The default gw that is visible in the minimum configuration is in the ODM. So we may have a problem here as you said odmget did not return any routing information.

Second thought: it would be wrong to use "minimum configuration" for more than one interface. This panel is meant to be used just once i.e. on first time configuration when setting hostname etc. For any other interface and all additional configuration the panel "further configuration" shall be used.

In case you did use minimum configuration twice I'd recommend to log in to the server through the primary interface. Use ifconfig to set the other (secondary) interface down, detach it, then rmdev -dl the en device to delete all information about it. Run cfgmgr to recreate the en device and then use "smitty tcpip, further configuration" to configure the second interface again.
  #7 (permalink)  
Old 03-19-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Staff  
Moderator
  
 

Join Date: May 2008
Location: /etc/objrepos
Posts: 297
Hi,
we had similar issues - and root cause was our nimserver - each time we connected to it, it put a second default route onto our box ... which can be savely removed.

Are you running etherchannel or do your nics have separate IPs?

Kind regards
zxmaus
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0