Cisco – How to use “ping command” with source

ciscoicmpping

I can not use ping 'target' source 'interface'

ping 192.168.0.2 source lo0

% Invalid input detected at '^' marker.

It's possible if I use "ping"

R2#ping
Protocol [ip]: ip
Target IP address: 192.168.0.2
Repeat count [5]: 
Datagram size [100]: 
Timeout in seconds [2]: 
Extended commands [n]: y
Source address or interface: loopback0
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]: 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/25/59 ms

That's time consuming! I'd like to use the "shortcut command" but I can't! Any suggestion?

My Topology, for curious
enter image description here

I'm trying ping 192.168.0.2 (R2) source 192.168.1.1 (Loopback0)

Best Answer

Packet Tracer does not provide access to IOS. It provides access to an IOS-like environment that has a limited subset of IOS features/commands, mainly tailored to learn CCNA level concepts.

As such, it doesn't surprise me that you do not have this option on the command line.

Related Topic