DHCP service requires a pool of IP addresses.
About this task
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, thus one IP address can belong to only one IP pool.
- Log in to the vSphere Web Client.
- Click Networking & Security and then click NSX Edges.
- Double-click an NSX Edge.
- Click the Manage tab and then click DHCP.
- Click the Add () icon.
- On the General tab, configure the pool.
Auto Configure DNS
Select to use the DNS service configuration for the DHCP binding.
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.
Enter the starting IP address for the pool.
Enter the ending IP address for the pool.
Enter the domain name of the DNS server. This is optional.
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 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 is optional.
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 is optional.
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 distributed router.
Select whether to lease the address to the client for the default time (1 day), or enter a value in seconds. You cannot specify the lease time if you selected Lease never expires. This is optional.
- (Optional) On the DHCP Options tab, configure DHCP options.
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.
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 should 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 the Add () icon.
Enter the destination and the next hop router IP address.
- Click OK.