LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-09-2004, 10:34 PM   #1
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Rep: Reputation: 15
Urgent- How to exclude the arp rquests of the monitoring NIC


Hello Guys,
I really need ur urgen help.
I have Linux box that works as a gateway, eth0 is connected to the Internet and eth1 in connected to my LAN. I want to monitore all the arp requests issued by all the machines connected to my LAN and I want to execlude the arp requests issued by eth1 itself.

I need to capture only one arp request at a time and then save it inside a file.

I am using the following istruction, but the problme it captures the arp requests of the eth1 itself and I don't know how to exclude them.

tcpdump 'arp' -c 1 -e -i eth1 -n -p -t > arp_dump



Regards
Bassam
 
Old 02-09-2004, 11:05 PM   #2
stirling
Member
 
Registered: Feb 2004
Distribution: LFS, Ubuntu
Posts: 52

Rep: Reputation: 16
grep to the rescue

tcpdump 'arp' -c 1 -e -i eth1 -n -p -t | grep -v something > arp_dump

where 'something' is whatever is unique about the output you don't want to log

see also egrep -v "packets|tcpdump|listening|something" for more compact output
 
Old 02-09-2004, 11:13 PM   #3
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Original Poster
Rep: Reputation: 15
All the arp requests are similar and there is nothing in the arp requests makes me able to distinguish and differantiate between them, I mean I can not distinguish whether the arp request has been issued from the monitoring machin or not.
It should be done internally by the tcpdump itself, I mean by captureing the arp requests from all the machins other than the monitoring machin
 
Old 02-09-2004, 11:56 PM   #4
stirling
Member
 
Registered: Feb 2004
Distribution: LFS, Ubuntu
Posts: 52

Rep: Reputation: 16
if it's issued from the monitoring machine it should start with:
eth1_mac_address >

and end with:

tell eth1_ip_address
 
  


Reply



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
Remote NIC monitoring with Ethereal MarkMcQ Linux - Networking 2 11-16-2004 04:09 PM
Urgent !!! monitoring directory size using bash juby Programming 4 07-22-2004 05:47 AM
multiple NIC arp problem kanth Linux - Networking 0 03-09-2004 06:31 AM
How to exclude the arp requests of the monitoring NIC Bassam General 1 02-10-2004 12:29 PM
NIC / ARP Problems.. scoob8000 Linux - Networking 4 09-04-2003 09:03 PM

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

All times are GMT -5. The time now is 09:07 AM.

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