LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-08-2004, 10:56 PM   #1
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Rep: Reputation: 15
Question How to monitor the ARP requests from other than eth1


Hi All
I am trying to monitor the arp requests for all the machines connected to my LAN through eth1. I am using the following tcpdump instruction:

tcpdump 'arp' -e -i eth1 -n -p -t

that instruction is working perfectly, but how can I exclude the arp requests of the eth1 itself. I want to receive the arp requests for all the machine in my LAN except for the eth1 which is fixed on the monitoring machine



Thanks for help in advanced

Regards
Bassam
 
Old 02-09-2004, 07:25 PM   #2
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
You can try the following:

tcpdump not ether host <your MAC address> |grep arp
 
Old 02-09-2004, 09:45 PM   #3
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Original Poster
Rep: Reputation: 15
Hi Shubb,
I tried the your instruction, but unfortunately it is monitoring the eth0 since my Linux box is a gateway and it contains 2 NIC, eth0 is connected to the Internet and eth1 is connected to my internal LAN. So that I want only to capture the ARP requests issued by all the machines connected to my LAN except for eth1.

The instruction that u suggested monitores the eth0 on my Linux box.


Thanks
Bassam
 
Old 02-09-2004, 11:50 PM   #4
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
Ok, then add the "-i eth1" to switch interfaces.
 
Old 02-10-2004, 03:25 AM   #5
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Original Poster
Rep: Reputation: 15
Ok Guys, I solved the problem. The instruction should be:

tcpdump -c 1 -e not ether src host 00:50:BA:C3:81:3B and arp and not rarp -i eth1 -n -p -t > arp_dump

Thanks for Shubb for his hint

Regards
Bassam
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 05:02 AM
a lot of ARP requests- why? zivota Linux - Networking 5 09-26-2005 08:06 AM
Network Flooded With ARP requests aronnok Linux - Security 3 12-25-2004 04:54 PM
Cutting arp requests to my box ivanatora Linux - Security 5 08-30-2004 02:46 PM
Many arp requests norman in tcpdump? af_dave Linux - Networking 0 08-21-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration