Manage IP addresses on a Compute Instance
EachCompute Instance is equipped with several IP addresses, which may enable it to be accessible over the public Internet and other Akamai services or accessible just to other Compute Instances within a VPC. This guide covers how to manage these IP addresses (including viewing, adding, removing, transferring, or sharing them) through Cloud Manager.
Viewing IP addresses
-
Log in to Cloud Manager and click the Linodes link in the sidebar.
-
Click on your Compute Instance from the list to view more details.
-
Within the top Summary section, you can view the primary IPv4 and IPv6 addresses.
-
To view all public and private IP addresses for this Compute Instance (along with any associated rDNS values), click the View all IP Addresses link or navigate to the Network tab and review the IP Addresses section.
IP addresses for a VPC or VLAN interface are visible in the Configurations tab.
Types of IP addresses
IPv4
-
Public IPv4 Address: Most Compute Instances (those created without a VPC) have a single public IPv4 address, which enables your applications to be accessible over the Internet. Additional addresses can be provided with technical justification. If a VPC interface is configured when a Compute Instance is created, that Compute Instance typically does not have a public IPv4 address unless the Assign a public IPv4 address option is selected.
-
VPC IPv4 Address: If a Compute Instance is assigned to a VPC, that Compute Instance is assigned an IPv4 address from the CIDR range configured on the subnet. This IP address can be automatically generated or manually provided. Optionally, if the Assign a public IPv4 address option is selected during creation, the Compute Instance is assigned public IPv4 address as well.
-
VLAN IPv4 Address: When a Compute Instance is configured with a VLAN, you assign it a IPv4 address to use within the VLAN. It is also automatically assigned a public IPv4 address.
-
Private IPv4 Address: Optionally, a private IPv4 address can be assigned to a Compute Instance. This allows it to connect to other services located in the same data center, such as NodeBalancers or other Compute Instances. Private IP addresses are not supported for Compute Instances in distributed compute regions. For Compute Instances in these regions, you may be able to use IPv6 or VLAN instead.
A VPC is the recommended method for network isolation
In most cases, a VPC is the better option for true network isolation than either a VLAN or a private IP address. For a comparison between these methods, review the VPC documentation.
IPv6 addresses
-
IPv6 SLAAC Address: This is the main IPv6 address used to communicate over the public Internet and with other services in the same data center. All Compute Instances are assigned a single SLAAC address, which cannot be removed or transferred. Additional SLAAC addresses cannot be provided. If you need an additional IPv6 address, consider using a /64 range (see below).
-
IPv6 Link Local: This IPv6 address is assigned to each Compute Instance and used for internal routing.
-
/64 Routed Range: This is the most common range provided to our customers and sufficient for most applications that require additional IPv6 addresses. A single /64 range provides 18,446,744,073,709,551,616 addresses that can be used when configuring the applications within your system. See the Manual network configuration on a Compute Instance guide for instructions on configuring specific addresses from a range. By default, up to one /64 range can be added per customer per data center.
-
/56 Routed Range: These larger ranges are typically only required by specialized systems or networking applications. A single /56 range provides 4,722,366,482,869,645,213,696 addresses that can be used when configuring the applications within your system. See Manual network configuration on a Compute Instance for instructions on configuring specific addresses from a range. By default, up to one /56 range can be added per customer per data center.
-
/116 Pool: (4,096 addresses) An IPv6 pool is accessible from every Compute Instance on your account within the assigned data center. Addresses from that pool can be configured on each Compute Instance within that data center. This can enable features like IPv6 failover. By default, up to one /116 pool can be added per customer per data center.
The IPv6 /116 prefix has been deprecated and is no longer available for new Compute Instances. If you have an existing Compute Instance with a /116 pool, please review the Upcoming changes related to network infrastructure upgrades to learn about changes that may affect your services.
Adding an IP address
Follow the instructions below to add an public IPv4, private IPv4, or IPv6 range to your Compute Instance. By default, up to one /64 and /56 range can be added per customer per data center.
-
Log in to Cloud Manager and click the Linodes link in the sidebar.
-
Click on your Compute InstanceCompute Instance from the list and navigate to the Network tab.
-
Click the Add an IP Address button under the IP Address section. This displays the Add an IP Address panel.
-
Within the form, select the type of IP address (or range) you wish to add. If you aren't sure, review the Types of IP addresses section and consider your own use case.
-
Click the Allocate button to add the additional address. If you receive a message similar to the following, you need to contact our Support team to request the IP address. Make sure to include any additional information or technical reasoning for the request.
Additional IPv4 addresses require technical justification. Please open a Support Ticket describing your requirement
Once the IP address or range has been added, it should be visible in the IP Address section.
-
To make sure the new IP address is configured within the internal system of the Compute Instance, verify that Network Helper is enabled and reboot the Compute Instance.
If Network Helper is turned off and you've configured a static IP address, you need to update the configuration files with the new IP address or enable Network Helper.
Due to the impending exhaustion of the IPv4 address space, you're requires to provide technical justification for additional public IPv4 addresses. If you have an application that requires multiple IP addresses, consider using an IPv6 /64 range instead. Note that pricing for additional public IPv4 addresses may vary by region.
Configuring rDNS
To change the rDNS value on an IP address, follow the instructions in Configure rDNS (reverse DNS) on a Compute Instance.
Deleting an IP address
-
Log in to Cloud Manager and click the Linodes link in the sidebar.
-
Click your Compute Instance in the list and navigate to the Network tab.
-
Select the Delete menu option for the IP address you'd like to remove
-
A pop-up confirmation dialog appears. Click the Delete Range button to confirm the request.
-
To make sure the IP address is removed from the internal system of the Compute Instance, verify that Network Helper is enabled and reboot the Compute Instance.
If Network Helper is turned off and you've configured a static IP address, you need to update the configuration files to remove the IP address or enable Network Helper.
Transferring IP addresses
If you have two Compute Instances in the same data center, you can use the IP transfer feature to move or swap their IP addresses. This feature is especially useful when replacing one Compute Instance with another. It lets you quickly move the IP addresses to the new Compute Instance without needing to manually adjust DNS records with the new addresses.
This process only transfers IPv4 addresses and IPv6 ranges, not IPv6 SLAAC addresses. See Transferring an IPv6 SLAAC address below for a workaround.
-
Log in to Cloud Manager and click the Linodes link in the sidebar.
-
Click on your Compute Instance from the list and navigate to the Network tab.
-
Press the IP Transfer button in the IP Addresses table.
-
Locate the IP address or range you would like to transfer and select an action from the dropdown menu:
- Move To: moves the IP address to another Compute Instance. When choosing this option, select the destination Compute Instance in the next dropdown menu that appears. If you are moving a public IPv4 address, there needs to be at least one remaining public IPv4 address on the source Compute Instance.
- Swap With: swaps the IP addresses of two Compute Instances. When choosing this option, select the destination Compute Instance in the next dropdown menu that appears. Then select the IP address (belonging to the destination Compute Instance) you would like to swap with the originally selected IP address.
The IP Transfer form only displays Compute Instances hosted in the same data center as the current Compute Instance.
-
Click Save to transfer the requested IPs.
-
To make sure the new IP addresses take affect within the internal configuration of each Compute Instance, verify that Network Helper is enabled and reboot the affected Compute Instance(s). It may take up to 1-2 minutes for the transfer to take affect.
If Network Helper is turned off and you've configured a static IP address, you need to update the configuration files with the new IP addresses or enable Network Helper.
If the IP is unreachable after a few minutes, you may need to notify the router directly of the IP change with the
arp
command run on your Compute Instance:``` arping -c5 -I eth0 -s 198.51.100.10 198.51.100.1 ping -c5 198.51.100.10 198.51.100.1 ``` Replace `198.51.100.10` with your new IP address, and `198.51.100.1` with the gateway address listed in your Networking tab under the **Default Gateways** column of the *IP Addresses* table.
Transferring an IPv6 SLAAC address
IPv6 SLAAC addresses are not able to be transferred between Compute Instances. If this is something you need to do, consider moving the applications you want to be hosted on that IPv6 address over to the Compute Instance containing that IPv6 address. One way to accomplish this is to clone the disks containing the data. See the Clone to an existing Compute Instance section of the Clone a Compute Instance guide. After the cloning process has completed, transfer any required IPv4 addresses.
Configuring IP Sharing
IP Sharing is a feature that enables two Compute Instances to be assigned the same IP address for the purpose of configuring failover. Within a typical failover setup, traffic on the shared IP address is routed to the primary Compute Instance. In the event that Compute Instance fails or goes down, traffic is automatically re-routed to the secondary Compute Instance. While IP Sharing can be configured in Cloud Manager, failover must be manually configured within the internal system of both Compute Instances. See Configure failover on a Compute Instance to learn more about configuring failover.
Not all data centers currently support IP Sharing. Additionally, some data centers only support IPv4 sharing, while others also support IPv6 routed ranges (/64 and /56). To determine if IP Sharing is supported in a particular data center, see Configure failover on a Compute Instance > IP Sharing availability.
When IP Sharing is enabled for an IP address, all connectivity to that IP address is immediately lost until it is configured on Lelastic, FRR, or another routing software. This is not an issue when adding a new IP address, but should be considered if you are enabling IP Sharing on an existing IP address that is actively being used.
To learn how to enable IP Sharing within Cloud Manager, review the following steps.
-
Log in to Cloud Manager and click the Linodes link in the sidebar.
-
Determine which two Compute Instances are to be used within your failover setup. They both must be located in the same data center. Make sure the IP address you wish to share has been added to one of those Compute Instances. If not, add it now. See Adding an IP address.
-
Of those two Compute Instances, select the one that does not yet have the Shared IP addresses assigned to it. Then, navigate to the Network tab.
-
Click the IP Sharing button under the IP Addresses section.
-
The IP Sharing form appears with a list of IP addresses that are available to be shared. Select the IP address you wish to share with this Compute Instance.
If your desired IP address does not appear in that list, verify that the Compute Instance to which it belongs has at least two public IPv4 addresses or has been assigned an IPv6 routed range (/56 or /64).
-
Click Save to enable IP Sharing.
-
After enabling IP Sharing in Cloud Manager, the next step is to configure a failover service (such as FRR, lelastic, or Keepalived) within the internal system on each Compute Instance. For more information, see Configure failover on a Compute Instance.
Viewing the DNS resolvers' IP addresses
Each data center has its own set of DNS resolvers, which are accessed through both IPv4 or IPv6 addresses. To view the DNS resolvers, follow the instructions below.
-
Log in to Cloud Manager and click the Linodes link in the sidebar.
-
Click on your Compute Instance from the list to view more details.
-
Navigate to the Network tab and review the DNS Resolvers list, which should appear to the right of (or below) the network transfer graph.
Confirming IP addresses are correctly configured
Our platform's Network Helper tool automatically configures the internal network settings of your Compute Instance's Linux system. This ensures changes made to your IP addresses within Cloud Manager are also made internally on your Compute Instance. If you decide not to use Network Helper or are using a custom unsupported distribution, you need to manually configure your system's networking. In this case, review the Manual network configuration on a Compute Instance guide.
To verify that your IP addresses are correctly configured, run the ip
command on your Compute Instance (see man pages reference), specifically ip a show
(ip addr show
). For more information on using this command, see Use the IP command in Linux .
Updated about 1 month ago