This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

IPRange in Dumpcap

0

Hi, I need to set a Range / Subnet (for example 10.244.0.0/24) in my trace. Hosts are no problem, but nobody knows what Adresses sre realy involved in my trace scenario... Sofar my trace looks like this:

"C:\Program Files\Wireshark\dumpcap.exe" -i LAN1 -f "port 1720 or portrange 5000-5060 or ip host 10.244.1.3 or ip host 10.244.1.4 or ip host 10.244.1.55" -b files:100 -b filesize:5000 -w C:\Tools\traces\cap\Wireshark.pcapng

asked 29 Jun '16, 08:29

Roy's gravatar image

Roy
6113
accept rate: 0%

edited 29 Jun '16, 08:31


One Answer:

0

To set a network in a capture filter use the net primitive, e.g. net 10.244.0.0/24. See the tcpdump pcap filter syntax page for more info.

answered 29 Jun '16, 09:14

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%