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.

Procedure

  1. Log in to the vSphere Web Client.
  2. Click Networking & Security and then click NSX Edges.
  3. Double-click an NSX Edge.
  4. Click the Manage tab and then click the DHCP tab.
  5. Select Bindings from the left panel.
  6. Click the Add (Add icon) icon.
  7. Configure the binding.

    Option

    Action

    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.

    Interface

    Select the NSX Edge interface to bind.

    VM Name

    Select the virtual machine to bind.

    VM vNIC Index

    Select the virtual machine NIC to bind to the IP address.

    Host Name

    Type the host name of the DHCP client virtual machine.

    IP Address

    Type the address to which to bind the MAC address of the selected virtual machine.

    Subnet Mask

    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.

    Domain Name

    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.

    Default Gateway

    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.

    Lease Time

    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.

  8. Click Add.
  9. Click Publish Changes.