LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 01-17-2005, 03:02 AM   #1
rabeea
Member
 
Registered: Aug 2004
Location: Pakistan
Posts: 52

Rep: Reputation: 15
Configure ping reply time


hi All,

My machine (Windows 2000 Pro)works in a manner that if i try ping other machines in the network it shows me the ping reply upto 1400ms and then it shows request timed out. Now wat i wanna do is that even if ping reply time is above 1400ms it still gives me the response.In other words i want to rest the ping reply time variable in my machine. Guide me to do so.
Waiting for an earliest response.
Thnx
 
Old 01-17-2005, 09:44 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
You might want to look at the help options for ping:
C:\>ping /?

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.

So you would probably want to do something like 'ping -w 3000 Target_name'
 
Old 01-19-2005, 01:44 PM   #3
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Rep: Reputation: 30
so it looks like you need to use the -i switch.


christo
 
Old 01-19-2005, 01:52 PM   #4
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Quote:
Originally posted by chr15t0
so it looks like you need to use the -i switch.


christo
If I remember correctly...
The -i (TTL) refers to the number of routers that you will go through before giving up. I believe default is 256 as you go through a router this will decrease and when it hits 0 it will not try anymore and give you back a "TTL expired in transit." message.
Example time!
ping -i 2 google.com returns this:
Pinging google.com [216.239.39.99] with 32 bytes of data:

Reply from 137.65.1.238: TTL expired in transit.
Reply from 137.65.1.238: TTL expired in transit.
Reply from 137.65.1.238: TTL expired in transit.
Reply from 137.65.1.238: TTL expired in transit.

Ping statistics for 216.239.39.99:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

however if I crank up the number eventually it will talk.

Ping -i 36 google.com
Pinging google.com [216.239.39.99] with 32 bytes of data:

Reply from 216.239.39.99: bytes=32 time=79ms TTL=239
Reply from 216.239.39.99: bytes=32 time=78ms TTL=239
Reply from 216.239.39.99: bytes=32 time=78ms TTL=239
Reply from 216.239.39.99: bytes=32 time=80ms TTL=239

Ping statistics for 216.239.39.99:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 78ms, Maximum = 80ms, Average = 78ms
 
Old 01-25-2005, 02:43 AM   #5
rabeea
Member
 
Registered: Aug 2004
Location: Pakistan
Posts: 52

Original Poster
Rep: Reputation: 15
hi All,

thnx for taking out time to reply. Well these options might help me work but still i dont want to mention these switches(-w,-i) again and again and i want to configure it in such a way that once configures permanently it itself works and makes the maximum ping time upto 3000ms.

Looking forward towards more support
Thnx
 
Old 01-25-2005, 03:14 AM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Code:
H:\>set/?
Displays, sets, or removes cmd.exe environment variables.

SET [variable=[string]]

  variable  Specifies the environment-variable name.
  string    Specifies a series of characters to assign to the variable.

Type SET without parameters to display the current environment variables.

If Command Extensions are enabled SET changes as follows:

SET command invoked with just a variable name, no equal sign or value
will display the value of all variables whose prefix matches the name
given to the SET command.  For example:

    SET P

would display all variables that begin with the letter 'P'

SET command will set the ERRORLEVEL to 1 if the variable name is not
found in the current environment.

SET command will not allow an equal sign to be part of the name of
Press any key to continue . . .
 
Old 01-27-2005, 02:08 AM   #7
rabeea
Member
 
Registered: Aug 2004
Location: Pakistan
Posts: 52

Original Poster
Rep: Reputation: 15
hi,

Yeah i did tried that as well. But all i could find is that ping is not an environment variable which could be set. Yes we can set parameters for CMD but it messes with the syntax in which i write.
Still looking for a possible solution.

thnx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any idea why this time I can not ping my LAN pc but can PING for ex. www.yahoo.com vakia Debian 5 09-28-2005 06:42 PM
Slow First Ping Reply Fr33B5D Linux - Networking 4 08-27-2005 10:07 AM
Return true or false if I have ping reply Menestrel Programming 4 11-29-2004 12:40 AM
No ping reply bambolin Linux - Networking 6 10-29-2004 06:18 AM
no ping reply siriuz Linux - Networking 2 03-16-2004 01:53 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration