VMware ESXi 7
Sponsored Link

Add Uplink2023/03/17

 
To add Uplink to standard virtual switch, configure like follows.
This is based on that your ESXi computer has multiple physical network interfaces.
[1] To add on shell access, configure like follows.
# list physical NICs

[root@ctrl:~]
esxcli network nic list

Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description
------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -----------
vmnic0  0000:01:00.0  ne1000  Up            Up            1000  Full    52:54:00:94:d8:17  1500  Intel Corporation 82574L Gigabit Network Connection
vmnic1  0000:07:00.0  ne1000  Up            Up            1000  Full    52:54:00:76:e9:9c  1500  Intel Corporation 82574L Gigabit Network Connection
vmnic2  0000:08:00.0  ne1000  Up            Up            1000  Full    52:54:00:2a:ec:f4  1500  Intel Corporation 82574L Gigabit Network Connection

[root@ctrl:~]
esxcli network vswitch standard list

vSwitch0
   Name: vSwitch0
   Class: cswitch
   Num Ports: 2990
   Used Ports: 4
   Configured Ports: 128
   MTU: 1500
   CDP Status: listen
   Beacon Enabled: false
   Beacon Interval: 1
   Beacon Threshold: 3
   Beacon Required By:
   Uplinks: vmnic0
   Portgroups: VM Network, Management Network

vSwitch1
   Name: vSwitch1
   Class: cswitch
   Num Ports: 2990
   Used Ports: 3
   Configured Ports: 128
   MTU: 1500
   CDP Status: listen
   Beacon Enabled: false
   Beacon Interval: 1
   Beacon Threshold: 3
   Beacon Required By:
   Uplinks: vmnic1
   Portgroups: Management Network Internal

# add [vmnic2] to [vSwitch0]

[root@ctrl:~]
esxcli network vswitch standard uplink add --uplink-name=vmnic2 --vswitch-name=vSwitch0

[root@ctrl:~]
esxcli network vswitch standard list --vswitch-name=vSwitch0

vSwitch0
   Name: vSwitch0
   Class: cswitch
   Num Ports: 2990
   Used Ports: 6
   Configured Ports: 128
   MTU: 1500
   CDP Status: listen
   Beacon Enabled: false
   Beacon Interval: 1
   Beacon Threshold: 3
   Beacon Required By:
   Uplinks: vmnic2, vmnic0
   Portgroups: VM Network, Management Network

# set load-balancing policy
# available policies are follows
#  - explicit : use explicit failover order
#  - iphash   : route based on IP hash
#  - mac      : route based on source MAC hash
#  - portid   : route based on the originating virtual port
[root@ctrl:~]
esxcli network vswitch standard policy failover set --active-uplinks=vmnic0,vmnic2 --load-balancing=portid --vswitch-name=vSwitch0
[root@ctrl:~]
esxcli network vswitch standard policy failover get --vswitch-name=vSwitch0

   Load Balancing: srcport
   Network Failure Detection: link
   Notify Switches: true
   Failback: true
   Active Adapters: vmnic0, vmnic2
   Standby Adapters:
   Unused Adapters:

# if you like to set the new uplink as a stanby-uplink, run like follows

[root@ctrl:~]
esxcli network vswitch standard policy failover set --standby-uplinks=vmnic2 --vswitch-name=vSwitch0
# if you like to disable failback, run like follows

[root@ctrl:~]
esxcli network vswitch standard policy failover set --failback=no --vswitch-name=vSwitch0

 
To add on VMware Host Client, configure like follows.
[2] Move to [Management] - [Network] -[Virtual Switches] section and enter the details screen of a virtual switch you like to add new uplink, then click [Add uplink] button to open the window and add uplink like follows.
[3] New uplink has beed added.
Matched Content