You can use DHCP binding to bind a virtual machine's MAC address to an IPv4 address.
You can use DHCP binding in your environment for services that must keep the same IP address.
Procedure
- In the top navigation bar, click Networking.
- Click the name of the network that you want to edit.
- In the IP Management section, click DHCP.
- Under DHCP, click IPv4 Bindings.
- Click New.
- Enter a name and, optionally, a description for the new binding.
- Enter an IP address to bind to a MAC address.
- Enter a MAC address to which to bind the IP address.
- Enter a lease time for the binding.
- Enter the IP address for a gateway to use for the binding.
This is the gateway IP address that the DHCP server provides to the DHCP client. The IP address must belong to the subnet of the network. If you don't enter an IP address, the gateway IP address of the network will be used.
- Enter a host name for the DHCP client and click Next.
- (Optional) If you want to configure DNS through DHCP, enter up to two DNS servers.
- Click Next.
- Review your settings and click Finish.
What to do next
You can edit your IPv4 DHCP bindings as needed.