- To create a new switch type:
- Then add a portgroup
Note: Lower-case -a for adding a switch, and upper-case -A for adding a portgroup
- If you run the command esxcfg-vswitch –l you will see this information
- If you wish to see this reflected in the VI Client then type:
Note: This is how my switch configuration looks now
Creating a vSwitch (Single NIC)
- In this case we will create a new switch and then the port group like so:
esxcfg –A production
Note: This is how my switch configuration looks now- Next patch a NIC to the vSwitch with
- Note: this is a case-sensitive option. –l lists switches, whereas –L links nic’s to switches
- If you run the command esxcfg-vswitch –l you will see this information
- If you wish to see this reflected in the VI Client then type:
service mgmt-vmware restart
Note: This is how my switch configuration looks now
Creating a vSwitch ( Multiple NIC's)
- esxcfg-vswitch -L vmnic2 vSwtch1
- If you wish to see this reflected in the VI Client then type:
Deleting a Switch from vSwitch
Note: I am delete my vSwitch2 to free up my NIC’s…
esxcfg-vswitch –d vswitch2
No comments:
Post a Comment