LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-19-2005, 08:36 AM   #1
JeffG2583
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Non-routed traffic monitor???


Is there a way I can set up SuSe on my network so it doesn't route, just has 2 NICs and will monitor the throughput with ntop? I have ntop set up and everything but I would rather not set it up to route if I could help it. Any help is greatly appreciated!
 
Old 05-19-2005, 10:26 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

yes you can... I see 2 different ways:

1/ If the switch where your Suse is plugged in is manageable, there may be the possibility to duplicate all traffic going to the gateway and to send the "copy" to the suse box. Thus you do not interfere with the "real" traffic but can monitor it.

2/ You can set up a bridge on your Suse: packets will be forwarded from a NIC to the other. This can be done transparently (you don't even need an IP address). Just google for transparent bridge, you'll find plenty of doc.

See you !
 
Old 05-23-2005, 08:18 AM   #3
JeffG2583
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks a lot. I did find a few docs about bridging but can't get it to work so I must be doing something wrong. I'm using brcfg to configure a bridge, setting interfaces IPs to 0.0.0.0, and activating the bridge. Do I have to set up routes of any sort or should this thing just work? I want to use ntop to collect traffic. I've tried some step-by-step directions and those didn't work either so I'm just curious as to what I'm doing wrong since I'm pretty new to Linux. Thanks!
 
Old 05-23-2005, 08:50 AM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

I use brctl to configure bridges, that's the replacement tool for brcfg.
Have you set up the bridge iface after configuring it... ? I mean that you have to do an explicit
ifconfig br0 up (with an IP if you want to have one)
so that the bridge works.

As for routing is concerned, you don't have to do anything, since the bridge is a layer 2 device, that's a level beyond routing.

There's an ethernet bridging option in the kernel... make sure you've compiled it either static or as a module (in which case you've got to load it of course).

I have used ntop 2 years ago, don't remember how I made it work...
 
Old 05-23-2005, 10:23 AM   #5
JeffG2583
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I'm running SuSe 9.3 I think. Is there a way to see if it's already enabled in the kernel? I'm sorry, as a correction to my last post, I am using BRCTL and I have used ifconfig trafmon up to enable it. I can do a brctl show trafmon and all that but I can't plug one computer into one NIC, and plug the other end into my network and receive an IP address via DHCP on the computer so I guess something isnt' working right. I'm trying to set this up in a test environment before I deploy it. Thanks!
 
  


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
How can I monitor traffic? anticuchos Linux - Networking 1 09-06-2005 03:16 AM
Bluetooth Traffic Monitor HaPagan Linux - Software 4 06-19-2005 04:17 AM
traffic monitor ? help caomeisanhao Linux - Networking 9 05-31-2005 03:28 PM
Network traffic monitor teeno Linux - Software 2 09-29-2003 09:18 AM
need traffic monitor SchwipSchwap Linux - Newbie 2 08-30-2003 02:31 AM

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

All times are GMT -5. The time now is 09:20 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