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.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Permissions: view_linode
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: linodes:read_write

CLI

linode-cli linodes ip-add 123 \
  --address 192.0.2.141 \
  --type ipv4 \
  --public true

Learn more

Path Params
string
enum
required

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

Allowed:
integer
required

ID of the Linode to look up.

Body Params
string

An optional unassigned reserved IP address to be assigned to this Linode. If omitted, a new non-reserved IP address is allocated.

boolean
required

Whether to create a public or private IPv4 address.

string
enum
required

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

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
application/json