Technical guide
Bring Your Own IPv4 to DigitalOcean: Certificate, ROA and Steps
DigitalOcean provisions an IPv4 prefix into one datacenter after a certificate, a ROA and a signed request, and leaves the prefix unadvertised until you switch it on. The registry authority and the signature decide whether the request clears review.
Lease IPv4 with LARUSCan you bring your own IPv4 range to DigitalOcean?
Yes, after DigitalOcean approves access. You bring an IPv4 range of /24 up to /18, put a certificate and a signed message into your registry records, and submit a provisioning request from the control panel, the CLI or the API. DigitalOcean reviews the request within seven business days, and the prefix stays quiet until you explicitly turn advertisement on.
For teams that already run Droplets and want their public endpoints to survive a move, that quiet default is useful: the range exists in the account before anything on the internet depends on it. The general mechanics are in what bring your own IP means for a network; this page keeps to what DigitalOcean requires, taken from its BYOIP provisioning guide, its BYOIP limits and its Reserved IP pricing.
Which prefix sizes does DigitalOcean BYOIP accept?
BYOIP is IPv4 only. A prefix must be no smaller than a /24 (256 addresses) and no larger than a /18 (16,384 addresses). The first two addresses of each BYOIP subnet are reserved and cannot be assigned to a resource.
Each prefix lands in one datacenter and serves only resources in that datacenter. A Droplet can hold one address at a time — a reserved IP or a BYOIP address, not both — and BYOIP addresses work on Droplets, external regional load balancers and public NAT gateways created with the address, but not on global or internal load balancers.
What proof does DigitalOcean require for a BYOIP prefix?
An X.509 certificate in the range's registry record and a ROA for DigitalOcean's ASN. You generate a private key and certificate, publish the certificate under the prefix's RDAP record so it appears under IP Network → Remarks → Description, and confirm it with the rdap command.
The ROA has to authorise ASN 393406, and you must hold direct control and update authority over the range in your registry — any of ARIN, RIPE NCC, APNIC, AFRINIC or LACNIC. DigitalOcean states that it is not responsible for third-party claims about your use of the addresses.
How do you provision a BYOIP prefix on DigitalOcean?
- Request access from the link at the bottom of the Reserved IPs page in the control panel.
- Generate an ECC (P-384) or RSA (4096-bit) key, sign an X.509 certificate with it for 365 days, and strip the newlines.
- Add the certificate to your registry record — APNIC's descr field, ARIN's Public Comments, RIPE NCC's descr, or the RDAP Remarks for AFRINIC and LACNIC.
- Build the message
DO|<team_uuid>|<prefix>, sign it with the same key using SHA-256, then base64-encode the signature. - Submit the prefix, the signature and the datacenter region through the panel,
doctl network byoip-prefix createor a POST to/v2/byoip_prefixes. - After the prefix turns Active, set
advertise: trueto make it reachable.
Provisioning is reviewed within seven business days. Once active, the prefix can be assigned and reassigned like a reserved IP, though an address already attached to a load balancer or NAT gateway cannot be changed afterwards.
What does DigitalOcean BYOIP cost, and what are its constraints?
Provisioning BYOIP blocks and using BYOIP addresses is free; data transfer from them is billed at the standard Droplet bandwidth rate. A BYOIP prefix is deprovisionable only as a whole, never address by address, and every address has to be unassigned from its Droplet before the prefix can be removed.
DigitalOcean also watches the announcement. If its network operations team reports an anomaly and you do not remediate it within one business day from its start, the prefix is withdrawn. Some vendors block prefixes when an ASN appears on UCEPROTECT, and DigitalOcean does not pay for delisting, so its ASN 393406 may stay listed; ask the vendor to allow the ASN or bypass that check.
Can you use a leased IPv4 range with DigitalOcean BYOIP?
Yes, when the holder of the range can give you the direct control and update authority in the registry that DigitalOcean asks for, and the ROA authorises ASN 393406. The certificate has to sit in the range's RDAP record, and the signature has to bind the prefix to your team UUID.
LARUS supplies the range under a lease and prepares the routing documents a receiving network asks for — the letter of authorization, the ROA and the IRR object behind the announcement — so the certificate, the ROA and the announcement all name the same prefix.
DigitalOcean BYOIP questions
Why is a new DigitalOcean BYOIP prefix not reachable?
New prefixes are not advertised by default. After provisioning finishes and the prefix shows Active, set advertise: true from the panel, the CLI or the API; until then nothing on the internet routes to it.
Where does the DigitalOcean certificate go in the registry?
Under the prefix's RDAP record, so it reads under IP Network → Remarks → Description when you query the prefix with rdap. Each registry reaches the same place by its own field: APNIC and RIPE descr, ARIN Public Comments, AFRINIC and LACNIC RDAP remarks.
Can you bring a /25 or a single address to DigitalOcean?
No. The smallest BYOIP prefix is a /24; the largest is a /18. A smaller block needs a different route to the platform, such as a reserved IP instead of BYOIP.
What happens if DigitalOcean reports an announcement anomaly?
Its network operations team contacts you, and failure to remediate the issue within one business day from its start results in the prefix being withdrawn, regardless of your responsiveness. Plan for someone who can act on that message the same day.
Can you remove one address from a DigitalOcean BYOIP prefix?
No. BYOIP addresses cannot be deleted one at a time; the whole prefix is deprovisioned. Individual addresses can be assigned, reassigned and unassigned like reserved IPs while the prefix stays in place.
Put a range you can keep behind your DigitalOcean workloads
DigitalOcean's BYOIP path is a certificate, a ROA and a signed request, then seven business days and one switch to advertise. The parts that decide whether it works are the registry authority over the prefix and an announcement you can fix the same day it is questioned.
Lease IPv4 with LARUS to put a renewable range behind your DigitalOcean deployment, with the LOA, ROA and IRR work handled by the team that supplies the addresses.
A prefix DigitalOcean can verify
Put a verifiable range behind your DigitalOcean workloads.
Keep the registry record, the ROA and the lease with the team that supplies the range.
