{"id":17111,"date":"2017-02-14T13:00:56","date_gmt":"2017-02-14T19:00:56","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=17111"},"modified":"2017-11-03T11:36:04","modified_gmt":"2017-11-03T16:36:04","slug":"ethernet-bonding","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/ethernet-bonding\/","title":{"rendered":"Ethernet Bonding"},"content":{"rendered":"<h3><strong style=\"font-size: 13px;\">Introduction<\/strong><\/h3>\n<p>Ethernet bonding provides a backup or alternative Ethernet connection in case the primary physical connection fails. It creates more than one path on the same network. Your device must have an Ethernet port in one of the accessory ports in order to do bonding.<\/p>\n<p>To setup bonding:<\/p>\n<p>1. Check if you have the bonding driver, and its version:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: modinfo bonding\r\nfilename:       \/lib\/modules\/3.12.27r13\/kernel\/drivers\/net\/bonding\/bonding.ko\r\nalias:          rtnl-link-bond\r\nauthor:         Thomas Davis, tadavis@lbl.gov and many others\r\ndescription:    Ethernet Channel Bonding Driver, v3.7.1\r\nversion:        3.7.1\r\n...<\/pre>\n<p>2. If the bonding module is not present, build it: <strong>bonding.ko.\u00a0<\/strong>You should substitute your ethernet devices for <strong>eth1<\/strong> and<strong> eth2<\/strong>. For instance, you may wish to use <strong>eth0<\/strong> and <strong>eth1<\/strong>. For bonding,you don&#8217;t need identical interfaces.<\/p>\n<p style=\"padding-left: 30px;\">Here is an example of how to configure the bond.\u00a0 Place it in <strong>\/etc\/network\/interfaces<\/strong>:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">auto bond0\r\niface bond0 inet static\r\naddress 10.0.0.130\r\nnetmask 255.0.0.0\r\nbond-mode active-backup\r\nbond-miimon 100\r\nbond-slaves eth1 eth2\r\n# The following sets bonding debug in the setup\r\n# verbosity 1<\/pre>\n<h3>Bring up the bond<\/h3>\n<p>To bring up the bond, enter the command:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: ifup bond0<\/pre>\n<h3>Checking the status of the bond<\/h3>\n<p>To display the status of the bond, enter the command:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: cat \/proc\/net\/bonding\/bond0<\/pre>\n<p style=\"font-family: 'Times New Roman', Times, serif; padding-left: 30px;\"><span style=\"font-size: medium;\">The following results display:<\/span><\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)\r\n\r\nBonding Mode: fault-tolerance (active-backup)\r\nPrimary Slave: None\r\nCurrently Active Slave: eth1\r\nMII Status: up\r\nMII Polling Interval (ms): 100\r\nUp Delay (ms): 0\r\nDown Delay (ms): 0\r\n\r\nSlave Interface: eth1\r\nMII Status: up\r\nSpeed: 100 Mbps\r\nDuplex: full\r\nLink Failure Count: 0\r\nPermanent HW addr: 00:08:00:4a:00:09\r\nSlave queue ID: 0\r\n\r\nSlave Interface: eth2\r\nMII Status: up\r\nSpeed: 100 Mbps\r\nDuplex: full\r\nLink Failure Count: 0\r\nPermanent HW addr: 00:08:00:82:00:a0\r\nSlave queue ID: 0<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Ethernet bonding provides a backup or alternative Ethernet connection in case the primary physical connection fails. It creates more than one path on the same network. Your device must have an Ethernet port in one of the accessory ports in order to do bonding. To setup bonding: 1. Check if you have the bonding [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":9184,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-17111","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/17111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=17111"}],"version-history":[{"count":7,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/17111\/revisions"}],"predecessor-version":[{"id":28579,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/17111\/revisions\/28579"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9184"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=17111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}