Network Interfaces
Generated on 18 Mar 2026
Droplets use public and private network interfaces to connect to the internet and other DigitalOcean resources. Each interface contains various properties, including the Droplet's IP address, gateway IP, and netmask.
http://169.254.169.254
Endpoints
GET Get Network Interface Index
/metadata/v1/interfaces
An index of all network interfaces by type, e.g. "public" and "private".
Request: /metadata/v1/interfaces
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces"Responses
The available interfaces as plain text.
Response
public/
private/
GET Get Public Interface Index
/metadata/v1/interfaces/public
An enumerated index of all public network interfaces that are of the specified interface type.
Request: /metadata/v1/interfaces/public
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public"Responses
An enumerated list of public interfaces as plain text.
Response
0/GET Get Public Interface Attributes Index
/metadata/v1/interfaces/public/0
An index of the attributes of the specified network interface.
Request: /metadata/v1/interfaces/public/0
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0"Responses
An index of the Droplet's public interfaces as a plain-text list.
Response
mac
type
ipv4/
ipv6/
GET Get IPv4 Anchor Attributes Index
/metadata/v1/interfaces/public/0/anchor_ipv4
An index of the specified "Anchor" network interface's IPv4 attributes. Note: An "Anchor" interface is an implementation detail of DigitalOcean Reserved IPs.
Request: /metadata/v1/interfaces/public/0/anchor_ipv4
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4"Responses
Success
Response
address
netmask
gateway
GET Get Anchor IPv4 Address
/metadata/v1/interfaces/public/0/anchor_ipv4/address
The IPv4 address of the specified "Anchor" network interface. Note: An "Anchor" interface is an implementation detail of DigitalOcean Reserved IPs.
Request: /metadata/v1/interfaces/public/0/anchor_ipv4/address
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/address"Responses
Success
Response
10.17.0.160GET Get Anchor IPv4 Netmask
/metadata/v1/interfaces/public/0/anchor_ipv4/netmask
The netmask of the specified "Anchor" network interface. Note: An "Anchor" interface is an implementation detail of DigitalOcean Reserved IPs.
Request: /metadata/v1/interfaces/public/0/anchor_ipv4/netmask
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/netmask"Responses
Success
Response
255.255.0.0GET Get Public Interface's IPv4 Attributes
/metadata/v1/interfaces/public/0/ipv4
An index of the specified network interface's IPv4 attributes.
Request: /metadata/v1/interfaces/public/0/ipv4
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4"Responses
The index of available IPv4 attributes as a plain-text list.
Response
address
netmask
gateway
GET Get Public Interface IPv4 Address
/metadata/v1/interfaces/public/0/ipv4/address
The IPv4 address of the specified network interface, as plain text.
Request: /metadata/v1/interfaces/public/0/ipv4/address
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address"Responses
Success
Response
104.131.20.105GET Get Public Interface Gateway Address
/metadata/v1/interfaces/public/0/ipv4/gateway
The gateway of the specified network interface.
Request: /metadata/v1/interfaces/public/0/ipv4/gateway
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/gateway"Responses
Success
Response
104.131.0.1GET Get Public Interface IPv4 Netmask
/metadata/v1/interfaces/public/0/ipv4/netmask
The netmask of the specified network interface.
Request: /metadata/v1/interfaces/public/0/ipv4/netmask
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/netmask"Responses
Success
Response
255.255.192.0GET Get IPv6 Network Interfaces Index
/metadata/v1/interfaces/public/0/ipv6
An index of the specified network interface's IPv6 attributes.
Request: /metadata/v1/interfaces/public/0/ipv6
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6"Responses
Success
Response
address
cidr
gateway
GET Get Public Interface IPv6 Address
/metadata/v1/interfaces/public/0/ipv6/address
The IPv6 address of the specified network interface.
Request: /metadata/v1/interfaces/public/0/ipv6/address
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address"Responses
Success
Response
2604:A880:0800:0010:0000:0000:017D:2001GET Get Public Interface's IPv6 CIDR
/metadata/v1/interfaces/public/0/ipv6/cidr
The IPv6 CIDR of the specified network interface.
Request: /metadata/v1/interfaces/public/0/ipv6/cidr
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/cidr"Responses
Success
Response
64GET Get Public Interface's IPv6 Gateway Address
/metadata/v1/interfaces/public/0/ipv6/gateway
The IPv6 gateway address of the specified network interface.
Request: /metadata/v1/interfaces/public/0/ipv6/gateway
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/gateway"Responses
Success
Response
2604:A880:0800:0010:0000:0000:0000:0001GET Get Public Interface's MAC Address
/metadata/v1/interfaces/public/0/mac
The MAC address of the specified network interface.
Request: /metadata/v1/interfaces/public/0/mac
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/mac"Responses
The Droplet's MAC address as plain text.
Response
04:01:2a:0f:2a:03GET Get Network Interface's Type
/metadata/v1/interfaces/public/0/type
The type of the specified network interface.
Request: /metadata/v1/interfaces/public/0/type
curl -X GET \
"http://169.254.169.254/metadata/v1/interfaces/public/0/type"Responses
The network interface type as plain text.
Response
public