Using static IP addresses
Static private IP addresses
Skytap environments use private networks. IP addresses on these networks are accessible only by other machines connected within your Skytap account; they are not accessible from the public Internet.
There are several ways to get a static IP address on these networks:
Use the IP address provided by the Skytap automatic network
When a VM is attached to an automatic network, the Skytap DHCP server automatically assigns the VM an IP address. If the guest OS uses DHCP, no additional configuration changes are needed. The IP address remains static, unless you edit the IP address on the Skytap network adapter, change the network subnet, or detach the VM from the network (and reattach it in a different order).
Edit the IP address provided by the Skytap automatic network
The IP address provided by the Skytap automatic network can be edited to any available IP address on the network subnet. If the guest OS uses DHCP, no additional configuration changes are needed. The VM will recognize the IP address you’ve set. For instructions, see Editing a VM hostname or primary IP address.
Assign a static IP address within the guest OS and edit the Skytap automatic IP address to match it
If you want to use Skytap automatic networks, but your VM guest OS requires a static IP address:
- Attach the VM to the automatic network (if it isn’t already attached).
- Edit the VM IP address on the network adapter to match the IP address you want to use in the guest OS.
- Set a static IP address in the guest OS. Make sure the IP address information matches the settings in the automatic network (network subnet, domain name, network gateway) and the network adapter settings (IP address and computer name
[hostname]). If this information doesn’t match, the VM may not be able to reach the Internet.
Use a manual network
For full control over a network, including determining a static address space and providing your own DHCP and DNS services, consider a manual network. For more information, see Creating a manual network. Note that manual networks do not work with Skytap advanced networking features (public IP addresses, published services, and Network Address Translation (NAT)).
Static public IP addresses
If you need a static IP address that is accessible from the public Internet, attach a static public IP address. The static public IP address remains attached to the VM network adapter until you detach it.
- The static public IP address is an additional, optional IP address for the VM. The VM retains its private IP address.
- The static public IP address automatically routes to the VM through the Skytap firewall. The public IP address does not need to be configured within the guest OS.
- Public IP addresses can be assigned only to VMs on automatic networks.