VMware ESXi 8
Sponsored Link

Add Virtual Switch2024/01/16

 
Add standard Virtual Switch on ESXi Host.
[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

# list current virtual switches

[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

# add virtual switch [vSwitch1]

[root@ctrl:~]
esxcli network vswitch standard add --vswitch-name=vSwitch1
# assign physical NIC [vmnic1] to [vSwitch1]

[root@ctrl:~]
esxcli network vswitch standard uplink add --uplink-name=vmnic1 --vswitch-name=vSwitch1
[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: 128
   MTU: 1500
   CDP Status: listen
   Beacon Enabled: false
   Beacon Interval: 1
   Beacon Threshold: 3
   Beacon Required By:
   Uplinks: vmnic1
   Portgroups:
 
To add on VMware Host Client, configure like follows.
[2] Move to [Networking] -[Virtual Switches] section and click [Add standard virtual switch] button. Next, input new virtual switch name and select uplink. For other items, it's no ploblem to keep default unless you have specific requirements for your local network or system.
[3] New virtual switch has beed added.
Matched Content