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 in Linux Administration by akhtar
• 33,720 points
32 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 by MD
• 79,930 points

Related Questions In Linux Administration

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,600 points
3,877 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 in Linux Administration by MD
• 79,930 points
88 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 in Linux Administration by MD
• 79,930 points
41 views
0 votes
1 answer

How to capture Packet from specific port?

Hi@akhtar, Let’s say you want to capture packets ...READ MORE

answered Oct 4 in Linux Administration by MD
• 79,930 points
33 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
222 views
0 votes
2 answers

Install postgreSQL on Ubuntu

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

answered Nov 11 in Database by Prachi
• 140 points
191 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
126 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 in Linux Administration by MD
• 79,930 points
29 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 8 in Linux Administration by MD
• 79,930 points
85 views