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 port group 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 port group, the VM's network adapter might not connect automatically, resulting in this error.

Environment

  • VMware vCenter Server 8.0.x
  • VMware vCenter Server 7.0.x
  • VMware vCenter Server 6.0.x

Resolution

  • Scenario 1 / Scenario 3:

    • Edit the settings of the vCenter VM. Uncheck the "Connect" box for Network Adapter 1 and click Save. Edit the settings again and check the "Connect" box Network Adapter 1 and click Save. Try to set the gateway again from the DCUI.

    • If the above step does not work: Since the vCenter is connected to a distributed port group and is currently offline, it should be recovered by following the steps outlined in the article: vCenter network connectivity lost - Recover vCenter network when connected to a Distributed Switch
    •  

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, select 6.
    • To change the default gateway of the vCenter Server Appliance, select 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