Setting Dual Ip address on LPAR AIX 5.3

Hi Guys,

Can somebody help me how to add and activate addtional ip address on AIX.

My server is IBM p5-570
i already set ipadress on ent1
ent0 -- 192.168.206.105 ( default )
ent1 -- 192.168.0.89 (additional)

i can ping from outside to 192.168.0.89 but i can not telnet or ftp.
for 192.168.206.105 is no problem.

is there anything else that i can set the configuration ?

thanks,

I trust you have a default route setup for the 192.168.206.105 address. However what can be contacted from the 192.168.0.89 addresses. Perhaps do a netstat -rn and list the output here. Also are there any firewalls to consider and are you on the same default subnet where you are issuing the telnet. How are you getting on the server, from a CP?

thanks for your reply,

there is result for netstat -rn
for your information ip address change from 0.89 to 0.91
yes, the server is behind firewall for 192.168.206.105
but for 192.168.0.91 outside firewall
If i try telnet from another server with the same segment like 0.24 and telnet to 0.91 --> yes it can

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

Route Tree for Protocol Family 2 (Internet):
default 192.168.206.1 UG 5 13708 en0 - - =>
default 192.168.0.1 UG 0 0 en1 - -
127/8 127.0.0.1 U 6 116 lo0 - -
192.168.0.0 192.168.0.91 UHSb 0 0 en1 - - =>
192.168.0/24 192.168.0.91 U 3 517380 en1 - -
192.168.0.91 127.0.0.1 UGHS 0 0 lo0 - -
192.168.0.255 192.168.0.91 UHSb 0 0 en1 - -
192.168.206.0 192.168.206.105 UHSb 0 0 en0 - - =>
192.168.206/24 192.168.206.105 U 4 1886 en0 - -
192.168.206.105 127.0.0.1 UGHS 0 0 lo0 - -
192.168.206.255 192.168.206.105 UHSb 0 0 en0 - -

Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 16 lo0 - -

regards,

cahyo

Straight away I can your first problem. You have two default routes defined and AIX does not work well with this so you need to delete one of these and I suggest you delete this one - default 192.168.0.1 UG 0 0 en1 - -. Now if the route from the 192.168.0 subnet is through the 192.168.206.1 gateway the telnet will work. Otherwise you will need to setup a gateway declaration for this subnet. Try the telnet to see if it works.

thanks for your reply

i already delete the default 192.168.0.1 but the result is same
now netstat -rn is :

Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
default 192.168.206.1 UG 2 5112 en0 - -
127/8 127.0.0.1 U 6 116 lo0 - -
192.168.0.0 192.168.0.91 UHSb 0 0 en1 - - =>
192.168.0/24 192.168.0.91 U 0 43 en1 - -
192.168.0.91 127.0.0.1 UGHS 0 0 lo0 - -
192.168.0.255 192.168.0.91 UHSb 0 0 en1 - -
192.168.206.0 192.168.206.105 UHSb 0 0 en0 - - =>
192.168.206/24 192.168.206.105 U 4 749 en0 - -
192.168.206.105 127.0.0.1 UGHS 6 125 lo0 - -
192.168.206.255 192.168.206.105 UHSb 0 4 en0 - -

Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 16 lo0 - -

is this because of 1 ethernet is inside firewall and 1 ethernet outside firewall ?
we are using AIX version 5.3

regards,

Cahyo

Issue here is the routing.

Anything routed to the subnet 192.168.0/24 will go out on en1. Anything else will go via en0. So a ping arriving from outside the subnet above will be replied to via the other interface.

This isn't an AIX problem this is TCP/IP working as designed. Reading up on Routing tables should help you sort out your problem.

how many gateway's you have for your network..
is it one or two...
from your netstat -nr, it is showing that two.

is the gateway address are defined correct?

do one thing assign same gateway to both en0,en1 using mktcpip command and try again..

thanks