Allocate an IPv4 address

Allocates a public or private IPv4 address to a Linode. Public IP Addresses, after the one included with each Linode, incur an additional monthly charge. If you need an additional public IP Address you must request one - please Open a support ticket. You may not add more than one private IPv4 address to a single Linode.

linode-cli linodes ip-add 123 \ --type ipv4 \ --public true
Learn more...
linodes:read_write
Learn more...
Path Params
string
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

integer
required

ID of the Linode to look up.

Body Params

Information about the address you are creating.

boolean
required

Whether to create a public or private IPv4 address.

string
required

The type of address you are allocating. Only IPv4 addresses may be allocated through this operation.

Responses

Response body
object
string

Read-only The IP address.

string | null

Read-only The default gateway for this address.

integer | null

Beta, Read-only The Linode interface ID that this IP address is assigned to. This value is null if a Linode interface is not assigned, or if the IP is assigned to a legacy configuration profile interface.

integer

Read-only The ID of the Linode this address currently belongs to. For IPv4 addresses, this is by default the Linode that this address was assigned to on creation, and these addresses may be moved using the Assign IPv4s to Linodes operation. For SLAAC and link-local addresses, this value can't be changed.

integer

Read-only The number of bits set in the subnet mask.

boolean

Read-only Whether this is a public or private IP address.

string | null

The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.

string

Read-only The Region this IP address resides in.

string

Read-only The mask that separates host bits from network bits for this address.

string

Read-only The type of address this is.

ipv4 ipv6 ipv6/pool ipv6/range

vpc_nat_1_1
object

IPv4 address configured as a 1:1 NAT for this Interface. If no address is configured as a 1:1 NAT, null is returned.

📘

Only allowed for vpc type interfaces.

string

The IPv4 address that is configured as a 1:1 NAT for this VPC interface.

integer

The id of the VPC Subnet for this interface.

integer

Read-only The id of the VPC configured for this interface.

Language
Credentials