Thursday, 27 August 2020

Adding a new vSwitch & portgroup

 [root@ESXi01:~] esxcli network vswitch standard add -v vSwitch1 -P 3456

[root@ESXi01:~] esxcli network nic list

Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description

------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -----------

vmnic0  0000:00:1f.6  ne1000  Up            Up            1000  Full    1c:69:7a:6b:a3:e5  1500  Intel Corporation Ethernet Connection (10) I219-V

vusb0   Pseudo        uether  Up            Up             100  Full    00:e0:4c:36:00:d1  1500  Realtek USB 10100 LAN

vusb1   Pseudo        uether  Up            Up             100  Full    00:e0:4c:36:01:44  1500  Realtek USB 10100 LAN

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

vSwitch0

   Name: vSwitch0

   Class: cswitch

   Num Ports: 3456

   Used Ports: 11

   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


WAN

   Name: WAN

   Class: cswitch

   Num Ports: 3456

   Used Ports: 4

   Configured Ports: 128

   MTU: 1500

   CDP Status: listen

   Beacon Enabled: false

   Beacon Interval: 1

   Beacon Threshold: 3

   Beacon Required By:

   Uplinks: vusb0

   Portgroups: WAN


vSwitch1

   Name: vSwitch1

   Class: cswitch

   Num Ports: 3456

   Used Ports: 1

   Configured Ports: 3456

   MTU: 1500

   CDP Status: listen

   Beacon Enabled: false

   Beacon Interval: 1

   Beacon Threshold: 3

   Beacon Required By:

   Uplinks:

   Portgroups:

[root@ESXi01:~] esxcli network vswitch standard uplink add -u vusb1 -v vSwitch1

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

vSwitch0

   Name: vSwitch0

   Class: cswitch

   Num Ports: 3456

   Used Ports: 11

   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


WAN

   Name: WAN

   Class: cswitch

   Num Ports: 3456

   Used Ports: 4

   Configured Ports: 128

   MTU: 1500

   CDP Status: listen

   Beacon Enabled: false

   Beacon Interval: 1

   Beacon Threshold: 3

   Beacon Required By:

   Uplinks: vusb0

   Portgroups: WAN


vSwitch1

   Name: vSwitch1

   Class: cswitch

   Num Ports: 3456

   Used Ports: 3

   Configured Ports: 3456

   MTU: 1500

   CDP Status: listen

   Beacon Enabled: false

   Beacon Interval: 1

   Beacon Threshold: 3

   Beacon Required By:

   Uplinks: vusb1

   Portgroups:



Add a new port group :

esxcli network vswitch standard portgroup add -p OKD -v vSwitch1


No comments:

Post a Comment