Date: Thu, 25 Feb 2010 10:59:48 -0500 From: "Urbanski, William" <urbanski@vt.edu> To: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: bonding NICs with netgraph Message-ID: <9A646756E263F34F8AC6F88883AA825025A0D312D8@fangorn.cc.w2k.vt.edu>
next in thread | raw e-mail | index | archive | help
Hi, I am setting up a freebsd box to act as a snort sensor on a network. Th= e box has three nics, one internal nic for talking on the network and to th= e management server, and two nics on a single pci card that each connect to= SPAN ports on my switch. I am trying to bind the two adapters on the freeb= sd box so I have one virtual adapter that snort can listen to. I have been researching netgraph for some time and the script I have been u= sing to configure the adapters is: Code: #!/bin/sh echo "Trying kldload ng_ether..." kldload ng_ether echo "Putting dual adapters into promisc mode..." ifconfig em0 promisc -arp up ifconfig em1 promisc -arp up echo "Trying mkpeer . eiface hook ether" ngctl mkpeer . eiface hook ether echo "Trying mkpeer ngeth0: one2many lower one" ngctl mkpeer ngeth0: one2many lower one echo "Trying ngctl connect em0: ngeth0: lower lower many0" ngctl connect em0: ngeth0:lower lower many0 echo "Trying ngctl connect em1: ngeth0: lower lower many1" ngctl connect em1: ngeth0:lower lower many1 echo "Tryinh ifconfig ngeth0 -arp up" ifconfig ngeth0 -arp up However when I run the script I get: Code: Trying kldload ng_ether... Putting dual adapters into promisc mode... Trying mkpeer . eiface hook ether Trying mkpeer ngeth0: one2many lower one ngctl: send msg: Protocol family not supported Trying ngctl connect em0: ngeth0: lower lower many0 ngctl: send msg: No such file or directory Trying ngctl connect em1: ngeth0: lower lower many1 ngctl: send msg: No such file or directory Tryinh ifconfig ngeth0 -arp up Now 'ngeth0' appears in ifconfig: Code: ngeth0: flags=3D88c3<UP,BROADCAST,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0= mtu 1500 ether 00:00:00:00:00:00 but when I TCPDUMP from it it never records any packets even though I know = the span ports are sending the individual NICs data. I have been googling the error messages that are returned by the bonding sc= ript but have been unable to get packets to cross ngeth0. Any advice or tip= s for troubleshooting this would be greatly appreciated. Thank you in advan= ce. Will Urbanski
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9A646756E263F34F8AC6F88883AA825025A0D312D8>