DHCP service requires a pool of IP addresses.
An IP pool is a sequential range of IP addresses within the network. Virtual machines protected by NSX Edge that do not have an address binding are allocated an IP address from this pool. An IP pool's range cannot intersect one another, as a result one IP address can belong to only one IP pool.
Procedure
- Log in to the vSphere Web Client.
- Click .
- Double-click an NSX Edge.
- Click .
- Click Add.
- Configure the following general options for the new DHCP IP pool.
Option Action Start IP Enter the starting IP address for the pool. End IP Enter the ending IP address for the pool. Domain Name Enter the domain name of the DNS server. This setting is optional. Auto Configure DNS Select to use the DNS service configuration for the DHCP binding. Primary Name Server If you did not select Auto Configure DNS, type the Primary Nameserver for the DNS service. You must enter the IP address of a DNS server for hostname-to-IP address resolution. This setting is optional. Secondary Name Server If you did not select Auto Configure DNS, type the Secondary Nameserver for the DNS service. You must enter the IP address of a DNS server for hostname-to-IP address resolution. This setting is optional. Default Gateway Enter the default gateway address. If you do not specify the default gateway IP address, the internal interface of the NSX Edge instance is taken as the default gateway. This setting is optional. Subnet Mask Specify the subnet mask. The subnet mask must be same as the subnet mask of the Edge interface or the DHCP Relay, in case of a distributed router. Lease Never Expires Select to bind the address to the MAC address of the virtual machine forever. If you select this, Lease Time is disabled. Lease Time Select whether to lease the address to the client for the default time (one day), or enter a value in seconds. If you selected Lease never expires, you cannot specify the lease time. This setting is optional. - (Optional) Configure the following DHCP options.
Option Action Next Server Next boot TFTP server, used by the PXE boot or bootp. TFTP server name (option 66) Enter a unicast IPv4 address or a host name that the device will use to download the file specified in bootfile name (option 67). TFTP server address (option 150) Enter one or more TFTP server IPv4 addresses. Bootfile name (option 67) Enter the bootfile file name that is to be downloaded from the server specified in TFTP server name (option 66). Interface MTU (option 26) The Maximum Transmission Unit (MTU) is the maximum frame size that can be sent between two hosts without fragmentation. This option specifies the MTU size to be used on the interface. One MTU size (in bytes) can be set for each pool and static binding. The MTU minimum value is 68 bytes and the maximum value is 65535 bytes. If the interface MTU is not set on the DHCP server, DHCP clients will keep the OS default setting of the interface MTU. Classless static route (option 121) Each classless static route option may have multiple routes with the same destination. Each route includes a destination subnet, subnet mask, next hop router . Note that 0.0.0.0/0 is an invalid subnet for a static route. For information about classless static routes and option 121, refer to RFC 3442. - Click Add.
- Enter the destination and the next hop router IP address.
In NSX 6.2.5 and later, if a DHCP pool is configured on an Edge Services Gateway with both classless static routes and a default gateway, the default gateway is added as a classless static route.
- Click Add or OK.