{"id":43,"date":"2006-06-26T08:53:00","date_gmt":"2006-06-26T08:53:00","guid":{"rendered":"http:\/\/www.houquner.com\/?p=126"},"modified":"2006-06-26T08:53:00","modified_gmt":"2006-06-26T08:53:00","slug":"openbsd%e4%b8%8b%e7%9a%84trunk%e6%a8%a1%e5%bc%8f%e5%92%8c%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.houquner.com\/index.php\/archives\/43","title":{"rendered":"openbsd\u4e0b\u7684trunk\u6a21\u5f0f\u548c\u914d\u7f6e."},"content":{"rendered":"<p>openbsd\u652f\u6301trunk\u7684\u4e09\u79cd\u6a21\u5f0f\uff1a roundrobin (the de-fault), failover,?none.<\/p>\n<p>trunk\u7684\u914d\u7f6e \u53ef\u4ee5\u53c2\u8003 man trunk.<br \/>\n\u559c\u6b22\u5b83\u7684\u6587\u6863.\u6709\u5fc5\u8981\u517b\u6210\u770b\u6587\u6863\u7684\u4e60\u60ef, \u5373\u4f7f\u662fE\u6587.<br \/>\n\u6211\u7684\u8bbe\u5907\u67094\u5757\u7f51\u5361 fxp0,fxp1,fxp2,fxp3<br \/>\n\u524d\u4e24\u5757\u505aadsl\u8d1f\u8f7d\u5747\u8861,\u90a3\u4e48\u540e\u4e24\u5757\u7f51\u5361\u505a failover.<br \/>\n\u6709\u6761\u4ef6\u8bd5\u8bd5,?\u811a\u672c\u8981\u5c0f\u6539\u4e00\u4e0b.\u672c\u8d28\u95ee\u9898\u5c31\u662fpf\u662f\u5426\u652f\u6301trunk\u7f51\u53e3 ^_^<\/p>\n<h1>man trunk<\/h1>\n<p>TRUNK(4) OpenBSD Programmer&#8217;s Manual? TRUNK(4)<br \/>\nNAME<br \/>\n trunk &#8211; link aggregation and link failover interface<br \/>\nSYNOPSIS<br \/>\n pseudo-device trunk [count]<br \/>\nDESCRIPTION<br \/>\n The trunk interface allows aggregation of multiple network interfaces as<br \/>\n one virtual trunk interface.<br \/>\n? A trunk interface can be created using the ifconfig trunkN create com-<br \/>\n mand.? It can use different link aggregation protocols specified using<br \/>\n the trunkproto proto option.? Child interfaces can be added using the<br \/>\n trunkport child-iface option and removed using the -trunkport child-iface<br \/>\n option.<br \/>\n? The driver currently supports the trunk protocols roundrobin (the de-<br \/>\n fault), failover, and none.? The roundrobin protocol distributes outgoing<br \/>\n traffic using a round-robin scheduler through all active ports; the<br \/>\n failover protocol sends outgoing traffic only through the master or the<br \/>\n next active port.? Both protocols receive traffic from all attached<br \/>\n ports.? The interface link state is used to validate if the port is ac-<br \/>\n tive or not.? The none protocol is intended to do nothing: it disables<br \/>\n any traffic without disabling the trunk interface itself.<br \/>\n? The configuration can be done at runtime or by setting up a<br \/>\n hostname.if(5) configuration file for netstart(8).<br \/>\nEXAMPLES<br \/>\n Create a simple round robin trunk with two bge(4) Gigabit Ethernet inter-<br \/>\n faces:<br \/>\n? # ifconfig bge0 up<br \/>\n # ifconfig bge1 up<br \/>\n # ifconfig trunk0 trunkport bge0 trunkport bge1 <br \/>\n 192.168.1.1 netmask 255.255.255.0<br \/>\n? The following example uses an active failover trunk to set up roaming be-<br \/>\n tween wired and wireless networks using two network devices.? Whenever<br \/>\n the wired master interface is unplugged, the wireless failover device<br \/>\n will be used:<br \/>\n? # ifconfig em0 up<br \/>\n # ifconfig ath0 192.168.1.1 netmask 255.255.255.0 nwid my_net<br \/>\n # ifconfig trunk0 trunkproto failover trunkport em0 trunkport ath0 <br \/>\n 192.168.1.1 netmask 255.255.255.0<br \/>\nSEE ALSO<br \/>\n inet(4), hostname.if(5), ifconfig(8), netstart(8)<br \/>\nHISTORY<br \/>\n The trunk device appeared in OpenBSD 3.8.<br \/>\nAUTHORS<br \/>\n The trunk driver was written by Reyk Floeter &lt;reyk@openbsd.org&gt;.<br \/>\nOpenBSD 3.9? May 5, 2005? 1<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.houquner.com\">Kermit\u7684\u7f51\u7ad9<\/a> &raquo; <a href=\"https:\/\/www.houquner.com\/index.php\/archives\/43\">openbsd\u4e0b\u7684trunk\u6a21\u5f0f\u548c\u914d\u7f6e.<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>openbsd\u652f\u6301trunk\u7684\u4e09\u79cd\u6a21\u5f0f\uff1a roundrobin (the de-fault), failover,?none. trunk\u7684\u914d\u7f6e \u53ef\u4ee5\u53c2\u8003 man trunk. \u559c\u6b22\u5b83\u7684\u6587\u6863.\u6709\u5fc5\u8981\u517b\u6210\u770b\u6587\u6863\u7684\u4e60\u60ef, \u5373\u4f7f\u662fE\u6587. \u6211\u7684\u8bbe\u5907\u67094\u5757\u7f51\u5361 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/43"}],"collection":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":0,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}