{"id":1144,"date":"2022-03-31T09:45:07","date_gmt":"2022-03-31T07:45:07","guid":{"rendered":"https:\/\/www.delixirpro.com\/blog\/?p=1144"},"modified":"2022-03-31T09:48:32","modified_gmt":"2022-03-31T07:48:32","slug":"hyper-v-commutateur-virtuel-avec-agregat-de-port-switch-embedded-teaming-set","status":"publish","type":"post","link":"https:\/\/www.delixirpro.com\/blog\/2022\/03\/31\/hyper-v-commutateur-virtuel-avec-agregat-de-port-switch-embedded-teaming-set\/","title":{"rendered":"Hyper-V : Commutateur virtuel avec agr\u00e9gat de port \u2013 Switch Embedded Teaming (SET)"},"content":{"rendered":"\n<p>Depuis Windows 2016, il est possible de cr\u00e9er directement un commutateur virtuel avec un teaming de carte r\u00e9seau.<\/p>\n\n\n\n<p>Sur Windows Server 2012 et Windows Server 2012R2, il fallait d\u2019abord cr\u00e9er un&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/rdr-it.com\/windows-2016-association-de-cartes-reseaux-network-teaming\/\" target=\"_blank\">teaming de carte r\u00e9seau<\/a>&nbsp;\u00e0 l\u2019aide du gestionnaire de serveur et ensuite cr\u00e9er un&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/rdr-it.com\/hyper-v-creer-un-commutateur-virtuel\/\" target=\"_blank\">commutateur virtuel<\/a>&nbsp;externe en s\u00e9lectionnant l\u2019agr\u00e9gat.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"423\" height=\"306\" src=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-00-1.png\" alt=\"\" class=\"wp-image-1146\" srcset=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-00-1.png 423w, https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-00-1-300x217.png 300w\" sizes=\"auto, (max-width: 423px) 100vw, 423px\" \/><figcaption>NIC Teaming sous Hyper-V (SET)<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"447\" height=\"321\" src=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-0.png\" alt=\"\" class=\"wp-image-1147\" srcset=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-0.png 447w, https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-0-300x215.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><figcaption>NIC Teaming sous Windows Server<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Cr\u00e9ation d&rsquo;un commutateur virtuel avec agr\u00e9gat de port<\/h2>\n\n\n\n<p>Il est conseill\u00e9 d&rsquo;utiliser cette m\u00e9thode d&rsquo;agr\u00e9gat de port sous Hyper-V plut\u00f4t que la combinaison NIC Teaming sous Windows Server + d\u00e9claration d&rsquo;un adaptateur Virtuel sous Hyper-V. D&rsquo;ailleurs Windows Server 2022 ne le permet plus nativement.<\/p>\n\n\n\n<p>Lancer les commandes sous PowerShell en administrateur :<\/p>\n\n\n\n<p><strong>1. Lister les adaptateurs r\u00e9seaux<\/strong> :<\/p>\n\n\n\n<p>Get-NetAdapter<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"179\" src=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-01-768x179-1.png\" alt=\"\" class=\"wp-image-1148\" srcset=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-01-768x179-1.png 768w, https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-01-768x179-1-300x70.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p><strong>2. Cr\u00e9er le switch virtuel :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">New-VMSwitch -Name VMSet -NetAdapterName \"NIC1\",\"NIC2\" -EnableEmbeddedTeaming $true<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"87\" src=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-02-768x87.png.webp\" alt=\"\" class=\"wp-image-1149\" srcset=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-02-768x87.png.webp 768w, https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-02-768x87.png-300x34.webp 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>Si vous souhaitez autoriser le management par ce commutateur virtuel, il faut ajouter le param\u00e8tres<em>&nbsp;<code>-AllowManagementOS $true<\/code><\/em>&nbsp;lors de la cr\u00e9ation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">New-VMSwitch -Name VMSet -NetAdapterName \"NIC1\",\"NIC2\" -EnableEmbeddedTeaming $true -AllowManagementOS $true <\/pre>\n\n\n\n<p>Si vous souhaitez modifier cela apr\u00e8s coup, vous pouvez lancer cette commande :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Set-VMSwitch -Name VMSet -AllowManagementOS $true<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Si plusieurs cartes sont indiqu\u00e9es le param\u00e8tre <em>-EnableEmbeddedTeaming $true<\/em> n\u2019est pas obligatoire<\/p><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Il est possible de passer le param\u00e8tre -EnableEmbeddedTeaming $true avec une seule carte r\u00e9seau et d\u2019ajouter ult\u00e9rieurement des cartes \u00e0 l\u2019\u00e9quipe.<\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-preformatted\">Set-VMSwitch -Name VMSet -NetAdapterName \"Nic1\",\"Nic2\"<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"684\" src=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-03.png\" alt=\"\" class=\"wp-image-1150\" srcset=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-03.png 721w, https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2022\/03\/hyperv-vswitch-set-03-300x285.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><figcaption>L&rsquo;adaptateur est maintenant cr\u00e9\u00e9 dans Hyper-V<\/figcaption><\/figure>\n\n\n\n<p>Source : <a rel=\"noreferrer noopener\" href=\"https:\/\/rdr-it.com\/hyper-v-commutateur-virtuel-avec-agregat-de-port-switch-embedded-teaming-set\/\" target=\"_blank\">https:\/\/rdr-it.com\/hyper-v-commutateur-virtuel-avec-agregat-de-port-switch-embedded-teaming-set\/<\/a>, <a href=\"https:\/\/docs.microsoft.com\/fr-fr\/windows-server\/virtualization\/hyper-v\/get-started\/create-a-virtual-switch-for-hyper-v-virtual-machines\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.microsoft.com\/fr-fr\/windows-server\/virtualization\/hyper-v\/get-started\/create-a-virtual-switch-for-hyper-v-virtual-machines<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Depuis Windows 2016, il est possible de cr\u00e9er directement un commutateur virtuel avec un teaming de carte r\u00e9seau. Sur Windows Server 2012 et Windows Server 2012R2, il fallait d\u2019abord cr\u00e9er un&nbsp;teaming de carte r\u00e9seau&nbsp;\u00e0&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,40],"tags":[77,78],"class_list":["post-1144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-tips","category-tutoriel","tag-hyper-v","tag-nic-teaming"],"_links":{"self":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts\/1144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1144"}],"version-history":[{"count":3,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts\/1144\/revisions"}],"predecessor-version":[{"id":1154,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts\/1144\/revisions\/1154"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/media\/1146"}],"wp:attachment":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}