2 default gateways


 
Thread Tools Search this Thread
Operating Systems AIX 2 default gateways
# 1  
Old 03-18-2009
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  
Old 03-18-2009
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  
Old 03-18-2009
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  
Old 03-18-2009
Quote:
Originally Posted by ce9888
[...]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  
Old 03-18-2009
Quote:
Originally Posted by shockneck
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  
Old 03-18-2009
Quote:
Originally Posted by ce9888
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  
Old 03-19-2009
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
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

iptables / ip route packet routing with multiple gateways

Hi all. Linux noob here. I was hoping someone could help me with configuring some routing rules on my router, an Asus AC68. The router is connected to two gateways, wan0_gateway and wan1_gateway. I have rules set up in the router gui that will push all traffic from every IP other than my own... (0 Replies)
Discussion started by: Bishi
0 Replies

2. BSD

Two gateways

I have a web server running FreeBSD 7.2, i have configured two NICs in the following way: fxp0: 200.14.xxx.254 sk0: 200.12.xxx.4 gateway: 200.14.xxx.1 both ip addresses are public but only those requests to fxp0 are successful. I have tried configuring nat and binat in sk0 but it... (4 Replies)
Discussion started by: edgarvm
4 Replies

3. Shell Programming and Scripting

configuring 2-gateways in linux

Hi, I want to configure 2-gateways in Linux . Please tell me how I can achieve this. I am accesing 2-internet connection through these 2-gateways. So I am looking that if 1-gets down then also other one is working. Regards JAGDISH (1 Reply)
Discussion started by: jagdish.machhi@
1 Replies

4. Solaris

Configuring 1 Nic card with 2 IP addresses and 2 seperate default Gateways in Solaris

Hi ...... I'm trying to configure my Solaris servers with only one NIC card to have 2 IP addresses as well as 2 different default gateways. ( NOT to be confused with multi-pathing - with 2 physical IPs & 1 virtual ip) Thanks, Remi (1 Reply)
Discussion started by: Remi
1 Replies

5. AIX

setup of 2 gateways on AIX

Please, anybody help on resolving the following problem? I have 2 netwotks ( 10.0.0.0 and 10.0.11.0 ) on 2 different areas I need both networks to telnet the corresponding ethernet card. This is a prblem because AIX is configured with a default gateway. Please advice how to assign 2... (2 Replies)
Discussion started by: mynikolas
2 Replies

6. IP Networking

2 gateways on the same unix box

Hello there: I have these situation : I have a unix sco openserver 5.0.7 box and a windows server 2003. There is a main office and 2 remote office that log in trough a vpn tunnel. One tunnel From Main to remote1 and the other from Main to remote 2. Problem! The dsl connection i have is... (2 Replies)
Discussion started by: josramon
2 Replies

7. UNIX for Dummies Questions & Answers

gateways

I cannot change my gateway. I have five locations (simulated) and i try to ping another of my locations but it says host unreachable and it is showing the gateway as the host i'm pinging withs ip address. I have tried the route command but I couldn't get it to work. Any suggestions on how to... (2 Replies)
Discussion started by: Deuce
2 Replies
Login or Register to Ask a Question