Using NAT between the vCenter Server system and ESXi/ESX hosts (1010652)

原文链接:https://kb.vmware.com/s/article/1010652

    1. Ensure that the NAT device is configured to redirect UDP traffic on port 902 to the vCenter Server.
    2. Add the ESXi/ESX host to the vCenter Server inventory.

      Note: This causes the vCenter agent (vpxa) service to be installed on the host.

    3. Log in to the ESXi/ESX host as root.
    4. Navigate to the /etc/opt/vmware/vpxa/ directory in the ESXi/ESX file system.

      Note: In ESXi 5.x/6.0, navigate to /etc/vmware/vpxa.

    5. Open the vpxa.cfg file using an text editor.
    6. In the file, change the serverIp setting and add the preserveServerIp setting. For the serverIP tag, enter the NAT IP address. 

      For example:

      <config>
      <vpxa>
      ...
      <serverIp>NAT_IP_address</serverIP>
      <preserveServerIp>true</preserveServerIp>
      </vpxa>
      ...
      </config>


    7. Save the changes and close the file.
    8. Restart the vCenter agent service by running this command in the ESXi/ESX service console/SSH session:

      For ESX:

      # service vmware-vpxa restart

      For ESXi:

      # services.sh restart

    9. Reconnect the ESXi/ESX host
原文地址:https://www.cnblogs.com/mulinux/p/9040520.html