1 Reply Latest reply on Jul 19, 2018 6:12 AM by dauphin77

    vDS NIC Teaming and Failover Policy - How to modify with PowerCLI

    dauphin77 Enthusiast

      Howdy all-

       

      I have created a Distributed Virtual Switch and and am looking to modify the 'Teaming and Failover' policy to automatically assign a LAG as the 'Active' adapter versus the 'Unused' Uplinks when a new Distributed Port Group is added/created.

       

      Is there a way to do this using PowerCLI to permanently modify the 'Teaming and Failover' policy on the vDS? I have come across the following commands but unsure if they're correct. Any advice/guidance would be appreciated.

       

      Thanks.

      get-vdswitch $vdsname | Get-VDUplinkTeamingPolicy | Set-VDUplinkTeamingPolicy -UnusedUplinkPort dvUplink1, dvUplink2, dvUplink3, dvUplink4

      get-vdswitch $vdsname | Get-VDUplinkTeamingPolicy | Set-VDUplinkTeamingPolicy -ActiveUplinkPort LAG