This is our old Q&A Site. Please post any new questions and answers at

Hi, Think I have googled just about everything but cannot find he answer I am looking for.

I want Wireshark to monitor a range of ip address, ie: -

Have tried all sorts of options with AND OR <> and dont seem to get anywhere. I am guessing its a simple one and I am just not seeing it.

Any help would be appreicated.


asked 10 Jul '16, 11:09

d95gas's gravatar image

accept rate: 0%

There is no direct way to define an ip range in a capture filter syntax. The maximum you can do is to use a combination of net and host expressions, like (net and not host and not host or (net and not host for your particular case, to make the condition shorter than a plain list of host x.x.x.x expressions.

For a display filter, ip.addr >= and ip.addr <= does what you want, and for tshark with -w option, a display filter has the same effect on the output capture file like a capture filter (there are differences but in this case I think you can neglect them).

Depending on your use case, for Wireshark use, it might make sense to use a wider capture filter (like net to reduce the amount of captured packets, then apply the display filter above to show only the ones you really wanted, and then use File -> Export Selected Packets -> Displayed to save only the shown ones to a new file.

permanent link

answered 10 Jul '16, 12:38

sindy's gravatar image

accept rate: 24%

edited 10 Jul '16, 12:44

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 Jul '16, 11:09

question was seen: 635 times

last updated: 10 Jul '16, 12:44

Related questions

p​o​w​e​r​e​d by O​S​Q​A