# tcpdump on particular interface

**URL:** <https://community.f5.com/t/tcpdump-on-particular-interface/47123>\
**Category:** Technical Forums\
**Tags:** big-ip, ltm, application-delivery\
**Created:** [September 29, 2019, 4:40am UTC](https://community.f5.com/t/tcpdump-on-particular-interface/47123 "2019-09-29T04:40:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gajji](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@Gajji](https://community.f5.com/u/Gajji)\
**Post date:** [September 29, 2019, 4:40am UTC](https://community.f5.com/t/tcpdump-on-particular-interface/47123/1 "2019-09-29T04:40:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Enes\_Afsin\_Al](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/enes_afsin_al/32/15359_2.png) [@Enes\_Afsin\_Al](https://community.f5.com/u/Enes_Afsin_Al)\
**Post date:** [September 29, 2019, 11:01am UTC](https://community.f5.com/t/tcpdump-on-particular-interface/47123/2 "2019-09-29T11:01:26Z")

</div>

Hi Gajji,

To view the traffic on a single specific interface:

```tcl
tcpdump -ni 2.1:nnnp -s0 host 1.2.3.4 and port 443

```

To view the traffic on a specific VLAN called&nbsp; **internal** :

```tcl
tcpdump -ni internal:nnnp -s0 host 1.2.3.4 and port 443

```

**REF:** [myF5](https://support.f5.com/csp/article/K411)

---

<div class="post-metadata">

**Author:** ![Gajji](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@Gajji](https://community.f5.com/u/Gajji)\
**Post date:** [October 2, 2019, 2:30am UTC](https://community.f5.com/t/tcpdump-on-particular-interface/47123/3 "2019-10-02T02:30:50Z")

</div>

how to select the particular interface or find the

interface which is connected to server or pool member ??

---

<div class="post-metadata">

**Author:** ![Lidev](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/lidev/32/3447_2.png) [@Lidev](https://community.f5.com/u/Lidev)\
**Post date:** [October 2, 2019, 7:51am UTC](https://community.f5.com/t/tcpdump-on-particular-interface/47123/4 "2019-10-02T07:51:34Z")

</div>

Hello Gajji,

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

```tcl
# ip route get 192.168.0.1
192.168.0.1 via 192.168.0.150 dev internal src 192.168.x.x

```
