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,180 points
112 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,220 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,640 points
6,051 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,220 points
260 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,220 points
340 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, 2020 in Linux Administration by MD
• 95,220 points
130 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
310 views
0 votes
2 answers

Install postgreSQL on Ubuntu

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

answered Nov 11, 2020 in Database by Prachi
• 140 points
278 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
200 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,220 points
81 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, 2020 in Linux Administration by MD
• 95,220 points
277 views