Create a Linode account to try this guide with a $ credit.
This credit will be applied to any valid services used during your first  days.

Each Linode Compute Instance is equipped with several IP addresses, which may enable it to be accessible over the public Internet and other Linode 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 the Cloud Manager.

Viewing IP Addresses

  1. Log in to the Cloud Manager and click the Linodes link in the sidebar.

  2. Click on your Linode Compute Instance from the list to view more details.

  3. Within the top Summary section, you can view the primary IPv4 and IPv6 addresses.

  4. To view all public and private IP addresses for this 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 instance typically does not have a public IPv4 address unless the Assign a public IPv4 address option is selected.

  • VPC IPv4 Address: If an instance is assigned to a VPC, that 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 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.

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 Linux Static IP Configuration 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 the Linux Static IP Configuration guide 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 Linode on your account within the assigned data center. Addresses from that pool can be configured on each Linode 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.

    Important
    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.

  1. Log in to the Cloud Manager and click the Linodes link in the sidebar.

  2. Click on your Linode Compute Instance from the list and navigate to the Network tab.

  3. Click the Add an IP Address button under the IP Address section. This displays the Add an IP Address panel.

  4. 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.

    The Add IP Address form

  5. 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.

  6. 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.

Note
Due to the impending exhaustion of the IPv4 address space, Linode requires users 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 within the Configure rDNS guide.

Deleting an IP Address

  1. Log in to the Cloud Manager and click the Linodes link in the sidebar.

  2. Click on your Linode Compute Instance from the list and navigate to the Network tab.

  3. Select the Delete menu option for the IP address you’d like to remove

  4. A pop-up confirmation dialog appears. Click the Delete Range button to confirm the request.

  5. 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 allows you to quickly move the IP addresses to the new Instance without needing to manually adjust DNS records with the new addresses.

Note
This process only transfers IPv4 addresses and IPv6 ranges, not IPv6 SLAAC addresses. See Transferring an IPv6 SLAAC Address below for a workaround.
  1. Log in to the Cloud Manager and click the Linodes link in the sidebar.

  2. Click on your Linode Compute Instance from the list and navigate to the Network tab.

  3. Press the IP Transfer button in the IP Addresses table.

  4. 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.

    Note
    The IP Transfer form only displays Compute Instances hosted in the same data center as the current Instance.
  5. Click Save to transfer the requested IPs.

  6. 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 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.

    Note

    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 Cloning to an Existing Linode section of the Cloning a Linode 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 instance. In the event that instance fails or goes down, traffic is automatically re-routed to the secondary instance. While IP Sharing can be configured in the Cloud Manager, failover must be manually configured within the internal system of both Compute Instances. See Configuring IP Failover to learn more about configuring failover.

Note
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 Configuring IP Failover > IP Sharing Availability.
Warning
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 the Cloud Manager, review the following steps.

  1. Log in to the Cloud Manager and click the Linodes link in the sidebar.

  2. 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 instances. If not, add it now. See Adding an IP Address.

  3. 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.

  4. Click the IP Sharing button under the IP Addresses section.

  5. 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.

    Note
    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).
  6. Click Save to enable IP Sharing.

  7. After enabling IP Sharing in the 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 our guide on Configuring IP Failover.

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.

  1. Log in to the Cloud Manager and click the Linodes link in the sidebar.

  2. Click on your Linode Compute Instance from the list to view more details.

  3. Navigate to the Network tab and review the DNS Resolvers list, which should appear to the right of (or below) the network transfer graph.

This page was originally published on


Your Feedback Is Important

Let us know if this guide was helpful to you.