{"id":15166,"date":"2013-07-08T15:15:49","date_gmt":"2013-07-08T14:15:49","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=15166"},"modified":"2013-07-08T15:15:49","modified_gmt":"2013-07-08T14:15:49","slug":"configuring-jumbo-frames-using-powershell","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=15166","title":{"rendered":"Configuring Jumbo Frames Using PowerShell"},"content":{"rendered":"<p>Another new version of Windows Server, more features, and another set of PowerShell scripts to write <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-top-style: none; border-left-style: none; border-bottom-style: none; border-right-style: none\" alt=\"Smile\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/07\/wlEmoticon-smile.png\" \/>&#160; My host design will be taking advantage of the fact that I have 4 * 10 GbE NICs in each host to play with, and I\u2019ll be implementing my recent converged networks design for SMB 3.0 storage (use the search tool on the top right).<\/p>\n<p>A key in the design is to use the full bandwidth of the NICs.&#160; That means configuring the packet or payload size of each NIC, aka configuring Jumbo Frames.&#160; You can do this by hand, but that\u2019s going to:<\/p>\n<ul>\n<li>Get pretty boring after a couple of NICs.<\/li>\n<li>Be mistake prone: please send \u20ac10 to me every time you get this setting wrong if you disagree with me and continue to do it by hand.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/07\/Untitled.png\"><img loading=\"lazy\" decoding=\"async\" title=\"Untitled\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; border-left: 0px; display: block; padding-right: 0px; margin-right: auto\" border=\"0\" alt=\"Untitled\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/07\/Untitled_thumb.png\" width=\"304\" height=\"339\" \/><\/a><\/p>\n<p>You can configure this setting using PowerShell.&#160; It\u2019s not immediately discoverable, but here\u2019s how I discovered it for my NICs.<\/p>\n<p>I ran Get-NetAdapterAdvancedProperty, targeting a 10 GbE NIC.&#160; That returned the advanced settings and their values of the NIC.&#160; These aren\u2019t the traditional attributes.&#160; Each setting has two values:<\/p>\n<ul>\n<li>DisplayName: The NIC setting name<\/li>\n<li>DisplayValue: The NIC setting value<\/li>\n<\/ul>\n<p>I knew from the GUI that the DisplayName was Packet Size and that the desired DisplayValue would be 9014.&#160; Now I could configure the setting:<\/p>\n<p>Set-NetAdapterAdvancedProperty &lt;NIC Name&gt; \u2013DisplayName \u201cPacket Size\u201d \u2013DisplayValue \u201c9014\u201d<\/p>\n<p>I could run that command over and over for each NIC.&#160; Consistent Device Naming (CDN) would make this easier, if my servers were new enough to have CDN <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-top-style: none; border-left-style: none; border-bottom-style: none; border-right-style: none\" alt=\"Smile\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/07\/wlEmoticon-smile.png\" \/>&#160; I want to configure all my 10 GbE NICs and not configure my still-enabled 1 GbE NIC (used for remote management).&#160; Here\u2019s how I can target the NICs with the setting:<\/p>\n<p>Get-NetAdapter * | Where-Object { $_.TransmitLinkSpeed \u2013EQ \u201c10000000000\u201d } | Set-NetAdapterAdvancedProperty \u2013DisplayName \u201cPacket Size\u201d \u2013DisplayValue \u201c9014\u201d<\/p>\n<p>The first half of that line finds the 10 GbE NICs, thus filtering out the 1 GbE NICs.&#160; Now I can use that line as part of a greater script to configure my hosts.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c36c8731-accd-41d2-a0bc-f99bff6b5f48\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012\" rel=\"tag\">Windows Server 2012<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012+R2\" rel=\"tag\">Windows Server 2012 R2<\/a>,<a href=\"http:\/\/technorati.com\/tags\/PowerShell\" rel=\"tag\">PowerShell<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Virtualisation\" rel=\"tag\">Virtualisation<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Scripting\" rel=\"tag\">Scripting<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Networking\" rel=\"tag\">Networking<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Another new version of Windows Server, more features, and another set of PowerShell scripts to write &#160; My host design will be taking advantage of the fact that I have 4 * 10 GbE NICs in each host to play with, and I\u2019ll be implementing my recent converged networks design for SMB 3.0 storage (use &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=15166\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Configuring Jumbo Frames Using PowerShell&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,80,87,189,195,118,120],"class_list":["post-15166","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-networking","tag-powershell","tag-scripting","tag-virtualisation","tag-windows-server-2012","tag-windows-server-2012-r2"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/15166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15166"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/15166\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}