Managing vSphere Standard Switch
Esxcli network vswitch command is used to do the networking configuration of a vswitch (Standard or vDS). The available namespace with this command are: standard and dvs as shown below
To list all Standard vSwitch present on the Esxi host
|
# esxcli network vswitch standard list |
Add Remove vSphere Standard Switch
We can add/remove new standard switches or create a new portgroup in vswitch or associate uplinks to vswitch using the command
# esxcli network vswitch standard
The namespaces associated with the above command as shown below
Adding a new vSwitch to Esxi host
|
# esxcli network vswitch standard add –v=Name of vSwitch Example: # esxcli network vswitch standard add –v=vSwitch5 |
Adding a new vswitch with specific number of ports
|
# esxcli network vswitch standard add –v=vSwitch5 - -ports=256 |
Note: By default when a vSwitch is created it is created with 128 ports
Configuring Port Group on Standard Switches
Port groups are configured on vSwitch using the command
# esxcli network vswitch standard portgroup
The associated namespace with this command are as shown below:
Create a new portgroup in a standard vswitch
The following command is used to create a new portgroup on a standard vSwitch
|
# esxcli network vswitch standard portgroup add –p= name of port group –v= Name of vSwitch Example: # esxcli network vswitch standard portgroup add –p=”FT NW” –v=vSwitch6 |
Removing a portgroup from a vSwitch
Below command will delete a portgroup from a standard vswitch
|
# esxcli network vswitch standard portgroup remove –p=”FT NW” –v=vSwitch1 |
Configuring CDP on Standard switches
Configuring CDP settings or MTU on a standard vswitch is done using the command :
# esxcli network vswitch standard set
To enable CDP on a vswitch
|
# esxcli network vswitch standard set –c= cdp mode –v=vSwitch name The accepted values for CDP is listen, advertise and both Example: # esxcli network vswitch standard set –c=listen –v=vSwitch5 |
To disable CDP on a vswitch
|
<span style="color: #000000;"><em># esxcli network vswitch standard set –c=down –v=vSwitch5</em></span> |
Configuring uplinks for Standard vSwitch
The command used to add/remove uplinks to a standard vSwitch is
# esxcli network vswitch standard uplink
Adding an uplink to an existing vSwitch
|
<span style="color: #000000;"><em># esxcli network vswitch standard uplink add –u=uplink name –v=vswitch name</em></span> <span style="color: #000000;">Example</span> <span style="color: #000000;"><em># esxcli network vswitch standard uplink add -u=vmnic1 -v=vSwitch1</em></span> |
The above command will add a new uplink vmnic1 to the vswitch1
Removing an existing uplink from a vSwitch
|
<span style="color: #000000;"><em># esxcli network vswitch standard uplink remove -u=vmnic1 -v=vSwitch1</em></span> |
Setting Failover/Security/Traffic shaping policy configuration on a standard vSwitch
The command used to configure the policies on a standard vswitch is
# esxcli network vswitch standard policy
The available namespace with this command are shown below
Checking the configured policy (Failover/Security/Traffic Shaping) on a standard vSwitch
For e.g:… Read More
Like this:
Like Loading...