Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking for a PCI NIC with two PHYs that is capable of bridging/switching in hardware but allows the host to monitor the traffic. Does such a thing exist?

This would be running on a linux host.

Edit: software bridging is not feasible for this application. I'm specifically looking for some model of card that will do hardware switching with monitor capability.

share|improve this question
add comment

2 Answers

Yes, such a thing exists. They're really popular inside home WiFi routers -- that's how your average Linksys router works: the four "LAN" ports are connected to a single bridged adapter, which is then bridged in software to the 802.11 adapter, and then that is NAT'ed to the "WAN" port.

However, it's tough to find one you can just plug into any computer -- the demand just isn't there. Instead, I'd recommend doing simple software bridging using brctl -- that'll create a "virtual" adapter, usually called "br0", which represents the bridge of the two adapters. You can treat that virtual adapter just like any physical one.

The overhead of bridging the adapters in software is negligible, even with mediocre hardware.

share|improve this answer
    
I'd have some concerns at GiE speeds on really old hardware, but otherwise brctl works a treat. –  sysadmin1138 Aug 18 '10 at 3:25
    
I'm wondering if an atom-based box installed in a remote building we have could handle this. –  Joel Coel Aug 18 '10 at 3:30
    
This is low-end hardware, so I was hoping to avoid brctl -- I'm familiar enough with that. When you say they're "tough to find", do they exist in the wild? –  bstpierre Aug 18 '10 at 3:40
    
Those things on home-routers/wifithings are independent switches with the host on a trunk port. A switch is the way to go. –  Joris Aug 18 '10 at 6:43
add comment

If brctl doesn't give you what you need (perhaps the software layer adds too much latency) the next best bet is to use a span or monitor port on your switch. The traffic isn't bridged, it's merely copied to the destination port where whatever monitoring you need to do can happen. The down side is that you can't filter on that traffic, but you can monitor it.

share|improve this answer
    
You hit it on the head. Latency is killer, and even the idea that software is touching packets makes brctl a non-feasible solution. A switch monitor port is plan B. But it would be ideal to have something inside the box. –  bstpierre Aug 18 '10 at 3:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.