cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
35791
Views
0
Helpful
10
Replies

Different MTU size's for ping command

Ahmed Mukhtar
Level 1
Level 1

Hello

I have a question which may sound silly...But if i want to ping any ip say i want to ping 1.1.1.1....so can i ping it with Multtiple MTU sizes???

like when i hit the command

Rx# ping 1.1.1.1

Then can i make each ping go with a different a Different MTU size if i want ??? by any command or something??

Thank you

1 Accepted Solution

Accepted Solutions

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.

Liability Disclaimer

In  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.

Posting

As the other posters have already noted, extended ping, i.e. entering ping followed by an enter, will prompt you for various options including size (also offers a range of size too).  However, the later IOSs also offer some of those options on the command line, size being one of them.  Enter ping and question mark to see if those additional options are offered.

View solution in original post

10 Replies 10

cadet alain
VIP Alumni
VIP Alumni

Hi,

The extended ping command can do this for you.

http://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/13730-ext-ping-trace.html

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

I want the output to be something like this....

Means each ping Goes with a different Byte Size or MTU size....

Reply from 192.168.1.1: bytes=32 time=2ms TTL=64

Reply from 192.168.1.1: bytes=64 time=2ms TTL=64

Reply from 192.168.1.1: bytes=100 time=2ms TTL=64

Reply from 192.168.1.1: bytes=150 time=7ms TTL=64

Its just an example i took but it clears the concept i think

can this be done??

Dragan Ilic
Level 4
Level 4

just hit "ping" and "enter" and you will see what options you have there...

HTH,
Dragan

HTH,
Dragan

I want the output to be something like this....

Means each ping Goes with a different Byte Size or MTU size....

Reply from 192.168.1.1: bytes=32 time=2ms TTL=64

Reply from 192.168.1.1: bytes=64 time=2ms TTL=64

Reply from 192.168.1.1: bytes=100 time=2ms TTL=64

Reply from 192.168.1.1: bytes=150 time=7ms TTL=64

Its just an example i took but it clears the concept i think

can this be done??

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.

Liability Disclaimer

In  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.

Posting

As the other posters have already noted, extended ping, i.e. entering ping followed by an enter, will prompt you for various options including size (also offers a range of size too).  However, the later IOSs also offer some of those options on the command line, size being one of them.  Enter ping and question mark to see if those additional options are offered.

Ahmed Mukhtar
Level 1
Level 1

I want the output to be something like this....

Means each ping Goes with a different Byte Size or MTU size....

Reply from 192.168.1.1: bytes=32 time=2ms TTL=64

Reply from 192.168.1.1: bytes=64 time=2ms TTL=64

Reply from 192.168.1.1: bytes=100 time=2ms TTL=64

Reply from 192.168.1.1: bytes=150 time=7ms TTL=64

Its just an example i took but it clears the concept i think

can this be done??

Well you didn't even try to test how extended ping works...

I hope this thread will clarify things for you:

https://supportforums.cisco.com/thread/344529

HTH,
Dragan

HTH,
Dragan

Disclaimer

The   Author of this posting offers the information contained within this   posting without consideration and with the reader's understanding that   there's no implied or expressed suitability or fitness for any purpose.   Information provided is for informational purposes only and should not   be construed as rendering professional advice of any kind. Usage of  this  posting's information is solely at reader's own risk.

Liability Disclaimer

In   no event shall Author be liable for any damages whatsoever (including,   without limitation, damages for loss of use, data or profit) arising  out  of the use or inability to use the posting's information even if  Author  has been advised of the possibility of such damage.

Posting

You can do something similar with extended ping, e.g.:

router#ping

Protocol [ip]:

Target IP address: 10.178.0.3

Repeat count [5]:

Datagram size [100]:

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface:

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]: y

Sweep min size [36]: 36

Sweep max size [18024]: 1500

Sweep interval [1]: 32

Type escape sequence to abort.

Sending 230, [36..1500]-byte ICMP Echos to 10.178.0.3, timeout is 2 seconds:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!

Success rate is 100 percent (230/230), round-trip min/avg/max = 1/2/17 ms

Ahmed Mukhtar
Level 1
Level 1

I want the output to be something like this....

Means each ping Goes with a different Byte Size or MTU size....

Reply from 192.168.1.1: bytes=32 time=2ms TTL=64

Reply from 192.168.1.1: bytes=64 time=2ms TTL=64

Reply from 192.168.1.1: bytes=100 time=2ms TTL=64

Reply from 192.168.1.1: bytes=150 time=7ms TTL=64

Its just an example i took but it clears the concept i think

can this be done??

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco