How to choose the interface?

0118

To choose the network interface when using tshark, you can use the -i option followed by the interface name or number. Here’s how you can do it:

  1. List Available Interfaces: First, you can list all available network interfaces by running:

    tshark -D
  2. Select an Interface: Once you have the list, you can choose an interface by specifying its number or name. For example, to capture traffic on interface 1, you would use:

    tshark -i 1

    Or, if you want to use the interface name (e.g., eth0), you can do:

    tshark -i eth0

Make sure to run tshark with appropriate permissions (often requires root or sudo) to capture packets on the selected interface.

0 Comments

no data
Be the first to share your comment!