vCenter Server Appliance error : Setting ip/ipv6 configuration failed: IP Configuration not allowed
search cancel

vCenter Server Appliance error : Setting ip/ipv6 configuration failed: IP Configuration not allowed

book

Article ID: 379045

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Error Screenshot : 

The error mentioned above occurs in the following scenarios : 

  • Scenario 1 : While setting the default gateway from the console.
    • When vCenter is connected to a distributed portgroup and if the vCenter is unreachable over the network, the default gateway field might show up blank under "Configure Management Network" option. Trying to set the default gateway ends up in this error.
  • Scenario 2 : When attempting to change the IP address of the vCenter Server via Appliance Console.

  • Scenario 3 : If vCenter is restored from a backup or re-registered to another host while its underlying network is bound to a distributed portgroup, the VM's network adapter might not connect automatically, resulting in this error.

Environment

VMware vCenter Server 8.x

VMware vCenter Server 7.x

VMware vCenter Server 6.x

Resolution

Note : Once the vCenter is recovered on a standard switch, the gateway should automatically appear in the console under "Configure Management Network," restoring the VM's network connectivity. If it does not, follow the steps outlined in Scenario 2 below : 

  • Scenario 2 :

    • If the error occurs while trying to change the IP address/ Subnet Mask/ Gateway of the vCenter Server via Appliance Console, follow the below steps: From the VCSA console, press Alt+F1, log in using root credentials, and then type 
shell
    • Type the following command and hit Enter :
/opt/vmware/share/vami/vami_config_net
    • The following options will appear : 

    • To change the IP address/subnet of the vCenter Server Appliance, enter 6.
    • To change the default gateway of the vCenter Server Appliance, enter 2.
    • Hit Enter after every response until you see the below : 
Reconfiguring eth0...
Network parameters successfully changed to requested values
    • To confirm that everything has been setup correctly, enter 0 to show current configuration.

Additional Information