VMware Cloud Community
TheVMinator
Expert
Expert

Create a vmkernel port on a virtual distributed switch with esxcli

How do you create a vmkernel port on a virtual distributed switch with esxcli?

0 Kudos
3 Replies
ramakrishnak
VMware Employee
VMware Employee

# esxcli network ip interface add --help

# esxcli network vswitch dvs --help

please also refer : http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100812...

Thanks,

TheVMinator
Expert
Expert

This works on a standard switch but it doesn't work for me on a vds.  Have you tried it?  The documentation says something about some functions not being available on the vds...

0 Kudos
Graham_Gunter
Contributor
Contributor

Little late to the party ...

Run the following command to find your dvs-name and dvport-id you wish to add the vmkernal too.

esxcfg-vswitch -l

Once you have determined the correct information use the following command:

esxcli network ip interface add --interface-name=vmk0 --dvs-name=DSwitch --dvport-id=51

Note - Make certain to change the dvs-name and dvport-id to match your environment.

0 Kudos