If you have services running on a virtual machine and do not want the IP address to be changed, you can bind an IP address to the MAC address of a virtual machine. The IP address you bind must not overlap an 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 the DHCP tab.
- Select Bindings from the left panel.
- Click the Add () icon.
- Configure the binding.
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.
Select the NSX Edge interface to bind.
Select the virtual machine to bind.
VM vNIC Index
Select the virtual machine NIC to bind to the IP address.
Type the host name of the DHCP client virtual machine.
Type the address to which to bind the MAC address of the selected virtual machine.
Specify the subnet mask. The subnet mask should be same as the subnet mask of the Edge interface or the DHCP Relay, in case of distributed router.
Type the domain name of the DNS server.
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.
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.
Type 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.
If you did not select Lease never expires, select whether to lease the address to the client for the default time (1 day), or type a value in seconds.
- Click Add.
- Click Publish Changes.