QNX4 TCPIP5.0 problem (migrating IP address)

Hello,
I would like to achive some kind of HW redundancy with TCPIP networking.
Computer should have 2 ethernet interfaces, each of them should be connected to different SWITCH. After the switch there should be router / routers.
1 IP address is assigned to this computer. It should be used on “healthy” ethernet card. If given card/cable/switch goes down, this IP address should “migrate” to other ethernet card in this computer.
Scenario:

Everything is OK:
En1: 192.168.100.1
En2: unassigned

Cable 1 disconnected:
En1: unassigned
En2: 192.168.100.1

Cable 1 connected, and cable 2 disconnected:
En1: 192.168.100.1
En2: unassigned

I tried following (on computer C1 and computer C2):

C1: ifconfig en1 192.168.100.1 up
C2: ping 192.168.100.1 … OK
C1: ifconfig en1 down
C1: ifconfig en1 delete
C1: ifconfig en2 192.168.100.1 up
C2: ping 192.168.100.1 … BAD!!!

On C2 output of “arp -a” shows for 192.168.100.1 good MAC address On C1 output of “netstata -in” shows incrementing counter of IPKTS on en2, but OPKTS on en2 doesn’t change.
Is there any problem with my setup and goal?


Thanks for help, Pavol Kycina

Perhaps you need to reconfigure the routing.
What does netstat -rn show on c1.
Try to delete and restore the default route.

On Wed, 24 Aug 2005 07:24:20 -0500, Pavol Kycina
<xkycina@microstep-hdo.sk> wrote:

Hello,
I would like to achive some kind of HW redundancy with TCPIP networking.
Computer should have 2 ethernet interfaces, each of them should be
connected to different SWITCH. After the switch there should be router /
routers.
1 IP address is assigned to this computer. It should be used on
“healthy” ethernet card. If given card/cable/switch goes down, this IP
address should “migrate” to other ethernet card in this computer.
Scenario:

Everything is OK:
En1: 192.168.100.1
En2: unassigned

Cable 1 disconnected:
En1: unassigned
En2: 192.168.100.1

Cable 1 connected, and cable 2 disconnected:
En1: 192.168.100.1
En2: unassigned

I tried following (on computer C1 and computer C2):

C1: ifconfig en1 192.168.100.1 up
C2: ping 192.168.100.1 … OK
C1: ifconfig en1 down
C1: ifconfig en1 delete
C1: ifconfig en2 192.168.100.1 up
C2: ping 192.168.100.1 … BAD!!!

On C2 output of “arp -a” shows for 192.168.100.1 good MAC address On C1
output of “netstata -in” shows incrementing counter of IPKTS on en2, but
OPKTS on en2 doesn’t change.
Is there any problem with my setup and goal?


Thanks for help, Pavol Kycina


Using M2, Opera’s revolutionary e-mail client: http://www.opera.com/m2/

Pavol Kycina wrote:

Hello,
I would like to achive some kind of HW redundancy with TCPIP networking.
Computer should have 2 ethernet interfaces, each of them should be
connected to different SWITCH. After the switch there should be router /
routers.
1 IP address is assigned to this computer. It should be used on
“healthy” ethernet card. If given card/cable/switch goes down, this IP
address should “migrate” to other ethernet card in this computer.
Scenario:

Everything is OK:
En1: 192.168.100.1
En2: unassigned

Cable 1 disconnected:
En1: unassigned
En2: 192.168.100.1

Cable 1 connected, and cable 2 disconnected:
En1: 192.168.100.1
En2: unassigned

I tried following (on computer C1 and computer C2):

C1: ifconfig en1 192.168.100.1 up
C2: ping 192.168.100.1 … OK
C1: ifconfig en1 down
C1: ifconfig en1 delete
C1: ifconfig en2 192.168.100.1 up
C2: ping 192.168.100.1 … BAD!!!

Try deleting the ARP cache on C2 before doing the ping. If that ‘fixes’
the issue, you need to send more gratuitous arps out from C1 after
changing the IP address to ensure people on the ethernet segment update
their ARP caches with the new MAC.

\

Cheers,
Adam

QNX Software Systems
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster

Didn’t help, see the other post.

Pavol Kycina

“Adam Mallory” <amallory@qnx.com> wrote in message
news:deinus$lpk$1@inn.qnx.com

Pavol Kycina wrote:
Hello,
I would like to achive some kind of HW redundancy with TCPIP networking.
Computer should have 2 ethernet interfaces, each of them should be
connected to different SWITCH. After the switch there should be router /
routers.
1 IP address is assigned to this computer. It should be used on
“healthy” ethernet card. If given card/cable/switch goes down, this IP
address should “migrate” to other ethernet card in this computer.
Scenario:

Everything is OK:
En1: 192.168.100.1
En2: unassigned

Cable 1 disconnected:
En1: unassigned
En2: 192.168.100.1

Cable 1 connected, and cable 2 disconnected:
En1: 192.168.100.1
En2: unassigned

I tried following (on computer C1 and computer C2):

C1: ifconfig en1 192.168.100.1 up
C2: ping 192.168.100.1 … OK
C1: ifconfig en1 down
C1: ifconfig en1 delete
C1: ifconfig en2 192.168.100.1 up
C2: ping 192.168.100.1 … BAD!!!

Try deleting the ARP cache on C2 before doing the ping. If that ‘fixes’
the issue, you need to send more gratuitous arps out from C1 after
changing the IP address to ensure people on the ethernet segment update
their ARP caches with the new MAC.

\

Cheers,
Adam

QNX Software Systems
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster

Hello,

your suggestion was right.

After changing IP address to en2 “netstat -rn” shows this info

192.168.100 link#2 en2
192.168.100.X MAC_ADDR en1

After “route delete 192.168.100.2” ping started to work.

workaround could be sth. like this (while changing IP addresses)

netstat -rn | grep “enOLD” | cut -c1-15 | xargs -i route delete {}

Or is there better solution?

Thanks, Pavol Kycina


“Simon Casady” <casady@acm.org> wrote in message
news:op.sv0nk6nwwewqpf@inn.qnx.com

Perhaps you need to reconfigure the routing.
What does netstat -rn show on c1.
Try to delete and restore the default route.

On Wed, 24 Aug 2005 07:24:20 -0500, Pavol Kycina
xkycina@microstep-hdo.sk> > wrote:

Hello,
I would like to achive some kind of HW redundancy with TCPIP networking.
Computer should have 2 ethernet interfaces, each of them should be
connected to different SWITCH. After the switch there should be router /
routers.
1 IP address is assigned to this computer. It should be used on
“healthy” ethernet card. If given card/cable/switch goes down, this IP
address should “migrate” to other ethernet card in this computer.
Scenario:

Everything is OK:
En1: 192.168.100.1
En2: unassigned

Cable 1 disconnected:
En1: unassigned
En2: 192.168.100.1

Cable 1 connected, and cable 2 disconnected:
En1: 192.168.100.1
En2: unassigned

I tried following (on computer C1 and computer C2):

C1: ifconfig en1 192.168.100.1 up
C2: ping 192.168.100.1 … OK
C1: ifconfig en1 down
C1: ifconfig en1 delete
C1: ifconfig en2 192.168.100.1 up
C2: ping 192.168.100.1 … BAD!!!

On C2 output of “arp -a” shows for 192.168.100.1 good MAC address On C1
output of “netstata -in” shows incrementing counter of IPKTS on en2, but
OPKTS on en2 doesn’t change.
Is there any problem with my setup and goal?


Thanks for help, Pavol Kycina


\

Using M2, Opera’s revolutionary e-mail client: > http://www.opera.com/m2/