Networking Forums

Networking Forums > Computer Networking > Linux Networking > tcptrace with MAC addresses

Reply
Thread Tools Display Modes

tcptrace with MAC addresses

 
 
Ryan
Guest
Posts: n/a

 
      06-06-2004, 07:07 AM
What I'm trying to do is log usage on one of my computers. I have been
using tcptrace to give a summary of transactions dumped by tcpdump. The
problem is, however, tcptrace will only
give you ip information, no mac information in the summary. I am running
dhcp and ips get reused quite frequently. I would like to have a
tcptrace-like summary but with mac addresses listed as well.

Does anyone know a good way of doing this without having to edit the
tcptrace code?

-ryan
 
Reply With Quote
 
 
 
 
P Gentry
Guest
Posts: n/a

 
      06-06-2004, 03:24 PM
"Ryan" <rcdetert@at_nospamz.ucdavis.edu> wrote in message news:<pan.2004.06.06.07.07.46.24340@at_nospamz.ucd avis.edu>...
> What I'm trying to do is log usage on one of my computers. I have been
> using tcptrace to give a summary of transactions dumped by tcpdump. The
> problem is, however, tcptrace will only
> give you ip information, no mac information in the summary. I am running
> dhcp and ips get reused quite frequently. I would like to have a
> tcptrace-like summary but with mac addresses listed as well.
>
> Does anyone know a good way of doing this without having to edit the
> tcptrace code?
>
> -ryan


Are you trying to "capture" the src MAC of incoming traffic? If the
packets are not on the local segment, all you will get is the MAC of
your GW router. The internet doesn't use ethernet anyway.

Use Ethereal to examine some full packets of exchanges and you'll
better (?) understand what is happening as MAC src is changed at each
hop (on a lan) and why it makes no sense for "normal" internet IP
traffic.

MAC addresses are only meaningful on the locally connected segment.
The whole idea of IP is to _separate_ data link addressing schemes
from IP addressing, otherwise you could not communicate across
technologies -- it's tough enough as it is ;-)

If you would state your purpose there may be another way to achieve it
....

hth,
prg
email above disabled
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      06-06-2004, 07:15 PM
P Gentry wrote:
> "Ryan" <rcdetert@at_nospamz.ucdavis.edu> wrote in message news:<pan.2004.06.06.07.07.46.24340@at_nospamz.ucd avis.edu>...
>
>>What I'm trying to do is log usage on one of my computers. I have been
>>using tcptrace to give a summary of transactions dumped by tcpdump. The
>>problem is, however, tcptrace will only
>>give you ip information, no mac information in the summary. I am running
>>dhcp and ips get reused quite frequently. I would like to have a
>>tcptrace-like summary but with mac addresses listed as well.
>>

>
> [snip]
>
> MAC addresses are only meaningful on the locally connected segment.
> The whole idea of IP is to _separate_ data link addressing schemes
> from IP addressing, otherwise you could not communicate across
> technologies -- it's tough enough as it is ;-)


P:
MAC addresses are included in the data payload of DHCP packets. It's
how the DHCP server keeps track of who's got what address.

Ryan:
You could write your own filter for tcpdump output tailored just for
DHCP packets, perhaps piping the text version through a script. That's
probably a little more ambitious than you intend to get, though.

 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      06-07-2004, 01:37 AM
Ryan <rcdetert@at_nospamz.ucdavis.edu> wrote:

> What I'm trying to do is log usage on one of my computers.


It sounds like you want to do IP Accounting. Have a look it ip-acct

Or are you wanting to monitor only a particular application layer
protocol, such as HTTP or FTP? Do you also want to be able to say where
they went? If so, your best bet is to put in a (possibly transparent)
proxy.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      06-07-2004, 02:21 AM
Allen Kistler <(E-Mail Removed)> wrote in message news:<z3Kwc.20499$(E-Mail Removed) gy.com>...
> P Gentry wrote:
> > "Ryan" <rcdetert@at_nospamz.ucdavis.edu> wrote in message news:<pan.2004.06.06.07.07.46.24340@at_nospamz.ucd avis.edu>...
> >
> >>What I'm trying to do is log usage on one of my computers. I have been
> >>using tcptrace to give a summary of transactions dumped by tcpdump. The
> >>problem is, however, tcptrace will only
> >>give you ip information, no mac information in the summary. I am running
> >>dhcp and ips get reused quite frequently. I would like to have a
> >>tcptrace-like summary but with mac addresses listed as well.
> >>

> >
> > [snip]
> >
> > MAC addresses are only meaningful on the locally connected segment.
> > The whole idea of IP is to _separate_ data link addressing schemes
> > from IP addressing, otherwise you could not communicate across
> > technologies -- it's tough enough as it is ;-)

>
> P:
> MAC addresses are included in the data payload of DHCP packets. It's
> how the DHCP server keeps track of who's got what address.
>
> Ryan:
> You could write your own filter for tcpdump output tailored just for
> DHCP packets, perhaps piping the text version through a script. That's
> probably a little more ambitious than you intend to get, though.


Well, not to short-circuit the idea -- it's good as far as it goes and
a bit more with some neighbor disovery arps -- but I assume the OP was
_hoping_ to get MAC src addresses of the src IPs for some purpose (IPs
beyond what DHCP and rarp reveal as passing local traffic). Problem
is that MACs don't propogate down the line like IPs do.

Which leaves us with the original purpose for wanting MACs of incoming
IP packets -- presumably the MACs "physically" associated with the src
IPs ...

regards,
prg
email above disabled
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP Server Leasing Addresses to MAC Addresses of 00-00-00-00-00-00 nomorespameventhoughthejapanesespamgivesmeachuckle Linux Networking 9 12-05-2006 09:49 PM
Question about interpreting tcptrace results Dan Stromberg Linux Networking 3 01-14-2006 12:42 AM
tcptrace mailing list? Dan Stromberg Linux Networking 1 01-09-2006 11:10 PM
Static Ip's and BT - I have just recieved A BT router with 5 static IP Addresses. However, I want 5 computers in the office to use only one of the addresses. ery Difficult Question Nattasian Broadband 3 07-13-2004 08:55 AM
NAT Addresses Geoff Lane Windows Networking 3 07-21-2003 07:47 PM



1 2 3 4 5 6 7 8 9 10 11