Skip to main content
LARUS
Explore

Technical guide

Bring Your Own IP on Google Cloud: Sizes, Proof and Steps for a Leased Range

Google Cloud proves control of a rented range with a ROA and a PTR record, then announces it from Google. Here is the whole path, step by step.

Lease IPv4 with LARUS

Can you bring a leased IPv4 range to Google Cloud?

Yes. Google Cloud's BYOIP takes an IPv4 range you already use, validates the range with two records together — a ROA and a PTR record — and then announces it from Google's network. The range stays registered where it is; Google never becomes its holder.

Google splits the job in two. A public advertised prefix (PAP) represents the range and carries the announcement; a public delegated prefix (PDP) created from it assigns the addresses to one project and scope. The mechanics are in what bring your own IP means for a network. Everything below comes from Bring your own IP addresses, Create a public advertised prefix and Deprovision BYOIP.

What address sizes does Google Cloud BYOIP accept?

An IPv4 public advertised prefix is /16 to /24 for a regional v2 Premium Tier prefix and for the older regional v1 and global configurations. The Standard Tier (Preview) regional prefix is /16 to /23. A top-level public delegated prefix on regional v2 Premium can be the same size as the PAP or smaller, down to /28; on Standard Tier and the older configurations it must be smaller than the PAP. No sub-prefix can be smaller than a /28.

Global public delegated prefixes are controlled by an allowlist: if the global option is not offered in the console, the project has not been added, and access is requested through a support case. Addresses cannot move between projects, so choose the project that will run the workload at the start.

Google does not support overlapping announcements. Importing a /23 fails if the same /23, or a subset such as one of its /24s, is advertised outside Google.

Whose name must the range be registered under?

Google proves control through the registry and DNS records rather than by holding the range itself, so the range keeps its registration with whichever regional internet registry holds it — AFRINIC, APNIC, ARIN, LACNIC or RIPE NCC. The ROA is submitted to that registry, and the PTR record sits in the reverse DNS zone for the range's addresses.

For a leased range that decides who does what. The ROA request is submitted to the registry by whoever controls the prefix's registry record — on a leased range, the holder — and the reverse DNS zone belongs to whoever runs DNS for the range. The tenant's part is the Google Cloud side: the project, the PAP, the verification address and the resources that use the addresses. Agree the holder's turnaround on ROA and PTR changes before the migration window, because Google's provisioning clock starts only after validation.

What proof does Google Cloud require, and who provides it?

For an external IPv4 prefix, two records together: a ROA and a PTR record.

The ROA names the public advertised prefix, its prefix length and Google's ASN — 396982 for Premium Tier, 19527 for Standard Tier (Preview). On Standard Tier Google recommends a separate ROA for each top-level PDP; a single ROA with a maximum length of /24 is the other option it allows. Google also recommends a second ROA for your own ASN, so that networks validating RPKI do not treat the prefix as invalid while it is also advertised under Google's origin.

Google validates the prefix with two records together: a route origin authorization and a PTR record. When the PAP is created you supply an unused IP address from the range; Google returns a hostname in the sharedSecret field, and the range's reverse DNS zone publishes a PTR record for that address pointing at that hostname. Both are checked before Google configures the announcement.

How long does each step take?

After validation, configuration for a regional v2 prefix takes approximately two weeks; the older regional v1 and global configurations take approximately four weeks. A v2 public delegated prefix is ready in a few minutes; a v1 or global PDP takes four weeks. Provisioning cannot be accelerated, so order the range well before the cutover.

Google keeps advertising only while the ROA stays valid. If a ROA expires and is not renewed within four weeks of the renewal notice, Google stops advertising the prefix, which can interrupt anything using its addresses.

How is Google Cloud BYOIP priced against Google's own external IPs?

Google does not charge for BYOIP addresses, idle or in use. External IPv4 addresses that Google supplies are charged at $0.005 per hour on standard VM instances, $0.0025 on preemptible and Spot instances, and $0.005 on Cloud NAT; addresses attached to forwarding rules or used as a public IP for a Cloud VPN tunnel are not charged. A /24 of Google-assigned addresses on standard VMs therefore runs to roughly $934 a month, against no address charge for the same /24 through BYOIP.

