LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ping command (https://www.linuxquestions.org/questions/linux-newbie-8/ping-command-758382/)

gr8linux 09-29-2009 01:05 AM

ping command
 
hi
i want to know how does ping command work? and what does it mean by option -b, -B, and -d ; i went through the man page but i didnt understand the meaning of these options.... plz help me with some example.
thanx!!!!

~sHyLoCk~ 09-29-2009 01:10 AM

Code:

man ping

gr8linux 09-29-2009 01:16 AM

Quote:

Originally Posted by ~sHyLoCk~ (Post 3700192)
Code:

man ping

i know this buddy.... and already read this... but the man page couldn't clear these options.. :(

linuxlover.chaitanya 09-29-2009 01:17 AM

Excerpt from man page:

Code:

ping uses the ICMP protocol’s mandatory ECHO_REQUEST datagram to elicit
      an  ICMP  ECHO_RESPONSE from a host or gateway.  ECHO_REQUEST datagrams
      (‘‘pings’’) have an IP and ICMP header, followed by  a  struct  timeval
      and  then  an  arbitrary  number  of ‘‘pad’’ bytes used to fill out the
      packet.

Code:

-b    Allow pinging a broadcast address.

      -B    Do not allow ping to  change  source  address  of  probes.  The
              address is bound to one selected when ping starts.

Code:

-d    Set  the SO_DEBUG option on the socket being used.  Essentially,
              this socket option is not used by Linux kernel.

What did not you understand in this? Can you elaborate?

markush 09-29-2009 02:06 AM

Hi gr8linux,

ping is part of the icmp-protocol (Internet-Control-Message-Protokol). I'd suggest to google for icmp. Reading http://en.wikipedia.org/wiki/Interne...ssage_Protocol will point you in the right direction.

Markus

GlennsPref 09-29-2009 02:10 AM

Hi generally I use the ping command like this...

ping -c 4 (address number or website name)
This will send a ping 4 times to the related address and display the outcome of each. -c = count

cheers, Glenn

Fred Caro 09-29-2009 02:20 AM

dear sir
 
ping is the same essentially on Windows as on unix. The minus p,t, and god knows what is an option, which takes a bit of learning- best of luck.

Fred.

BashTin 09-29-2009 09:22 AM

Your kidding me right linuxlover.chaitanya. You expect a none geek to understand those man page entries??

Code:

Allow pinging a broadcast address.

      -B    Do not allow ping to  change  source  address  of  probes.  The
              address is bound to one selected when ping starts.

which means??

Code:

-d    Set  the SO_DEBUG option on the socket being used.  Essentially,
              this socket option is not used by Linux kernel.

and this? Just set the debug log level I suppose??

BashTin

malekmustaq 09-29-2009 10:23 AM

gr8linux,

if you want to read something about tcp-ip you may visit this site link.

Hope this helps.

Wim Sturkenboom 09-29-2009 12:54 PM

Your question is not about ping but about networking. If you don't understand networking, you can not understand some of the ping options.

So time to study some networking 'basics'. If I had a link, I would provide one; sorry.

jhon1986 12-23-2009 11:00 PM

Thanks
 
Hi I am jhon.

jhon1986 12-23-2009 11:01 PM

Thanks
 
advertising removed

linuxlover.chaitanya 12-23-2009 11:12 PM

And that looks like SPAM............Reported.


All times are GMT -5. The time now is 09:36 AM.