Originally posted by: ppereira
Hi; Yesterday I found that some of our servers had two default routes; two default gateways:
#netstat -nr
Routing tables
Destination Gateway Flags Refs Use If Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 172.26.45.250 UG 80 36458695 en3 - - =>
default 172.26.45.230 UG 71 32024159 en3 - -
127/8 127.0.0.1 U 25 42140072 lo0 - -
172.26.45.0 172.26.45.169 UHSb 0 0 en3 - - =>
172.26.45/24 172.26.45.169 U 9 149665378 en3 - -
172.26.45.169 127.0.0.1 UGHS 0 55 lo0 - -
172.26.45.255 172.26.45.169 UHSb 0 4 en3 - -
#odmget -q attribute=route CuAt
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,172.26.45.250"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,,0,172.26.45.230"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
These are lpars running AIX 6100-06-03-1048 on a P750 server.
I found this article about AIX Networking: http://www.ibm.com/developerworks/aix/library/au-aixnetworking/
It states that:
"One other potential problem that can occur with route manipulation is getting duplicate default routes. This usually happens when someone changes the default route on the primary network interface with the Minimum Configuration & Startup window. The new route takes effect immediately, but the ODM stores both the old and new default routes. Consequently, a reboot can cause the server to come up with two default routes, resulting in all sorts of headaches, visible with netstat -rn."
The default Gateway on this server was changed some time ago, so this could be the case.
My question is:
This article was written in 2010. Is this behaviour still valid?.
I tryed to duplicate this on AIX 6.1 TL09 and AIX 7.1 and it does not duplicates the default route.
Why the article says that this is a "potential problem"?. Is this a bug that happens sometimes?
Regards and thanks in advance.
Pablo.
#AIX-Forum