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

Default Gateway on HACMP

Status
Not open for further replies.

andy61

Technical User
Apr 19, 2006
59
GB
We are running HACMP 4.5 on AIX 5.1 We have recently been asked to move to a routed network and it means that we will have to set a default gateway. We know we can do this on non-clustered systems, but as it seems attached to an interface which may fail over, how do we manage it within HACMP ?
 
Do you mean that you have to reset the default gateway on failover? then you can use pre and post events.

Regards,
Khalid
 
OK, time to 'fess up. In my ten years of Unix admins I'd never set a default gateway. I can do it on our Numa kit easily via the routetab, but to set it in AIX it looks like you have to choose an interface to apply it to. So having run smitty mktcpip and setting the gateway on en1, I get
Code:
# lsattr -El inet0
hostname      test                             Host Name                        True
gateway                                          Gateway                          True
route         net,-hopcount,0,,0,1xx.1xx.241.201 Route                            True
bootup_option no                                 Serial Optical Network Interface True
rout6                                            FDDI Network Interface           True
authm         65536                              Authentication Methods           True
# netstat -r
Routing tables
Destination      Gateway           Flags   Refs     Use  If   PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
default          1xx.1xx.241.201   UGc       0        0  en1     -   -
127/8            loopback          U         5      114  lo0     -   -
1xx.1xx/16       test            U         1       52  en1     -   -
b01601           loopback          UGHS      2       19  lo0     -   -

Route Tree for Protocol Family 24 (Internet v6):
::1              ::1               UH        0        0  lo0 16896   -
From netstat, en1 is linked to the default gateway. So what I want to know is should there be a failure on en1 and the address fails to the standby adapter, what happens to the default gateway ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top