Friday, 2 January 2015

create distributed switch vmware 5.5

In vCenter home, go to Networking

Now you will able to see datacenter

Right-click your Datacenter object in inventory then Select “New vSphere Distributed Switch”.

Choose the preferred version for your DVS. If you need to maintain compatibility with an older version of vSphere, then choose the minimum version required. For example – if you need to join a vSphere 4.1 host to this DVS, choose Distributed Switch 4.1.0. For 5.0, choose Distributed Switch 5.0.0. If you are only going to join vSphere 5.5 hosts, leave it at the default Distributed Switch 5.5.0. Note that upgrades can be done without service interruption at any point, but downgrades are not possible, so choose appropriately. Click Next to proceed

Give DVS Name and Number of port group

we will add ESXi host later, Select "Add Later". Click Next

Check once, "Click Finish"

Now you can see new DVS in Networking

Right Click on New DVS and click on New Port Group

Give Port Group Name and on Vlan type select VLAN if you have VLAN else let it be none by default. here i have VLAN 6 

Check Setting once, click Finish

Again right Click on New DVS and click on New Port Group

Give Port Group Name and on Vlan type select VLAN and i here my VLAN which i am using for kernel

Check Setting once, click Finish

RIght click on DVS and click on Add Host

Now you will able to see all ESXi host available in vCenter

Select ESXi you want add DVS and vmnics of that ESXi, here i have selected vmnics 2,3,4,5. i will be using vmnic 0 and 1  for my management in standard switch. you can use management in DVS also but carefully move nic from standard switch to dvs switch. once management nic is not available you will lose you esxi control, the you have manually login to ESXi console and do resetting. Management nic do carefully

Since i am using standard switch for my management, i can see vmk0 in vSwitch0, click next

now i am not migrating switch from standard to DVS, so i will just go forward, click Next

Check setting once, Click Finish

i go to Host and Cluster, select ESXi which i have added to DVS, go to Configuration, networking
Now i can see my DVS 

Since i am using standard switch for management only i need to create virtual adapter for ESXi Kernel
Click on Manage Virtual Adapter and click Add

Creating Type i will select new virtual adapter, since i don't have kernel adapter in standard switch. click Next 

Vitrual Adapter Type "VMKernel", Click Next

In Select Port Select port group which i have created after DVS creation and check on "use this virtual adapter for vMotion" Click Next

Now i enter my ESXi kernel ip and subbnet, Click Next

Check it once, Click Finish

Now vmk1 is created for kernel, to verify i can login to other esxi via putty and ping  kernel adapter
vmkping -I vmk1
this command will ping to vmk1 if it does have communication to vmk0 also  this will ping if kernel adapter is properly configured with Vlan

Now my DVS is configured in ESXi

if you have diffent vmnics assigned to dvuplink, you can change it. click on remove then you will see "click to add nic" select vmnic to respective dvuplink

if you port group is assigned to wrong dvUplink.
Go to Networking from Home
Right click on port group and click on edit setting. 
Go "Teaming and Failover"
Here you can see Active Uplink and standby uplink
move dvUplink as per your requirement. For Eg i have a port group for kernel and kernel vlan is available on dvUplink 1 and 5, below image you can see dvUplink is in StandBy, so kernel communication will not work, move dvuplink 1 and 5 standby to active and move other dvUplink to stand by. now communication with port group will work.