By default, vRealize Automation uses Dynamic Host Configuration Protocol (DHCP) to assign IP addresses to provisioned machines.
Fabric administrators can create network profiles to define a range of static IP addresses that can be assigned to machines. Network profiles can be assigned to specific network paths on a reservation. Any cloud machine or virtual machine provisioned by cloning or kickstart/autoYaST that is attached to a network path that has an associated network profile is provisioned using static IP address assignment.
Tenant administrators or business group managers can also assign network profiles to blueprints by using the custom property VirtualMachine.NetworkN.ProfileName. If a network profile is specified in both the blueprint and the reservation, the profile specified in the blueprint takes precedence.
When a machine that has a static IP address is destroyed, its IP address is made available for use by other machines. The process to reclaim static IP addresses runs every 30 minutes, so unused addresses may not be available immediately after the machines using them are destroyed. If there are not available IP addresses in the network profile, machines cannot be provisioned with static IP assignment on the associated network path.
1-Create a Network Profile for Static IP Address Assignment
Fabric administrators can create network profiles to define a range of static IP addresses that can be assigned to machines.
1-Log in to the vRealize Automation console as a fabric administrator. In my case, I have created one already in my Active Directory with name “email@example.com” and gave permission to configure fabric group during “create Fabric Group” Configuration. Enter the “credentials” and click “Login”
You may choose “My Goal” walkthrough wizard and go to “Infrastructure” tab -> Reservations -> Network Policies -> Click “New Networks Policy-> External”
1-In “Network Profile information” tab, Enter Network Profile name “VMExpo-External (Internet)” and description “optionally”
2-Type a mask address “255.255.255.0” and Gateway optionally.
NOTE: The gateway address is required for a one-to-one NAT network profile.
3- Additionally type DNS Suffix “vmexpo.local” and DSN Search Suffixe “vmexpo.local”
2-Configure IP Ranges
A fabric administrator can define one or more ranges of static IP addresses for use in provisioning a machine.
Click the IP Ranges tab ->Click “New Network Range”.
1-In “IP Range” tab, Click “New Network Range”
2-The New Network Range dialog box appears as shown below, enter a name “VMExpo External IPs” and a description “optionally”
3-Enter an IP address Range “192.168.11.50-192.168.11.60” and Click “OK”.
The newly defined IP address range appears in the “Defined Ranges list”. The IP addresses in the range appear in the “Defined IP Addresses list” as shown below. Once done, Click “OK”
Verify your first created network profile as shown below
2-Assign a Network Profile to a Reservation
Fabric administrators can assign a network profile to a reservation to enable static IP assignment to machines provisioned on that reservation.
Network profiles can also be assigned to blueprints by using the custom property VirtualMachine.NetworkN.ProfileName. If a network profile is specified in both the blueprint and the reservation, the profile specified in the blueprint takes precedence.
You may choose “My Goal” walkthrough wizard and go to “Infrastructure” tab -> Reservations -> Reservations -> Click Reservation “RG-Cluster-Res-1” and Choose “Edit”
In Edit Reservation -> Click the “Network” tab. ->Assign a network profile “VMEXpo-External (Internet)” to “PG-VM-External” Network path. Once done. Click “OK”
Repeat the same process to assign other Network Profiles to their respective Network paths