when network goes down while pinging....
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > when network goes down while pinging....




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    when network goes down while pinging....  
manu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-29-06 10:32 PM

hi experts,
i came across this problem..
i have 2 linux systems, and they are connected via NIC's.
from system i used ping command in linux to ping to another system..
everything is working
fine. But if i deactivate the NIC of the destination system while the
source system is still pinging, the command just hangs up.. no error
messages what so ever..  it does not return at all.. how to detect this
type of network disconnection and return an error message to the
user..?

(any suggestion for modifications in the standard ping program would
help me)
thanking u in advance..
Manohar






[ Post a follow-up to this message ]



    Re: when network goes down while pinging....  
Nils O. Selåsdal


Report This Message To A Moderator Edit/Delete Message


 
05-29-06 10:32 PM

manu wrote:
> hi experts,
> i came across this problem..
> i have 2 linux systems, and they are connected via NIC's.
> from system i used ping command in linux to ping to another system..
> everything is working
> fine. But if i deactivate the NIC of the destination system while the
> source system is still pinging, the command just hangs up.. no error
> messages what so ever..  it does not return at all.. how to detect this
> type of network disconnection and return an error message to the
> user..?
>
> (any suggestion for modifications in the standard ping program would
> help me)

Have patience. It'll eventually bail out.





[ Post a follow-up to this message ]



    Re: when network goes down while pinging....  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-29-06 10:32 PM

"manu" <manoharyes@gmail.com> writes:

> hi experts,
> i came across this problem..
> i have 2 linux systems, and they are connected via NIC's.
> from system i used ping command in linux to ping to another system..
> everything is working
> fine. But if i deactivate the NIC of the destination system while the
> source system is still pinging, the command just hangs up.. no error
> messages what so ever..  it does not return at all.. how to detect this
> type of network disconnection and return an error message to the
> user..?


% ping -c 5 -w 10 192.168.1.100

PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
From 193.238.146.145: icmp_seq=1 Destination Net Unreachable

--- 192.168.1.100 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms



> (any suggestion for modifications in the standard ping program would
> help me)
> thanking u in advance..
> Manohar
>

--
__Pascal Bourguignon__                     http://www.informatimago.com/

This universe shipped by weight, not volume.  Some expansion may have
occurred during shipment.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:58 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register