LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-23-2006, 06:01 PM   #1
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Rep: Reputation: 15
How do I find out DHCP Client list and monitor traffic?


Im fairly new to linux in general and recently set up a ubuntu server for my house network as our Router was playing up. Everything is working perfectly but I want to add some extra monitoring, nothing intrusive, just some stats basically.

The server machiine has just the basic server install on it, so theres no GUI and so I will need a command line solution (I think, Im still a bit hazy in this area).

On the ubuntu server I have set up a dhcp server and IP masquerading and basically what I want to do is be able to see who is connected to the server, Im not sure if I will only be able to see only the clients that have been assigned via the dhcp server or all connected clients.

Also I would like to be able to see how much traffic is being directed to each client. Similar to the bandwidth monitor but I want it to show the destination of the traffic, not just the traffic on the interfaces on the server.

Thanks in advance, sorry if any of it it unclear just reply and I'll try and clear it up


Uni

Last edited by Unicron; 05-23-2006 at 06:16 PM.
 
Old 05-23-2006, 06:10 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I can't help too much, but you should be able to see the leases in the dhcpd.leases file (don't remember where it resides off the top of my head, but I'd assume in /etc/dhcpd directory)...
 
Old 05-23-2006, 06:18 PM   #3
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks yeah I found it in the /var/lib/dhcp3/ directory. Its not the best format but its a great deal better than running round the house and seeing which lights are lit up on the switches
 
Old 05-23-2006, 06:26 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I don't think that will give you static clients (unless they're static DHCP clients) though. Maybe something with nmap?
 
Old 05-23-2006, 06:35 PM   #5
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Original Poster
Rep: Reputation: 15
YAY!! nmap shows both DHCP and static client addresses
Thankyou very much thats very helpful

Now does anyone know of a good (preferably simple) traffic monitor?

Uni

Last edited by Unicron; 05-23-2006 at 06:38 PM.
 
Old 05-23-2006, 06:47 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
After a little google and apt-cache searching, I think you're probably looking for ethereal, etherape, or jnettop.

Note I've never used any of these, but the screenshots all seem to show origination and destination IP's.

I also saw something called mrtg, but having not done this type of work, I'm shooting in the dark here...
 
Old 05-23-2006, 07:21 PM   #7
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Original Poster
Rep: Reputation: 15
jnettop using the right flags (jnettop -i eth2) gives me the data I need. Can be a little hard to follow at times but I can definately follow it and monitor what I wanted.

I saw ettercap and ethereal in a google too but when I tried to install the packages it mentioned dependancies that had Gnome and X in too and so I wasnt sure if it would try to install X and Gnome on the server which I really didnt want it to do as I thought it might compromise the performance of the server as its my old machine (I could be totally wrong here though).

Thanks for your quick and informative replies pljvaldez they are most appreciated!!! I owe you a beer

Uni
 
  


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
ProFTPd ... FTP client fails to connect: timeout after client sends 'LIST' nutnut Linux - Software 2 01-01-2006 08:09 PM
how to find http traffic and mail traffic alone? basbosco Linux - General 1 06-07-2005 11:29 PM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 06:18 AM
Refresh client user list at autentication client/server network. robertoneto123 Linux - Networking 0 11-11-2003 11:38 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 12:24 PM


All times are GMT -5. The time now is 10:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration