ESXi 5.0 Command: Create Standard Switch


Here is a example of using esxi command to create a virtual standard switch, and add the vMotion port group (vlan 100).

##Standard vSwitch Settings

esxcli network vswitch standard add -v vSwitch1

esxcli network vswitch standard uplink add -v vSwitch1 -u vmnic3  
esxcli network vswitch standard uplink add -v vSwitch1 -u vmnic4

esxcli network vswitch standard policy failover set -v vSwitch1 -n true -f beacon -l portid -b false -a vmnic3,vmnic4
esxcli network vswitch standard policy security set -v vSwitch1 -p false -m false -f false
esxcli network vswitch standard policy shaping set -v vSwitch1 -e false

esxcli network vswitch standard portgroup add -v vSwitch1 -p VMOTION-10GB

esxcli network vswitch standard portgroup set -p VMOTION-10GB -v 100

esxcli network ip interface add -i vmk1 -p VMOTION-10GB
esxcli network ip interface ipv4 set -i vmk1 -I 192.168.x.x -N 255.255.255.0 -t static
esxcli network ip interface set -i vmk1 -e true

vim-cmd hostsvc/vmotion/vnic_set vmk1

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s