{"id":3474,"date":"2015-01-08T08:17:09","date_gmt":"2015-01-08T08:17:09","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=3474"},"modified":"2015-05-06T15:02:24","modified_gmt":"2015-05-06T15:02:24","slug":"freebsd-as-a-bridge","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=3474","title":{"rendered":"FreeBSD as a Bridge"},"content":{"rendered":"<p><a href=\"https:\/\/www.freebsd.org\/doc\/de_DE.ISO8859-1\/books\/handbook\/network-bridging.html\">FreeBSD Handbuch: LAN-Kopplung mit einer Bridge<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ifconfig bridge create\r\nbridge0\r\n\r\n# ifconfig bridge0\r\nbridge0: flags=8802&lt;BROADCAST,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500\r\n        ether 96:3d:4b:f1:79:7a\r\n        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15\r\n        maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200\r\n        root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0\r\n\r\n# ifconfig bridge0 addm fxp0 addm fxp1 up\r\n# ifconfig fxp0 up\r\n# ifconfig fxp1 up\r\n\r\n# ifconfig bridge0 deletem fxp0\r\n# ifconfig bridge0 destroy\r\n\r\nRemove IPv4 10.16.4.200 from Interface re2\r\n# ifconfig re2 inet 10.16.4.200 -alias\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ncloned_interfaces=&quot;bridge0&quot;\r\nifconfig_bridge0=&quot;addm fxp0 addm fxp1 up&quot;\r\nifconfig_fxp0=&quot;up&quot;\r\nifconfig_fxp1=&quot;up&quot;\r\n<\/pre>\n<h3>Port Mirroring \/ Span Ports<\/h3>\n<p><a href=\"http:\/\/nsmwiki.org\/FreeBSD_Network_Tap\">FreeBSD Network Tap<\/a><br \/>\n<a href=\"http:\/\/www.miarec.com\/faq\/what-is-port-mirroring\">What is port mirroring?<\/a><br \/>\n<a href=\"http:\/\/nsmwiki.org\/OpenBSD_Network_Tap\">OpenBSD Network Tap<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n           ------------------\r\n       re1 |     FreeBSD    | re2\r\n     ------|  (Network Tap) |------\r\n           ------------------\r\n                   | vr0\r\n                   |\r\n                --------  \r\n                |      |\r\n                |  PC  |\r\n                |      |\r\n                --------\r\n           (Traffic Collector)\r\n\r\n# ifconfig bridge0 create\r\n# ifconfig bridge0 addm rl0 addm rl1 up\r\n# ifconfig bridge0 span vr0 \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD Handbuch: LAN-Kopplung mit einer Bridge # ifconfig bridge create bridge0 # ifconfig bridge0 bridge0: flags=8802&lt;BROADCAST,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500 ether 96:3d:4b:f1:79:7a id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0 # ifconfig bridge0 addm fxp0 addm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3474","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3474"}],"version-history":[{"count":7,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3474\/revisions"}],"predecessor-version":[{"id":3746,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3474\/revisions\/3746"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}