{"id":30,"date":"2021-04-20T12:44:24","date_gmt":"2021-04-20T11:44:24","guid":{"rendered":"https:\/\/www.simplyhosting.com\/support\/?post_type=ht_kb&#038;p=30"},"modified":"2022-02-11T16:55:58","modified_gmt":"2022-02-11T16:55:58","slug":"interface-bonding-on-debian","status":"publish","type":"ht_kb","link":"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/","title":{"rendered":"Interface Bonding on Debian"},"content":{"rendered":"\n<p>This step by step guide is for configuring interface bonding on Debian based operating systems.<br><br>For the following guide we will use the following data and assume that you are running all commands as the root user:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Type<\/th><th>Value<\/th><\/tr><tr><td>Primary interface<\/td><td>em1<\/td><\/tr><tr><td>Secondary interface<\/td><td>em2<\/td><\/tr><tr><td>Bond interface<\/td><td>bond0<\/td><\/tr><tr><td>IP Address<\/td><td>192.0.2.2<\/td><\/tr><tr><td>Netmask<\/td><td>255.255.255.0<\/td><\/tr><tr><td>Gateway<\/td><td>192.0.2.1<\/td><\/tr><tr><td>Primary MAC address<\/td><td>00:00:5E:00:53:00<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"InterfaceBondingonDebian-Step-by-stepguide\">Step-by-step guide<\/h2>\n\n\n\n<p>How to do it:<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"1\"><li>Determine whether the bonding module is loaded and package ifenslave is installed:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">lsmod | grep bonding dpkg-query -l | grep ifenslave<\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>If it is loaded and ifenslave is installed, go to step 3, otherwise:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">apt-get install ifenslave modprobe bonding &amp;&amp; echo \"bonding\" &gt;&gt; \/etc\/modules<\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>With the bonding module loaded into the kernel we need to determine what the interfaces are called:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">ls \/sys\/class\/net\/<\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>From this list we need to select which interfaces we are going to use in the bond (the slaves). In most cases this will be the first two interfaces (eth0 &amp; eth1, em1 &amp; em2, eno0 &amp; eno1 etc.) <br>Debian uses a single file to manage the interface configurations, as such we can simply edit the file and create the bond in a single step.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">auto eth0 \n     iface eth0 inet manual \n\nauto eth1 \n     iface eth1 inet manual \n\nauto bond0 \n     iface bond0 inet static \n     address 192.0.2.2 \n     gateway 192.0.2.1 \n     netmask 255.255.255.0 \n     bond-mode 802.3ad \n     bond-miimon 100 \n     bond-downdelay 200 \n     bond-updelay 200 \n     bond-lacp-rate 1 \n     bond-slaves eth0 eth1 \n     dns-nameservers 192.0.2.53<\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li>With our interfaces configured we need to restart networking to bring up the bond and start using it:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">Debian 6\/Ubuntu 12: \"\/etc\/init.d\/networking stop; \/etc\/init.d\/networking start\" \nDebian 7\/Ubuntu 14: \"\/etc\/init.d\/networking stop; \/etc\/init.d\/networking start\" \nDebian 8\/Ubuntu 16: \"systemctl restart networking\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"get-in-touch\"><strong>Get in touch<\/strong><\/h2>\n\n\n\n<p>If you need advice on your Interface Bonding for Debian requirements, we\u2019re here to help.<\/p>\n\n\n\n<p><strong>Call us on 0333 247 0222: <\/strong>Monday &#8211; Friday, 9am \u2013 5.30pm.<\/p>\n\n\n\n<p id=\"chat-to-us-on-livechat-monday-friday-9am-5-30pm\"><strong>Chat <strong>with<\/strong> us on LiveChat:<\/strong> Monday &#8211; Friday, 9am &#8211; 5.30pm.<\/p>\n\n\n\n<p id=\"write-to-us-send-us-a-support-ticket-from-your-simply-portal-and-we-ll-get-back-to-you-as-soon-as-we-can-https-portal-simplyhosting-com-site-login\"><strong>Write to us:<\/strong> Send us a support ticket from your <a href=\"https:\/\/portal.simplyhosting.com\/site\/login\/\">Simply portal<\/a> and we\u2019ll get back to you as soon as we can. <\/p>\n\n\n\n<p>If you don\u2019t have an account with Simply Hosting yet, you can also send our <a href=\"https:\/\/www.simplyhosting.com\/info\/contact-us\">Sales team<\/a> an enquiry and we&#8217;ll get back to you between <strong>9am<\/strong> and <strong>5.30pm<\/strong>, <strong>Monday<\/strong> to <strong>Friday<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This step by step guide is for configuring interface bonding on Debian based operating systems. For the following guide we will use the following data and assume that you are running all commands as the root user: Type Value Primary interface em1 Secondary interface em2 Bond interface bond0 IP Address 192.0.2.2 Netmask 255.255.255.0 Gateway 192.0.2.1 [&hellip;]<\/p>\n","protected":false},"author":2,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[13],"ht-kb-tag":[34],"class_list":["post-30","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-infrastructure","ht_kb_tag-debian"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Interface Bonding on Debian - Support Centre - Simply Hosting &amp; Servers<\/title>\n<meta name=\"description\" content=\"This step by step guide is for configuring interface bonding on Debian based operating systems.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Interface Bonding on Debian - Support Centre - Simply Hosting &amp; Servers\" \/>\n<meta property=\"og:description\" content=\"This step by step guide is for configuring interface bonding on Debian based operating systems.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/\" \/>\n<meta property=\"og:site_name\" content=\"Support Centre - Simply Hosting &amp; Servers\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-11T16:55:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/\",\"name\":\"Interface Bonding on Debian - Support Centre - Simply Hosting &amp; Servers\",\"isPartOf\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/#website\"},\"datePublished\":\"2021-04-20T11:44:24+00:00\",\"dateModified\":\"2022-02-11T16:55:58+00:00\",\"description\":\"This step by step guide is for configuring interface bonding on Debian based operating systems.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.simplyhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Interface Bonding on Debian\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/#website\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/\",\"name\":\"Support Centre - Simply Hosting &amp; Servers\",\"description\":\"Simply Hosting &amp; Servers Support Centre\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.simplyhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Interface Bonding on Debian - Support Centre - Simply Hosting &amp; Servers","description":"This step by step guide is for configuring interface bonding on Debian based operating systems.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/","og_locale":"en_GB","og_type":"article","og_title":"Interface Bonding on Debian - Support Centre - Simply Hosting &amp; Servers","og_description":"This step by step guide is for configuring interface bonding on Debian based operating systems.","og_url":"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/","og_site_name":"Support Centre - Simply Hosting &amp; Servers","article_modified_time":"2022-02-11T16:55:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/","url":"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/","name":"Interface Bonding on Debian - Support Centre - Simply Hosting &amp; Servers","isPartOf":{"@id":"https:\/\/www.simplyhosting.com\/support\/#website"},"datePublished":"2021-04-20T11:44:24+00:00","dateModified":"2022-02-11T16:55:58+00:00","description":"This step by step guide is for configuring interface bonding on Debian based operating systems.","breadcrumb":{"@id":"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/interface-bonding-on-debian\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.simplyhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Interface Bonding on Debian"}]},{"@type":"WebSite","@id":"https:\/\/www.simplyhosting.com\/support\/#website","url":"https:\/\/www.simplyhosting.com\/support\/","name":"Support Centre - Simply Hosting &amp; Servers","description":"Simply Hosting &amp; Servers Support Centre","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.simplyhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":5,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/30\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/30\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=30"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}