What commands can you run? (must be via the terminal)
Asked
Active
Viewed 2.4k times
3 Answers
6
You can specify the packet size in ping using "-s" flag:
-s packetsize
Specifies the number of data bytes to be sent. The default is 56, which translates into
64 ICMP data bytes when combined with the 8 bytes of ICMP header data.
![](../../users/profiles/13325.webp)
ewwhite
- 194,921
- 91
- 434
- 799
2
ping -s nnnn a.b.c.d
sends packets of size nnnn+8 bytes (including header data) to address a.b.c.d, according to the manpage.
![](../../users/profiles/55514.webp)
MadHatter
- 78,442
- 20
- 178
- 229
-3
[root@example ~]# ping -s install.log 192.168.68.107
PING 192.168.68.107 (192.168.68.107) 0(28) bytes of data.
8 bytes from 192.168.68.107: icmp_req=1 ttl=64
8 bytes from 192.168.68.107: icmp_req=2 ttl=64
8 bytes from 192.168.68.107: icmp_req=3 ttl=64
try like this :)
![](../../users/profiles/9170.webp)
Rajat
- 3,329
- 21
- 29
-
1-1, the `-s` argument takes packet size as an integer, not a file name. – Chris S Dec 12 '10 at 20:24