How to capture Packets from Specific Interface in Linux

0 votes

Hi Guys,

I want to capture some packets from a specific interface so that I can examine the packets internally. How can I do that in the Linux system?

Oct 3, 2020 in Linux Administration by akhtar
• 38,260 points
1,890 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use tcpdump command in your system. When you execute tcpdump command it will capture from all the interfaces, however with -i switch only capture from the desired interface as shown below.

$ tcpdump -i eth0
answered Oct 3, 2020 by MD
• 95,460 points

Related Questions In Linux Administration

0 votes
0 answers

how to grep a specific process from ps in linux?

When I ps -af | grep RV ...READ MORE

Apr 14, 2022 in Linux Administration by Rahul
• 9,680 points
3,580 views
0 votes
1 answer

How to Unblock SSH and FTP Access to Specific IP in Linux?

Firewalls(most of them) can either Reject or ...READ MORE

answered Jul 16, 2019 in Linux Administration by Archana
• 5,640 points
15,368 views
0 votes
1 answer

How to remove write permission from a folder in Linux system?

Hi@akhtar, You can use chmod command to remove ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,460 points
3,343 views
0 votes
1 answer

How to display captured packets in HEX and ASCII in Linux?

Hi@akhtar, To display the packet value you can ...READ MORE

answered Oct 4, 2020 in Linux Administration by MD
• 95,460 points
32,940 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,210 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,307 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
858 views
0 votes
1 answer

How to capture only TCP packets in Linux?

Hi@akhtar, You can use tcpdump command for this ...READ MORE

answered Oct 4, 2020 in Linux Administration by MD
• 95,460 points
768 views
0 votes
1 answer

How to create Logical Volume from Volume Group in Linux?

Hi@akhtar, You can use lvcreate command to create ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
1,801 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP