VMware ESXi 8
Sponsored Link

Add Uplink2024/01/16

 
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:3a:cc:4c  1500  Intel Corporation 82574L Gigabit Network Connection
vmnic1  0000:08:00.0  ne1000  Up            Up            1000  Full    52:54:00:6b:d8:17  1500  Intel Corporation 82574L Gigabit Network Connection
vmnic2  0000:09:00.0  ne1000  Up            Up            1000  Full    52:54:00:c6:a4:cf  1500  Intel Corporation 82574L Gigabit Network Connection
vmnic3  0000:10:00.0  ne1000  Up            Up            1000  Full    52:54:00:f2:e9:52  1500  Intel Corporation 82574L Gigabit Network Connection

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

vSwitch0
   Name: vSwitch0
   Class: cswitch
   Num Ports: 2970
   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: 2970
   Used Ports: 3
   Configured Ports: 1024
   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: 2970
   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 [Networking] -[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