VMware Cloud Community
kri-2
Hot Shot
Hot Shot
Jump to solution

esxcli: configuring a vmnic as unused for a portgroup

Hi,

I am trying to script the esxi5 networkconfiguration for software iSCSI.

(The screenshot best describes what I want to do).

For this

-I have a vSwitch0 with two portgroups iSCSI1 and iSCSI2.

-The vSwitch0 has two active uplinks vmnic0 and vmnic1

-Each iSCSI portgroup needs one active vmnic and one unsed vmnic.

Since the initial portgroup configuration is inherit from the vSwitch, iSCSI1 and iSCSI2 have to active uplinks and I need to remove one.

Does anybody know how to do this scripted with esxcli?

Any help would be appreciated.

Chris

Reply
0 Kudos
1 Solution

Accepted Solutions
Rubeck
Virtuoso
Virtuoso
Jump to solution

Hopefully something like this would do it:

esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic0 --portgroup-name=iSCSI1

esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic1 --portgroup-name=iSCSI2

vmnics that are not specified in the --active-uplinks syntax will be moved to unused...

/Rubeck

View solution in original post

Reply
0 Kudos
3 Replies
Rubeck
Virtuoso
Virtuoso
Jump to solution

Hopefully something like this would do it:

esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic0 --portgroup-name=iSCSI1

esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic1 --portgroup-name=iSCSI2

vmnics that are not specified in the --active-uplinks syntax will be moved to unused...

/Rubeck

Reply
0 Kudos
kri-2
Hot Shot
Hot Shot
Jump to solution

Great Rubeck!

Thanks!

Chris

Reply
0 Kudos
Rubeck
Virtuoso
Virtuoso
Jump to solution

You're most welcome :winking_face:

/Rubeck

Reply
0 Kudos