VMware Cloud Community
tdubb123
Expert
Expert

vicfg-vmknic -s

how do I add a vmkernel nic to a existing dvswitch/dvportgroup?

vicfg-vmknic --server x.x.x.x -a -i x.x.x.x -n 255.255.0.0 -s dvswitchname?

0 Kudos
4 Replies
bulletprooffool
Champion
Champion

http://www.vmware.com/pdf/vsphere4/r41/vsp4_41_vcli_inst_script.pdf page 117.

Run vicfg-vmknic --add to add a VMkernel network interface. You must specify the IP address using
--ip, the netmask, and the port group name.
One day I will virtualise myself . . .
0 Kudos
tdubb123
Expert
Expert

still cant get it to work

vicfg-vmknic --vihost xxxxxxxxxxxxxx -a --ip x.x.x.x -n 255.255.0.0 --dvs-name dvswitchname --dvport-id 115
Can not specify dvsName, dvportId parameters for --add operation.
0 Kudos
krishnaprasad
Hot Shot
Hot Shot

Hi,

    I think executing 2 sets of actions together will not work for esxcfg-vmknic command sets. Try adding a vmknic to the portgroup first using vicfg-vmknic -a -i DHCP -p <Portgroup Name> . Then try adding the DVSwitch properties to the same vmknic.

Thanks,

Krishnaprasad

0 Kudos
depping
Leadership
Leadership

No you will need to do them seperately unfortunately, so in two commands.

Duncan (VCDX)

Available now on Amazon: vSphere 4.1 HA and DRS technical deepdive

0 Kudos