Creating span port using netgraph

Anton Yuzhaninov citrin at citrin.ru
Sun Jan 29 06:36:20 PST 2006


Saturday, January 28, 2006, 10:52:11 PM, Frank wrote:

F> # create ngeth0 and bind xl0, xl1, xl2 and xl3 to it
F> ngctl mkpeer . eiface hook ether
F> ngctl mkpeer ngeth0: one2many lower one
F> ngctl connect xl0: ngeth0:lower lower many0
F> ngctl connect xl1: ngeth0:lower lower many1
F> ngctl connect xl2: ngeth0:lower lower many2
F> ngctl connect xl3: ngeth0:lower lower many3

F> # bring up ngeth0 for sniffing duties
F> ifconfig ngeth0 monitor up

F> After I run this script, all network connections freeze and I lost all
F> IP connectvity. If I tcpdup on any inteface (xl? or ngeth0) no traffic
F> is visible.

Use ng_tee for connect to xl0, xl1...

-- 
 WBR, Anton Yuzhaninov



More information about the freebsd-net mailing list