You cannot edit an existing Dedicated Cloud Gateway network CIDR: To change a network’s CIDR, recreate the network with the new CIDR.
Before creating a Dedicated Cloud Gateway network, choose the CIDR range you want to use.
A CIDR block defines the range of IP addresses available for your Dedicated Cloud Gateway.
If you’re configuring private network connectivity, this CIDR block must not overlap with CIDR blocks assigned in your own cloud service provider networks to prevent conflicts.
The CIDR block must also be large enough to accommodate all Kong-managed infrastructure provisioned inside the network such as the data plane nodes, the DNS proxy, internal load balancers, and other components.
Keep the following requirements in mind when choosing your network CIDR range:
-
Prefix length: The CIDR block must have a prefix length between
/16 and /23. /23 blocks support a maximum of 3 availability zones.
-
Private IP Range: The entire CIDR block must fall within one of these private IP ranges:
- 10.0.0.0/8
- 100.64.0.0/10
- 172.16.0.0/12
- 192.168.0.0/16
- 198.18.0.0/15
-
No overlap with existing ranges: Your CIDR block must not overlap with any IP ranges already in use by your organization. Overlapping ranges can prevent network peering from functioning correctly.
-
No overlap with reserved CIDR blocks: Your CIDR block must not overlap with these reserved ranges:
- 10.100.0.0/16
- 172.17.0.0/16
Acceptable CIDR examples:
- 10.4.0.0/16
- 100.68.0.0/20
- 172.20.0.0/22
- 192.168.128.0/18
- 198.18.0.0/16
The number of availability zones (AZs) you plan to use determines the minimum CIDR range for your Dedicated Cloud Gateway network.
Keep the following in mind:
- Cloud service providers enforce a minimum subnet mask of /28 (16 IPs) and a maximum of /16 (65,536 IPs) for any subnet.
- The following table reflects the minimum recommended CIDR sizes for Dedicated Cloud Gateway deployments to ensure sufficient IP address space for the required infrastructure.
- Selecting a larger CIDR block provides more flexibility for future growth and expansion.
The following table details the minimum CIDR sizes by AZ count:
|
Number of AZs
|
Minimum CIDR
|
|
2
|
/23 (512 IPs)
|
|
3
|
/22 (1,024 IPs)
|
|
4
|
/22 (1,024 IPs)
|
|
5
|
/21 (2,048 IPs)
|
How many IPs are usable depends on whether you’re using a public or private subnet, your network’s CIDR range, and AZ count.
-
Public subnets: Kong reserves about 50 IPs in total (used by Kong’s internal services and cloud provider reserves).
-
Private subnets: The cloud provider your Dedicated Cloud Gateway is deployed on reserves 5 IPs. It cannot use subnets that have fewer than 8 IPs, so Kong reserves about 15 IPs per AZ.
The following table describes how many IPs are usable depending on your CIDR range and AZ count.
The recommended data plane count examples assume a maximum of 15 data planes per AZ and each data plane group needs one public IP in one AZ.
|
CIDR range
|
AZ count
|
Usable IPs per AZ in public subnet
|
Usable IPs per AZ in private subnet
|
Recommended data plane count
|
|
/16
|
2
|
8175
|
16357
|
1-960
|
|
/16
|
3
|
2031
|
8173
|
1-480
|
|
/16
|
4
|
2031
|
8177
|
1-480
|
|
/16
|
5
|
1007
|
8180
|
1-480
|
|
/17
|
2
|
4079
|
8165
|
1-480
|
|
/17
|
3
|
1007
|
4077
|
1-240
|
|
/17
|
4
|
1007
|
4081
|
1-240
|
|
/17
|
5
|
495
|
4084
|
1-240
|
|
/18
|
2
|
2031
|
4069
|
1-240
|
|
/18
|
3
|
495
|
2029
|
1-120
|
|
/18
|
4
|
495
|
2033
|
1-120
|
|
/18
|
5
|
239
|
2036
|
1-120
|
|
/19
|
2
|
1007
|
2021
|
1-120
|
|
/19
|
3
|
239
|
1005
|
1-60
|
|
/19
|
4
|
239
|
1009
|
1-60
|
|
/19
|
5
|
111
|
1012
|
1-60
|
|
/20
|
2
|
495
|
997
|
1-50
|
|
/20
|
3
|
111
|
493
|
1-30
|
|
/20
|
4
|
111
|
497
|
1-30
|
|
/20
|
5
|
47
|
500
|
1-30
|
|
/21
|
2
|
239
|
485
|
1-30
|
|
/21
|
3
|
47
|
237
|
1-20
|
|
/21
|
4
|
47
|
241
|
1-15
|
|
/21
|
5
|
15
|
244
|
1-10
|
|
/22
|
2
|
111
|
229
|
1-10
|
|
/22
|
3
|
15
|
109
|
1-8
|
|
/22
|
4
|
15
|
113
|
1-3
|
|
/22
|
5
|
Not supported
|
Not supported
|
Not supported
|
|
/23
|
2
|
47
|
101
|
1-3
|
|
/23
|
3
|
1
|
45
|
Not recommended
|