Connecting and Disconnecting Uplink Adapters and Port Groups with ESXCLI
You can use esxcli network vswitch standard portgroup policy failover set to connect and disconnect uplink adapters and port groups.
If your setup includes one or more port groups, you can associate each port group with one or more uplink adapters and remove the association. This functionality allows you to filter traffic from a port group to a specific uplink, even if the virtual switch is connected with multiple uplinks.
Specify one of the options
listed in
Connection Options for ESXCLI Host Management Commands
in place of
<conn_options>
.
- Connect a port group with an
uplink adapter.
esxcli <conn_options> network vswitch standard portgroup policy failover set --active-uplinks=vmnic1,vmnic6,vmnic7
This command fails silently if the uplink adapter does not exist. - Make some of the adapters
standby instead of active.
esxcli <conn_options> network vswitch standard portgroup policy failover set --standby-uplinks=vmnic1,vmnic6,vmnic7