{"id":50,"date":"2016-05-16T18:59:08","date_gmt":"2016-05-16T22:59:08","guid":{"rendered":"http:\/\/home.battleonline.org\/?p=50"},"modified":"2021-05-10T13:40:56","modified_gmt":"2021-05-10T17:40:56","slug":"lacp-bonding-on-ubuntu-14-04-and-16-04","status":"publish","type":"post","link":"https:\/\/home.battleonline.org\/?p=50","title":{"rendered":"LACP Bonding on Ubuntu 14.04 and 16.04"},"content":{"rendered":"<p>I&#8217;ve recently been acquiring servers and building up an Openstack on ScaleIO lab. &nbsp;During this exercise I&#8217;ve been using bonded ethernet and IBoIP interfaces in order to trunk the multiple VLANs I need.<\/p>\n<p>On Ubuntu 16.04, the &#8220;ifenslave&#8221; and &#8220;vlan&#8221; modules are included in the base server install. &nbsp;I&#8217;m not sure if these packages are included by default on the desktop version, if they aren&#8217;t, the instructions for adding them are included below with the 14.04 specific info.<\/p>\n<hr>\n<ul>\n<li><strong>Installing required modules<\/strong><\/li>\n<\/ul>\n<blockquote>\n<pre><code>#&nbsp;apt-get install ifenslave\n<\/code><\/pre>\n<\/blockquote>\n<p>Add the following modules in \/etc\/modules to load on reboot<\/p>\n<blockquote>\n<pre><code># nano \/etc\/modules<\/code><\/pre>\n<\/blockquote>\n<p>Add these lines:<\/p>\n<blockquote>\n<pre><code>lp\nrtc\nloop\nbonding<\/code><\/pre>\n<\/blockquote>\n<ul>\n<li><strong>Edit the \/etc\/network\/interface<\/strong><\/li>\n<\/ul>\n<blockquote>\n<pre><code>$ sudo nano \/etc\/network\/interfaces<\/code><\/pre>\n<\/blockquote>\n<p>Add\/modify these lines:<\/p>\n<blockquote>\n<pre><code>#First Ethernet port\nauto eth0\niface eth0 inet manual\n     bond-master bond0\n\n#Second Ethernet port\nauto eth1\niface eth1 inet maunal\n     bond-master bond0\n\n#Create the bonded interface\nauto bond0\niface bond0 inet static\n     address X.X.X.X\/24\n     gateway X.X.X.X\n     dns-nameservers X.X.X.X\n     dns-search xyz.com\n     bond-mode 4\n     bond-miimon 100\n     bond-lacp-rate 1\n     bond-slaves eth0 eth1\n     bond-xmit_hash_policy layer3+4<\/code><\/pre>\n<\/blockquote>\n<p>At this point you need to either reboot, or do the following:<\/p>\n<blockquote>\n<pre><code># ifdown eth0 &nbsp;&amp;&amp; ifdown eth1\n#&nbsp;modprobe bonding\n# ifup bond0<\/code><\/pre>\n<\/blockquote>\n<p>Now, assuming you have LACP set up properly on your switch, you should have a 2 link LACP bond. &nbsp;You can check the status by running:<\/p>\n<blockquote>\n<pre><code># cat \/proc\/net\/bonding\/bond0<\/code><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve recently been acquiring servers and building up an Openstack on ScaleIO lab. &nbsp;During this exercise I&#8217;ve been using bonded ethernet and IBoIP interfaces in order to trunk the multiple VLANs I need. On Ubuntu 16.04, the &#8220;ifenslave&#8221; and &#8220;vlan&#8221; modules are included in the base server install. &nbsp;I&#8217;m not sure if these packages are &hellip; <a href=\"https:\/\/home.battleonline.org\/?p=50\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LACP Bonding on Ubuntu 14.04 and 16.04<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":54,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[8],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/home.battleonline.org\/wp-content\/uploads\/2016\/05\/ubuntu_logo.png?fit=267%2C189&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6NcXv-O","jetpack-related-posts":[{"id":70,"url":"https:\/\/home.battleonline.org\/?p=70","url_meta":{"origin":50,"position":0},"title":"Adventures in ScaleIO and OpenStack &#8211; Part 1 &#8211; Base OS setup","author":"ebattle","date":"May 25, 2016","format":false,"excerpt":"So, this will be a multi-part series documenting my adventures in deploying OpenStack Mitaka on Ubuntu 14.04 leveraging EMC's ScaleIO storage (along with some iSCSI sitting on ZFS). \u00a0This post is meant to document how I've set up my environment, and any issues i've encountered. The environment: I have 6\u2026","rel":"","context":"In &quot;DellEMC - Legacy&quot;","block_context":{"text":"DellEMC - Legacy","link":"https:\/\/home.battleonline.org\/?cat=7"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/home.battleonline.org\/wp-content\/uploads\/2016\/05\/scaleio_logo.jpg?fit=400%2C400&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":78,"url":"https:\/\/home.battleonline.org\/?p=78","url_meta":{"origin":50,"position":1},"title":"Adventures in OpenStack and ScaleIO &#8211; Part 2 &#8211; ScaleIO Deployment","author":"ebattle","date":"May 25, 2016","format":false,"excerpt":"In my previous post, we set up our base OS images. \u00a0In this post, we will walk through what it takes to get a ScaleIO SDS array up and running on Ubuntu 14.04. First things first, lets make sure we have a supported version of the kernel on our Ubuntu\u2026","rel":"","context":"In &quot;DellEMC - Legacy&quot;","block_context":{"text":"DellEMC - Legacy","link":"https:\/\/home.battleonline.org\/?cat=7"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/home.battleonline.org\/wp-content\/uploads\/2016\/05\/scaleio_logo.jpg?fit=400%2C400&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":356,"url":"https:\/\/home.battleonline.org\/?p=356","url_meta":{"origin":50,"position":2},"title":"Nutanix Port diagrams","author":"ebattle","date":"May 12, 2021","format":false,"excerpt":"In the spirit of trying to push myself to document things a bit more in a blog format, I was made aware of a really good resource for port diagrams pushed out by a colleague, Artur Krzywdzinski , over at his blog vmwaremine.com. While these diagrams MAY be dated (always\u2026","rel":"","context":"In &quot;HCI&quot;","block_context":{"text":"HCI","link":"https:\/\/home.battleonline.org\/?cat=9"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/home.battleonline.org\/wp-content\/uploads\/2021\/05\/nutanix.jpeg?fit=400%2C400&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/home.battleonline.org\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.battleonline.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.battleonline.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.battleonline.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.battleonline.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":0,"href":"https:\/\/home.battleonline.org\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/home.battleonline.org\/index.php?rest_route=\/wp\/v2\/media\/54"}],"wp:attachment":[{"href":"https:\/\/home.battleonline.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.battleonline.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.battleonline.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}