{"id":627,"date":"2012-03-24T17:30:12","date_gmt":"2012-03-24T17:30:12","guid":{"rendered":"http:\/\/joelinoff.com\/blog\/?p=627"},"modified":"2012-04-02T01:19:44","modified_gmt":"2012-04-02T01:19:44","slug":"openindiana-151a-nic-aggregation","status":"publish","type":"post","link":"https:\/\/joelinoff.com\/blog\/?p=627","title":{"rendered":"OpenIndiana 151a NIC Aggregation"},"content":{"rendered":"<p>My colleagues and I recently built a filer using OI 151a\/ZFS and wanted to increase the throughput by aggregating multiple NICs to a common IP address that is dedicated for data. We did it by physically adding a card with 4 NICs, aggregating the ports on server and then updating the switch to enable link aggregation (port trunking) on the 2 connections.<br \/>\n<!--more--><\/p>\n<h1>Step 1 &#8211; Add the PCI card<\/h1>\n<p>For this filer, we added a 4 NIC PCI\/e mezannine card to the server.<\/p>\n<h1>Step 2 &#8211; Aggregate the NICs on the server<\/h1>\n<p>I then logged into the server as root and aggregating the NIC&#8217;s. This process was slightly different than the what I found on the web because OI 151a is based on Solaris 11. Here is what I did.<\/p>\n<p>[crayon type=&#8221;bash&#8221; toolbar=&#8221;always&#8221; title=&#8221;Aggregate Server NICs&#8221;]<br \/>\n% # Turn off the automatic network management<br \/>\n% svcadm disable \/network\/physical:nwam<\/p>\n<p>% # Show the links<br \/>\n% ifconfig -a<br \/>\n% dladm show-link<\/p>\n<p>% # Unplumb the current physical devices (from show-link)<br \/>\n% ifconfig bnx0 unplumb<br \/>\n% ifconfig bnx1 unplumb<\/p>\n<p>% # Create the aggregation, name it &#8220;aggr1&#8221;<br \/>\n% dladm create-aggr -l bnx0 -l bnx1 aggr1<\/p>\n<p>% # Create the plumbing for it<br \/>\n% ifconfig aggr plumb<\/p>\n<p>% # Assign the IP address<br \/>\n% ifconfig aggr 192.168.1.200 netmask 255.255.255.0 up<\/p>\n<p>% # Verify that it is up<br \/>\n% ifconfig -a<br \/>\n% dladm show-aggr<br \/>\n[\/crayon]<\/p>\n<h1>Step 3 &#8211; Program the Switch<\/h2>\n<p>Finally we needed to enable link aggregation (aka Port Trunking) on the switch to make sure that it can handle multiple MACs for a single IP address. If you don&#8217;t do this, performance will degrade to be worse than a single port because the switch will keep getting confused by different MACs.<\/p>\n<p>This step is different for all switches. I have done it with a Cisco Catalyst 3750 and one of my colleagues did it with a Netgear GS176T. The instructions for doing it can be found in the user manuals.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My colleagues and I recently built a filer using OI 151a\/ZFS and wanted to increase the throughput by aggregating multiple NICs to a common IP address that is dedicated for data. We did it by physically adding a card with 4 NICs, aggregating the ports on server and then updating the switch to enable link &hellip; <a href=\"https:\/\/joelinoff.com\/blog\/?p=627\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">OpenIndiana 151a NIC Aggregation<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[16],"tags":[19],"_links":{"self":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/627"}],"collection":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=627"}],"version-history":[{"count":8,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/627\/revisions"}],"predecessor-version":[{"id":657,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/627\/revisions\/657"}],"wp:attachment":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}