如指定 IP 包长度大于 100:
tcpdump -i eth0 -n 'ip[2:2] > 100'
traceroute使用
oot@zh-hz-hr-ygyradius ~]# traceroute -I -p 2000 192.168.1.1
traceroute to 192.168.1.1 (192.168.1.1), 30 hops max, 60 byte packets
1 gateway (192.168.3.250) 3.987 ms 4.331 ms 4.687 ms
2 * * *
3 192.168.1.1 (192.168.1.1) 2.955 ms 3.405 ms 3.998 ms
nc 发送udp 报文
[root@zh-hz-hr-ygyradius ~]# nc -vuz 192.168.1.1 2000
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 192.168.1.1:2000.
Ncat: UDP packet sent successfully
Ncat: 1 bytes sent, 0 bytes received in 2.01 seconds.