Is Your IP Range Ready for BYOIP? Three Checks You Can Automate
Key takeaways
- For Google Cloud regional v2 Premium Tier, verify /16 through /24 import size, ROA validity for ASN 396982, and the provider-issued PTR record.
- An absent covering ROA (NotFound) is a different validation state from a conflicting covering ROA (Invalid), and both route to the prefix holder.
- Run the PTR check only after Google Cloud supplies the verification name, and route mismatches to the authoritative reverse-zone operator.
- Passing preflight makes the prefix ready for provider review; quotas, rights to use the block, provisioning, and cutover remain separate gates.
On this page
A Bring Your Own IP (BYOIP) onboarding submission fails far less often when you automate three deterministic preflight checks before asking the cloud provider to validate your prefix. Using a public IPv4 /24 targeting Google Cloud regional v2 Premium Tier as a concrete walkthrough, you can verify prefix size, route origin authorization, and reverse Domain Name System (DNS) readiness - and map every failure straight to the role that can fix it.
In manual workflows, a prefix sits in validation for days because a certificate, Route Origin Authorization (ROA), or reverse-DNS record was published with the wrong parameter. As described in Automating BYOIP: From Registry Proof to Cloud Advertisement, preflight checks turn those slow feedback loops into repeatable machine-readable reports.
Three checks for Google Cloud regional v2 Premium Tier
Consider a team preparing the documentation range 203.0.113.0/24 (reserved for documentation under RFC 5737) as a Public Advertised Prefix (PAP) on Google Cloud regional v2 Premium Tier. Three checks cover the core pre-validation gates described in the Google Cloud BYOIP overview and PAP creation procedure:
- Prefix size and alignment: For an external IPv4 PAP in Google Cloud regional v2 Premium Tier, the imported prefix must be between
/16and/24inclusive and aligned on its Classless Inter-Domain Routing (CIDR) boundary. A/24passes this import check; a/25or/28does not qualify as a standalone PAP. - Route Origin Authorization (ROA) check: Resource Public Key Infrastructure (RPKI) validation confirms whether published ROAs authorize Google’s origin Autonomous System Number (ASN) to originate the prefix. For Google Cloud regional v2 Premium Tier, the documented Google origin ASN is
AS396982(see What Is RPKI? ROAs, Origin Validation and Your BYOIP Prefix for how ROAs work). An automated preflight script can query the RIPEstat RPKI validation endpoint with the prefix and intended origin ASN396982. - Reverse-DNS (PTR) verification record: Introduce the Pointer (PTR) check only after Google Cloud has generated the DNS verification name during PAP creation. Query the authoritative reverse-DNS servers for the first address in the block (for example,
0.113.0.203.in-addr.arpa) and compare the observed PTR value against Google’s expected verification string.
Why an absent ROA differs from a conflicting ROA
When automating the second check, treat NotFound (often surfaced as unknown) and Invalid as distinct outcomes:
- Absent covering ROA (
NotFound/unknown): No published ROA covers203.0.113.0/24yet. The prefix holder still needs to create a ROA authorizingAS396982before Google Cloud will complete validation, but no other ROA actively contradicts it. - Conflicting covering ROA (
Invalid): A covering ROA already exists, yet it authorizes a different ASN (or sets a shorter maximum prefix length than/24). For example, if a covering ROA authorizes only an example ASN such asAS64512, validating203.0.113.0/24forAS396982returnsInvalid. The prefix holder must publish an additional ROA authorizingAS396982(while keeping the current provider’s ROA during migration if traffic is still live elsewhere).
Read a preflight report and route each failure
A useful preflight report prints the exact expected value, the observed value, the verdict, and the owner who holds authority to change that system. All prefixes, ASNs, and PTR strings in the table below are illustrative fixtures for 203.0.113.0/24:
| Illustrative scenario | Failed or passing check | Observed vs. expected | Who can resolve it |
|---|---|---|---|
| Wrong origin | ROA validation fails (Invalid) | Covering ROA authorizes AS64512; expected AS396982 | Registered prefix holder / Regional Internet Registry (RIR) portal operator |
| Wrong PTR | Reverse-DNS verification fails | Observed legacy-gw.example.net; expected Google-issued gcp-verify-203-0-113-0.example | Authoritative reverse-zone operator (prefix holder or delegated DNS administrator) |
| All checks pass | Size, ROA, and PTR all pass | /24 valid, ROA valid for AS396982, PTR matches provider string | Cloud operator can proceed - Ready for provider review |
Switch between the three fixture scenarios below to inspect how the report values, verdicts, and owner routing change:
Illustrative Preflight Report · 203.0.113.0/24
Target: Google Cloud regional v2 Premium Tier (expected origin AS396982). All records are local example fixtures.
Blocked: ROA origin mismatch
Ask the registered prefix holder (RIR portal operator) to publish a ROA authorizing AS396982 for 203.0.113.0/24.
- Expected
- IPv4 /16 through /24 (aligned)
- Observed
- 203.0.113.0/24
- Responsible role
- Cloud operator
Meets Google Cloud regional v2 Premium Tier PAP size requirements.
- Expected
- Valid for origin AS396982 (maxLength /24)
- Observed
- Invalid — covering ROA authorizes only example ASN AS64512
- Responsible role
- Registered prefix holder / RIR portal operator
A covering ROA exists for a different origin ASN, so intended origin AS396982 validates as Invalid.
- Expected
- gcp-verify-203-0-113-0.example
- Observed
- gcp-verify-203-0-113-0.example
- Responsible role
- Authoritative reverse-zone operator
Authoritative PTR matches Google Cloud’s issued verification value.
What a passing preflight report does not prove
When all three checks pass, the prefix is ready for provider review - nothing more and nothing less. A green preflight report does not mean the prefix is already provisioned, advertised, or carrying customer traffic. Several controls remain outside these three automated checks:
- Right to use the block: Contractual lease permissions, Letter of Authorization (LOA) terms, and clean registry stewardship must be verified separately.
- Cloud quotas and service eligibility: Project-level BYOIP quotas, selected tier constraints, and target Compute Engine or load-balancer compatibility sit in the cloud control plane.
- Provisioning and routing cutover: Google Cloud regional v2 PAP provisioning takes roughly two weeks, and BGP advertisement, traffic cutover, and external reachability monitoring still require deliberate operational gates.
FAQ
Related resources
Ready to see where BYOIP is supported?
Continue the series
When Does BYOIP Pay Off on AWS?
A team replacing 32 public addresses and a team replacing 256 can bring the same IPv4 block to AWS. Calculate how much each can afford to spend on that block.
6 min read · Updated 25 November 2026
Read articleWhen a Website Has IPv4 and IPv6, Which One Does Your Browser Use?
Follow one hostname through two connection attempts and see how an IPv4 fallback can hide a broken IPv6 path.
5 min read · Updated 25 November 2026
Read article