Search the VMware Knowledge Base (KB)
View by Article ID

Host Profile compliance check fails on a profile created from an ESXi host using DHCP (2106112)

  • 2 Ratings


  • The host profile becomes non-compliant when the initial configuration was taken from an ESXi host configured with DHCP and assigned to an ESXi host with static IP settings.

  • The compliance check shows the error:

Number of IPv4 routes did not match


This issue occurs if the Host Profile is created using a reference ESXi host configured to use DHCP. The Host Profile created from this will have a fixed Default Gateway set and one static route. This issue occurs when configuring an ESXi host with static settings. This creates two routes as Non-Compliant when compared to the host profile is expecting one static route.

After extracting the profile, the host profile is modified to change the management VMkernel address from DHCP to static.


This is a known issue affecting VMware vSphere 6.0.x.

Currently, there is no resolution.

To work around this issue, manually add the default gateway.
  1. Right-click the Host Profile and click Edit Host Profile.
  2. Select the defaultTcpipStack under Netstack Instance Profile.
  3. Add a sub-profile under IP Route Configuration. This should add a new sub-profile named GenericStaticRouteProfile.
  4. Edit the newly added GenericStaticRouteProfile with the below information.

    Destination Network address:
    Destination prefix length:     0
    IP Next Hop:                   <default gateway IP address>
    Device name:                   <vmknic>
    IP Family type:                "IPv4"

Additional Information

There is a similar issue that occurs when there are multiple vmkernel ports. For more information, see Host profile compliance check fails with the error: IPv4 routes did not match (2040943).

To be alerted when this article is updated, click Subscribe to Document in the Actions box.


Host Profiles, IPv4 route, non-compliant

See Also

Update History

11/25/2016 - Added Product 6.0 under product version

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


  • 2 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)

Please enter the Captcha code before clicking Submit.
  • 2 Ratings