Hi,
Is it ESXi or ESX ?
For ESX
ESXI
To add a vmknic to a port group, use this command:
• esxcfg-vswitch -A “Management Network” vSwitch1
now you can assign a portgroup “Management Network” to the new vSwitch1• esxcfg-vswitch -L vmnic0 vSwitch1
this step adds pNIC “vmnic0″ to the vSwitch1• esxcfg-vmknic -a “Management Network” -i 160.xxx.xxx.xxx -n 255.xxx.xxx.xxx
Note : If are not able to access DCUI, then only option might to reboot the host. If there is any VM running on local datastore, take backup , since we dont know the state of ESX host.
Regards
Mohammed