Skip to content

Cloud WAN Policy inside-cidr-blocks Error

2

I am trying to configure inside-cidr-blocks in my Cloud WAN core network policy and I'm getting two different errors depending on what I try.

Attempt 1: I added inside-cidr-blocks directly to my Connect attachment configuration:

Error: IPv4 CIDR cannot be specified if global network IPv4 CIDR is not specified

Attempt 2: I tried using a link-local range (169.254.100.0/24) as the inside CIDR:

Error: RESTRICTED_CIDR_BLOCK

I'm confused about where exactly the inside-cidr-blocks need to be defined and what ranges are allowed. The documentation mentions "global network" CIDRs but I can't find where to set those in the policy.

My current policy structure:

{
  "core-network-configuration": {
    "asn-ranges": ["64512-65534"],
    "edge-locations": [{"location": "us-east-1"}]
  },
  "segments": [{"name": "test"}]
}

Any help appreciated!

2 Answers
3
Accepted Answer

The re:Post Agent's answer is correct. To add some additional context that may help:

On the 169.254.x.x restriction: If you're coming from Transit Gateway Connect (GRE-based), you may be used to using 169.254.x.x for inside tunnel addresses. Cloud WAN Connect with NO_ENCAP protocol does not support this range. Use a standard private range (e.g., 10.255.0.0/16) that does not overlap with your existing VPC CIDRs.

The inside-cidr-blocks hierarchy works at three levels:

  1. Global level (core-network-configuration.inside-cidr-blocks): The supernet pool that all edge locations draw from
  2. Edge location level (edge-locations[].inside-cidr-blocks): Optional per-region allocation from the global pool
  3. Connect Peer level: When creating the Connect Peer, you specify a /29 from the edge location's allocation. This /29 provides 2 usable IPs for the BGP peering (one for AWS, one for your router)

If you omit the edge-location-level allocation, Cloud WAN will auto-assign a /24 from your global pool when you create a Connect Peer in that region. Explicitly defining per-edge-location blocks gives you more control over addressing.

Recommended CIDR strategy:

  • Use 10.255.0.0/16 as your global pool (unlikely to conflict with typical VPC CIDRs)
  • Allocate a /24 per edge location (e.g., 10.255.0.0/24 for us-east-1, 10.255.1.0/24 for eu-west-1)
  • Each Connect Peer consumes a /29 from its edge location's allocation

References:

AWS
SUPPORT ENGINEER

answered 6 months ago

EXPERT

reviewed 6 months ago

  • Thanks for pointing out how the hierarchy of the inside-cidr-blocks work.

1

Based on your errors, I can help clarify how inside CIDR blocks work in AWS Cloud WAN policies.

The inside CIDR blocks need to be configured at the core network configuration level, not at the individual attachment level. These blocks are used for BGP peering on Connect peers and should be defined in your core-network-configuration section.

Here's what you need to add to your policy:

{
"core-network-configuration": {
"asn-ranges": ["64512-65534"],
"inside-cidr-blocks": ["10.0.0.0/16"],
"edge-locations": [
{
"location": "us-east-1",
"asn": 64512,
"inside-cidr-blocks": ["10.0.0.0/24"]
}
]
},
"segments": [{"name": "test"}]
}

Key points to resolve your errors:

  1. First error - You must specify the inside-cidr-blocks at the global core network configuration level before you can use them. This is the "global network IPv4 CIDR" the error refers to.

  2. Second error - The link-local range (169.254.0.0/16) is restricted and cannot be used for Cloud WAN inside CIDR blocks. This range is reserved for VPN tunnel configurations, not Cloud WAN Connect attachments.

Important considerations:

  • When you specify inside CIDR blocks at the global level, the service will auto-assign CIDR ranges from that block to new edge locations
  • You need to ensure the ranges have enough space to create a /24 block for IPv4 (or /64 for IPv6) when new edge locations are added
  • If the range is too small, you'll get a policy exception when adding new edge locations
  • You can either provide a larger CIDR range to allow auto-assignment, or explicitly specify the CIDR blocks per edge location to match your global range and prevent auto-assignment

Use standard private IP ranges (like 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16) for your inside CIDR blocks instead of the link-local range.
Sources
Core network policy versions in AWS Cloud WAN - AWS Network Manager
Core network policy version parameters in AWS Cloud WAN - AWS Network Manager

answered 6 months ago

AWS
SUPPORT ENGINEER

reviewed 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.