Add Virtual Switch2023/03/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: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 # list current virtual switches [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 # 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
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: |
To add on VMware Host Client, configure like follows.
|
|
[2] | Move to [Management] - [Network] -[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. |
Sponsored Link |