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

strange routing on AIX5

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

I have defined a second network interface ent1,extra to the existing one ent2:

Int IP_address Mask DNS Gateway Domain Speed Selected Type
--- ---------- ---- --- ------- ------ -------------- ------
en0 10.4.26.1 none 100BT
en1 10.4.27.183 255.255.254.0 10.4.26.1 Auto_Negotiation 100BT
en2 10.4.27.204 255.255.254.0 10.4.26.1 Auto_Negotiation GIGABIT

Now netstat shows both interfaces routing to the same addresses - do I miss something ?

# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups

Route tree for Protocol Family 2 (Internet):
default 10.4.26.1 UGc 0 0 en2 - -
10.4.26.0 10.4.27.204 UHb 0 0 en2 - - =>
10.4.26.0 10.4.27.183 UHb 0 0 en1 - - =>
10.4.26/23 10.4.27.183 U 3 544 en1 - - =>
10.4.26/23 10.4.27.204 U 5 1157 en2 - -
10.4.27.204 127.0.0.1 UGHS 7 994 lo0 - -
10.4.27.255 10.4.27.204 UHb 0 4 en2 - - =>
10.4.27.255 10.4.27.183 UHb 0 0 en1 - -
127/8 127.0.0.1 U 22 5645 lo0 - -

Route tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 217 lo0 16896 -

Is it a normal phenomena in AIX5,maybe related to some default network redunduncy ,activated once you define a second interface ?

Long live king Moshiach !
 
Going deeper into the redbook,I realize that I'd probably have to increase the cost (hopcount) on the new interface,so that the system will not choose it by default.
However I seem to fail to do it:

netstat -Cn
Routing tables
Destination Gateway Flags Refs Use If Cost Config_Cost

Route tree for Protocol Family 2 (Internet):
default 10.4.26.1 UGc 0 0 en2 0 0
10.4.26.0 10.4.27.204 UHb 0 0 en2 0 0 =>
10.4.26.0 10.4.27.183 UHb 0 0 en1 0 0 =>
10.4.26/23 10.4.27.183 U 1 770 en1 0 0 =>
10.4.26/23 10.4.27.204 U 3 1943 en2 0 0
10.4.27.204 127.0.0.1 UGHS 3 3021 lo0 0 0
10.4.27.255 10.4.27.204 UHb 0 4 en2 0 0 =>
10.4.27.255 10.4.27.183 UHb 0 0 en1 0 0
127/8 127.0.0.1 U 22 9405 lo0 0 0

Route tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 217 lo0 0 0



route change -if en1 -hopcount 2
writing to routing socket: Invalid argument
newroute: 2 host : ioctl returns 22
Invalid argument

Any idea what's wrong ?

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top