Latest Articles

ESXCLI Basics: Troubleshooting Management Network Connection on ESXi 5.x

Another quick post about ESXCLI basics. Here is a procedure how to quickly recover the Management Network functionality on your ESXi host.

  1. First, login through iLO or iDRAC or iRMC, whatever remote management solution your server is equipped with.
  2. Press F2 on Direct Console UI, provide the root password and enable ESXi Shell via Troubleshooting Options.
  3. Press ALT+F1 and log in.
  4. List vmkernel interfaces: # esxcli network ip interface list
  5. Remove vmkernel interface(s): # esxcli network ip interface remove –i vmkX (where X is the vmk# you want to remove)
  6. List portgroups: # esxcli network vswitch standard portgroup list
  7. Remove Management Network portgroup: # esxcli network vswitch standard portgroup remove –p ‘Management Network’ –v vSwitchX (where X is the vSwitch number)
  8. Remove vmnics: # esxcli network vswitch standard uplink remove –u vmnicX –v vSwitchX (where X is the uplink number and vSwitch number)
  9. Add new Management Network portgroup: # esxcli network vswitch standard portgroup add –p ‘Management Network’ –v vSwitchX
  10. Add new vmkernel interface: # esxcli network ip interface add –i vmk0 –p ‘Management Network’ –m 1500
  11. Configure the new vmkernel interface: # esxcli network ip interface ipv4 set –i vmk0 –I <IP_address> -N <Network_Mask> -t static
  12. Add vmnics: # esxcli network vswitch standard uplink add –u vmic0 –v vSwitch0
  13. Next, type: # exit
  14. Press ALT+F2 to return to DCUI and login if necessary.
  15. Disable ESXi Shell.
  16. Restart the Management Network.
  17. Logout.

Done! 🙂

Reconnect the host to vCenter Server to finalize the configuration.

Cheers!

– Marek.Z

About Marek (288 Articles)
Marek is an IT professional with 15+ years of experience in the IT industry and is currently working as PSO Senior Consultant SDDC at VMware for the NEMEA region.

6 Comments on ESXCLI Basics: Troubleshooting Management Network Connection on ESXi 5.x

  1. This post just saved me hours of messing around, nearly had to factory reset but found this and it fixed the problem. THANK YOU!!

  2. you saved my live today 🙂

  3. Claudio Scavazza // 22 March, 2015 at 16:39 // Reply

    Hi, many thanks for your post, you saved me!!!!
    I used these commands to solve my problem on Esxi Management and I learn more on ESXi.
    Thank you very much

  4. Hi, many thanks for your post!!!
    Спасибо!!!

  5. You help me a lot of.
    Thank you

Leave a reply...