Forum Discussion

Gajji's avatar
Gajji
Icon for Cirrostratus rankCirrostratus
Sep 29, 2019

tcpdump on particular interface

tcpdump -ni 0.0:nnnp -s0 host and port -v

when running tcpdump if i want to use a particular interface

instead of 0.0 , how to select the interface or find the

interface which is connected to server or pool member

3 Replies

  • Hello Gajji,

    To find the interface that's hande the traffic to a specific destination, you can use this command : ip route get  

    # ip route get 192.168.0.1
    192.168.0.1 via 192.168.0.150 dev internal  src 192.168.x.x
  • Gajji's avatar
    Gajji
    Icon for Cirrostratus rankCirrostratus

    how to select the particular interface or find the

    interface which is connected to server or pool member ??