<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>16hot 的博客 &#187; ngctl</title>
	<atom:link href="http://www.16hot.com/tag/ngctl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.16hot.com</link>
	<description>技术、工作、生活，坚持一种信念，一切皆有可能……</description>
	<lastBuildDate>Sat, 07 Jan 2012 11:09:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>FreeBSD Netgraph Interface Bonding</title>
		<link>http://www.16hot.com/2010/07/1012/</link>
		<comments>http://www.16hot.com/2010/07/1012/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 03:04:05 +0000</pubDate>
		<dc:creator>16hot</dc:creator>
				<category><![CDATA[BSD/linux]]></category>
		<category><![CDATA[转载]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ngctl]]></category>

		<guid isPermaLink="false">http://blog.isyi.com/?p=1012</guid>
		<description><![CDATA[The following is used on FreeBSD to combine two physical interfaces (fxp1, fxp2) into a single virtual interface (ngeth0). This method allows one to take the feeds from a traditional two-output tap and present a single virtual interface to NSM applications. #!/bin/sh kldload ng_ether ifconfig fxp1 promisc -arp up ifconfig fxp2 promisc -arp up ngctl [...]]]></description>
			<content:encoded><![CDATA[<p>The following is used on FreeBSD to combine two physical interfaces  (fxp1, fxp2) into a single virtual interface (ngeth0).  This method  allows one to take the feeds from a traditional two-output tap and  present a single virtual interface to NSM applications.</p>
<pre>#!/bin/sh
kldload ng_ether
ifconfig fxp1 promisc -arp up
ifconfig fxp2 promisc -arp up

ngctl mkpeer . eiface hook ether
ngctl mkpeer ngeth0: one2many lower one
ngctl connect fxp1: ngeth0:lower lower many0
ngctl connect fxp2: ngeth0:lower lower many1

ifconfig ngeth0 -arp up
</pre>
<p>Remember to replace fxp1 and fxp2 with the interfaces on your FreeBSD  system (e.g., em0, em1, etc.).</p>
<p><a id="References" name="References"></a></p>
<h2>References</h2>
<p><a title="http://www.freebsd.org/cgi/man.cgi?query=ngctl&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+6.1-RELEASE&amp;format=html" rel="nofollow" href="http://www.freebsd.org/cgi/man.cgi?query=ngctl&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+6.1-RELEASE&amp;format=html">ngctl(8)</a><br />
I believe I first heard of this technique <a title="http://seclists.org/lists/focus-ids/2003/Oct/0028.html" rel="nofollow" href="http://seclists.org/lists/focus-ids/2003/Oct/0028.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.16hot.com/2010/07/1012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

