我不能使用ping 'target' source 'interface'
ping 192.168.0.2 source lo0
% Invalid input detected at '^' marker.如果我用"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太费时了!我想使用“快捷命令”,但我不能!有什么建议吗?
我的拓扑,因为好奇

我正在尝试ping 192.168.0.2 (R2)源代码192.168.1.1 (Loopback0)
发布于 2015-08-18 03:32:12
数据包跟踪器不提供对IOS的访问。它提供对类似IOS的环境的访问,该环境具有有限的IOS功能/命令子集,主要用于学习CCNA级别的概念。
因此,您在命令行中没有此选项并不令我感到意外。
发布于 2018-01-18 20:48:41
我也有同样的问题。这很奇怪,但在我的示例中,在ping命令中在接口上添加ip地址,解锁了附加选项。
R2#ping ip 1.1.1.1 ?
<cr>
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int fa0/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#^Z
R2#ping 10.0.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发布于 2015-08-17 23:36:14
源地址或接口是扩展ping命令的部分输出。接口不能写成lo0。
看看这个页面,使用扩展ping和扩展traceroute命令
https://networkengineering.stackexchange.com/questions/20692
复制相似问题