cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4388
Views
5
Helpful
4
Replies

undocumented extended ping

robert.robinson
Level 1
Level 1

I was on a troubleshoot with a TAC engineer and they were doing an extended ping, something along the lines of:

"ping 192.168.1.1 -s:192.168.10.1 -v -n:50" to specify source, verbose and number of pings instead of using the extended menu where it asks you for each of the options. I can't recall exactly what the format of the command is. Can anyone provide the syntax for this?

4 Replies 4

dgahm
Level 8
Level 8

You can step through the options by entering ping:

Test-rc3745# ping

Protocol [ip]:

Target IP address: 10.129.0.1

Repeat count [5]:

Datagram size [100]:

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface: 10.138.0.1

Type of service [0]:

Set DF bit in IP header? [no]:

Validate reply data? [no]:

Data pattern [0xABCD]:

Loose, Strict, Record, Timestamp, Verbose[none]:

Sweep range of sizes [n]:

Or as a single command to ping 10.129.0.1 from interface 10.138.0.1 and repeat 50 times:

ping ip 10.129.0.1 source 10.138.0.1 repeat 50

A question mark after each argument will show you the options to build the command:

Test-rc3745# ping ip 10.129.0.1 ?

data specify data pattern

df-bit enable do not fragment bit in IP header

repeat specify repeat count

size specify datagram size

source specify source address or name

timeout specify timeout interval

validate validate reply data

Please rate helpful posts.

Thanks David, that one line ping is exactly what I was looking for.

glen.grant
VIP Alumni
VIP Alumni

If it was a catos box extended pings be done along the lines of ping -s

options .

Damjen
Level 1
Level 1

Hello Friends,

I know, it was an old topic here. But ....
When I am starting a ping for example: 
ping 8.8.8.8 source vlan1 validate repeat 1000

 

Sending 1000, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:

Packet sent with a source address of 10.181.1.1

Reply data will be validated

!CCCCC!C!CC!CC!!!!!!!!!CC!!CC!!!!C!C!C!!!C.C!!!!!!CC!!!C!!C!!!!C!!!C!C

!C!!!!CCC!!C!!!!C!!C!CCC!!!!CCCCC!CCCCCC!CCCCCCCCC!C!CCC!CCC!C!!!!!C!C

CCC!CCCCCC!!!!!CCCCC!CC!CCCC!!CCCCCCCCCC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