ping 实用程序使用 ICMP 回显消息来验证与具有 IP 地址的任何设备的连接。但是,对于组播应用程序,发送到组播地址的单个 ping 可能会降低路由器的性能,因为数据包流会被多次复制。
您可以禁用路由器对发送到组播地址的 ping (ICMP 回显) 数据包的响应。系统正常响应单播 ping 数据包。
要禁用路由器对发送到组播地址的 ping 数据包的响应:
- 包括以下
no-multicast-echo 语句:
[edit system]
user@host# set no-multicast-echo
- 通过检查命令输出
show system statistics icmp中的带有广播或组播目标地址字段的回显丢弃来验证配置。
user@host> show system statistics icmp
icmp:
0 drops due to rate limit
0 calls to icmp_error
0 errors not generated because old message was icmp
Output histogram:
echo reply: 21
0 messages with bad code fields
0 messages less than the minimum length
0 messages with bad checksum
0 messages with bad source address
0 messages with bad length
100 echo drops with broadcast or multicast destination address
0 timestamp drops with broadcast or multicast destination address
Input histogram:
echo: 21
21 message responses generated