Operating System - HP-UX
1753435 Members
4656 Online
108794 Solutions
New Discussion юеВ

Re: lan card used by ping

 
Fedele Giuseppe
Frequent Advisor

lan card used by ping

Hello,

I have an host (host1) with two lan cards (lan0 and lan1).

From host1 I launch a ping towards a second host (host2) that works fine.

I see on host1 that ping uses lan0 to talk with host2.

If I cut lan0, I see that ping switches to lan1 (from which it is not possible to reach haost2).

If I recover lan0 connection, I see that ping remains on lan1 and host2 still appears as unreachable.

Could you help me in understanding such a behaviour?

Is it possible to force ping to use a given lan only?

Thanks in advance

Giuseppe
6 REPLIES 6
Alzhy
Honored Contributor

Re: lan card used by ping

Signori Fedele,

Por favori. please send us "netstat -ian" and "netstat -rn" from host1 and host2.

Graci.

Hakuna Matata.
KapilRaj
Honored Contributor

Re: lan card used by ping

Also include ...

The ip address of host2
netstat -rn from host1 and host2.

What what do you mean by "cut lan0" and how do you "uncut" it ?

Regards,

Kaps
Nothing is impossible
Terry.giblin
Frequent Advisor

Re: lan card used by ping

Dear Fedele,

You have two machine and each machine has two lan cards 0 and 1.

Nodes communicate with each other over lan0, standard config. 'inter-communication', it is therefore recommended to restrict general network traffic over lan0.

In the event of a failure, of lan0, your network configuration should be configured to automatically failover on to lan1.

Both nodes should be configured for this eventuality.

Check namesvrs and netconf.
Fedele Giuseppe
Frequent Advisor

Re: lan card used by ping

Hi,

sorry but I cannot access the bench in this moment.

Do you know if there is a way to force ping to use a given lan card?

Regards

Giuseppe
Laurent Menase
Honored Contributor

Re: lan card used by ping

ping -i addroflan0 host2
should work.
Laurent Menase
Honored Contributor

Re: lan card used by ping

ping -i addroflan0 host2
should work. -except if lan0 and lan1 are on the same subnet.-