The edge gateway supports IP address pooling and one-to-one static IP address allocation. Static IP address binding is based on the managed object ID and interface ID of the requesting client.

For more information about the DHCP features for Advanced Networking Services, see DHCP Service in the vCloud Air Advanced Networking Services Guide.

1

Log in to vCloud Air as an administrator. See Log in to vCloud Air for information.

2

Create a login session with vCloud Director. See Create a Session for a Virtual Data Center in a Service for information.

3

Using the vCloud API, query vCloud Director for the ID of the edge gateway you require DHCP configuration details about. See Querying the vCloud API for information.

To get the details for the DHCP configuration, issue the following request:

GET https://vchs.vmware.com/hybridity/api/gateways/gatewayId/dhcp/config

In the request header, include the OATH token and the Accept header that you obtained when creating a login session:

Accept: application/json
Content-Type: application/json
X-Vcloud-Authorization: "vcloud-auth-token"

If the request is successful, the server returns HTTP response code 200 and the details of the DHCP configuration.

Request Header – Get the DHCP Configuration

GET https://vchs.vmware.com/hybridity/api/gateways/gw-5/dhcp/config
Accept: application/json
Content-Type: application/json
X-Vcloud-Authorization: "d6eFLOqQYfuEn2MJTp7BQ2ISEO+ZYaEgTcqBy8wZQ6js="

Request body not required.

Response Body – Get the DHCP Configuration

{
  "featureType" : "dhcp_4.0"
  "version" : 8,
  "enabled" : false,
  "staticBindings" : {
    "staticBindings" : [{
      "autoConfigureDNS" : true,
      "defaultGateway" : "192.168.4.1",
      "domainName" : "eng.vmware.com",
      "primaryNameServer" : "192.168.4.1",
      "secondaryNameServer" : "4.2.2.4",
      "leaseTime" : "infinite",
      "subnetMask" : "255.255.255.0",
      "vmId" : "vm-111",
      "vnicId" : 1,
      "hostname" : "abcd",
      "macAddress" : "00:50:56:01:01:49",
      "ipAddress" : "192.168.4.2",
    }, ]
 ]
  },
  "ipPools" : {
    "ipPools" : [{ 
      "autoConfigureDNS" : true,
      "defaultGateway" : "192.168.4.1",
      "domainName" : "eng.vmware.com",
      "primaryNameServer" : "192.168.4.1",
      "secondaryNameServer" : "4.2.2.4",
      "leaseTime" : "3600",
      "dnsType" : "86400",
      "subnetMask" : "255.255.255.0",
      "ipRange" : "192.168.4.192-192.168.4.220",
      "allowHugeRange" : false,
    }, ]
  },
  "logging" : {
    "enable" : false,
    "logLevel" : "info"
  }
}