%BOOK_ENTITIES; ]>
Configuring Multiple IP Addresses on a Single NIC &PRODUCT; now provides you the ability to associate multiple private IP addresses per guest VM NIC. This feature is supported on all the network configurations—Basic, Advanced, and VPC. Security Groups, Static NAT and Port forwarding services are supported on these additional IPs. In addition to the primary IP, you can assign additional IPs to the guest VM NIC. As always, you can specify an IP from the guest subnet; if not specified, an IP is automatically picked up from the guest VM subnet. You can view the IPs associated with for each guest VM NICs on the UI. You can apply NAT on these additional guest IPs by using firewall configuration in the &PRODUCT; UI. You must specify the NIC to which the IP should be associated. This feature is supported on XenServer, KVM, and VMware hypervisors. You need to configure the secondary IP address on the guest VM. &PRODUCT; will not configure the acquired IP address on the VM. Ensure that you assign IPs to NIC each time the VM reboots. Some of the use cases are described below: Building network appliances: Network appliances, such as firewalls and load balancers, generally work best when they have access to multiple IP addresses on the network interface. Moving private IP addresses between interfaces or instances. Applications that are bound to specific IP addresses can be moved between instances. Hosting multiple SSL Websites on a single instance. You can install multiple SSL certificates on a single instance, each associated with a distinct IP address.
Assigning Additional IPs to a VM Log in to the &PRODUCT; UI. In the left navigation bar, click Instances. Click the name of the instance you want to work with. In the Details tab, click NICs. Click View All. Click Acquire New IP, and click Yes in the confirmation dialog. You are prompted for confirmation because, typically, IP addresses are a limited resource. Within a few moments, the new IP address should appear with the state Allocated. You can now use the IP address in Port Forwarding or StaticNAT rules.
Port Forwarding and StaticNAT Services Changes Because multiple IPs can be associated per NIC, you are allowed to select a desired IP for the Port Forwarding and StaticNAT services. The default is the primary IP. To enable this functionality, an extra optional parameter 'vmguestip' is added to the Port forwarding and StaticNAT APIs (enableStaticNat, createIpForwardingRule) to indicate on what IP address NAT need to be configured. If vmguestip is passed, NAT is configured on the specified private IP of the VM. if not passed, NAT is configured on the primary IP of the VM.