The lease is the remaining address cost; traffic is billed as usual by the network tier.

How do you withdraw the range at the end of a lease?

In this order: withdraw and delete the public delegated prefixes or sub-prefixes, then delete the public advertised prefix. A PDP can be deleted only when none of its addresses are assigned, and a v2 regional PDP must not be advertised first. Deletion is measured in weeks as well — Google says provisioning and deletion both take multiple weeks — and the status stays PREFIX_REMOVAL_IN_PROGRESS until the PAP is deleted.

The ROA stays behind after the range leaves. Google says the ROA does not need to be removed after the PAP is deleted, and that if you want to remove it you must wait 14 days so Google can finish stopping the announcement. Only after that should the holder withdraw the ROA or the lease end.

Announcement control has one more rule worth planning around: at least one PDP must be announced before the PAP can be, and the last announced PDP cannot be withdrawn on its own — withdraw the PAP first. Moving a PDP to another location means deleting and recreating it, which takes approximately eight weeks.

Can a leased range move to Google Cloud without renumbering?

Yes, provided the holder keeps the ROA and the reverse DNS record aligned with the prefix while Google announces it. Customers see the same prefixes; what changes is the network behind them.

LARUS supplies Continuity IPv4 leasing with LOA support and coordinates routing validity and RPKI/ROA so the address plan works in production; Production and higher plans add rDNS support, which is what the PTR check needs. Enterprise adds daily registry follow-up, priority handling and RPKI coverage through the contract term, and only Continuity Critical includes Guaranteed Renewal from LARUS.

The same move is documented for AWS; the ROA and certificate details differ between the two, so read the destination before the range is ordered.

Google Cloud BYOIP questions

What is the smallest IPv4 range Google Cloud BYOIP accepts?

A /24 public advertised prefix is the smallest, and only on Premium Tier regional v2 or the older v1 and global configurations. Standard Tier (Preview) stops at /23. Inside a PAP, delegated prefixes and sub-prefixes can go down to /28.

Which ASN must the ROA name?

396982 for Premium Tier, or 19527 for Standard Tier (Preview). Google recommends a second ROA for your own ASN so the prefix does not read as invalid while it is also advertised under Google's origin.

Why does Google Cloud need a PTR record as well as a ROA?

Google validates the prefix with two records together: a ROA and a PTR record. The ROA names the prefix and Google's ASN; the PTR record answers for the verification address with the hostname Google returns in the sharedSecret field when the PAP is created.

How long does Google Cloud BYOIP take?

Approximately two weeks for a regional v2 prefix and four weeks for v1 or global, counted from completed validation. A v2 delegated prefix then takes a few minutes. Provisioning cannot be accelerated, so order the range early.

Does Google Cloud charge for BYOIP addresses?

No. There is no charge for idle or in-use BYOIP addresses. Google's own external IPv4 addresses cost $0.005 per hour on standard VMs, so the address charge a /24 would otherwise carry is removed, while traffic is billed as usual.

When can the ROA be removed?

Not straight away. Google says the ROA does not have to be removed after the PAP is deleted, and that if you want to remove it you must wait 14 days after the deletion so Google can update its configurations and stop advertising the range.

A Google Cloud range that stays in service

Google Cloud BYOIP comes down to a /16-to-/24 prefix, a ROA for 396982 or 19527, a PTR in the range's reverse zone, and a realistic two-to-four-week provisioning window. The registration stays where it is — only the network announcing the range changes.

Lease IPv4 with LARUS to put a renewable range behind the deployment, with the registry follow-up, RPKI/ROA and rDNS support that Google's validation asks for.

A prefix Google can announce

Keep the range while the network changes.

Order the range and the ROA early enough for a two-to-four-week provisioning window.

Lease IPv4 with LARUS
LARUS direct support

Tell us how we can help

Leave your details and our team will join the conversation.