Skip to content

Commit ea1d2d8

Browse files
authored
Merge pull request #85599 from dfitzmau/OCPBUGS-44288
OCPBUGS#44288: Updated the cidr-range-definitions.adoc file
2 parents 5a3a3c8 + c4544a1 commit ea1d2d8

File tree

2 files changed

+48
-5
lines changed

2 files changed

+48
-5
lines changed

networking/cidr-range-definitions.adoc

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,59 @@ endif::openshift-dedicated,openshift-rosa[]
99

1010
toc::[]
1111

12-
You must specify non-overlapping ranges for the following CIDR ranges.
12+
If your cluster uses OVN-Kubernetes, you must specify non-overlapping ranges for Classless Inter-Domain Routing (CIDR) subnet ranges.
13+
14+
[IMPORTANT]
15+
====
16+
For {product-title} 4.17 and later versions, clusters use `169.254.0.0/17` for IPv4 and `fd69::/112` for IPv6 as the default masquerade subnet. These ranges should also be avoided by users. For upgraded clusters, there is no change to the default masquerade subnet.
17+
====
18+
19+
The following subnet types and are mandatory for a cluster that uses OVN-Kubernetes:
20+
21+
* Join: Uses a join switch to connect gateway routers to distributed routers. A join switch reduces the number of IP addresses for a distributed router. For a cluster that uses the OVN-Kubernetes plugin, an IP address from a dedicated subnet is assigned to any logical port that attaches to the join switch.
22+
* Masquerade: Prevents collisions for identical source and destination IP addresses that are sent from a node as hairpin traffic to the same node after a load balancer makes a routing decision.
23+
* Transit: A transit switch is a type of distributed switch that spans across all nodes in the cluster. A transit switch routes traffic between different zones. For a cluster that uses the OVN-Kubernetes plugin, an IP address from a dedicated subnet is assigned to any logical port that attaches to the transit switch.
1324
1425
[NOTE]
1526
====
16-
Machine CIDR ranges cannot be changed after creating your cluster.
27+
You can change the join, masquerade, and transit CIDR ranges for your cluster as a post-installation task.
1728
====
1829

1930
ifdef::openshift-rosa,openshift-dedicated[]
2031
When specifying subnet CIDR ranges, ensure that the subnet CIDR range is within the defined Machine CIDR. You must verify that the subnet CIDR ranges allow for enough IP addresses for all intended workloads depending on which platform the cluster is hosted.
2132
endif::[]
2233

34+
OVN-Kubernetes, the default network provider in {product-title} 4.14 and later versions, internally uses the following IP address subnet ranges:
35+
36+
* `V4JoinSubnet`: `100.64.0.0/16`
37+
* `V6JoinSubnet`: `fd98::/64`
38+
* `V4TransitSwitchSubnet`: `100.88.0.0/16`
39+
* `V6TransitSwitchSubnet`: `fd97::/64`
40+
* `defaultV4MasqueradeSubnet`: `169.254.0.0/17`
41+
* `defaultV6MasqueradeSubnet`: `fd69::/112`
42+
2343
[IMPORTANT]
2444
====
25-
OVN-Kubernetes, the default network provider in {product-title} 4.14 and later versions, uses the following IP address ranges internally: `100.64.0.0/16`, `169.254.169.0/29`, `100.88.0.0/16`, `fd98::/64`, `fd69::/125`, and `fd97::/64`. If your cluster uses OVN-Kubernetes, do not include any of these IP address ranges in any other CIDR definitions in your cluster or infrastructure.
26-
27-
For {product-title} 4.17 and later versions, clusters use `169.254.0.0/17` for IPv4 and `fd69::/112` for IPv6 as the default masquerade subnet. These ranges should also be avoided by users. For upgraded clusters, there is no change to the default masquerade subnet.
45+
The previous list includes join, transit, and masquerade IPv4 and IPv6 address subnets. If your cluster uses OVN-Kubernetes, do not include any of these IP address subnet ranges in any other CIDR definitions in your cluster or infrastructure.
2846
====
2947

48+
ifndef::openshift-rosa,openshift-dedicated[]
49+
[role="_additional-resources"]
50+
.Additional resources
51+
52+
* For more information about configuring join subnets or transit subnets, see xref:../networking/ovn_kubernetes_network_provider/configure-ovn-kubernetes-subnets.adoc#configure-ovn-kubernetes-subnets[Configuring OVN-Kubernetes internal IP address subnets].
53+
endif::[]
54+
3055
[id="machine-cidr-description"]
3156
== Machine CIDR
57+
3258
In the Machine classless inter-domain routing (CIDR) field, you must specify the IP address range for machines or cluster nodes.
59+
60+
[NOTE]
61+
====
62+
Machine CIDR ranges cannot be changed after creating your cluster.
63+
====
64+
3365
ifdef::openshift-rosa,openshift-dedicated[]
3466
This range must encompass all CIDR address ranges for your virtual private cloud (VPC) subnets. Subnets must be contiguous. A minimum IP address range of 128 addresses, using the subnet prefix `/25`, is supported for single availability zone deployments. A minimum address range of 256 addresses, using the subnet prefix `/24`, is supported for deployments that use multiple availability zones.
3567
endif::openshift-rosa,openshift-dedicated[]
@@ -43,6 +75,14 @@ When using {hcp-title}, the static IP address `172.20.0.1` is reserved for the i
4375
====
4476
endif::[]
4577
78+
ifndef::openshift-rosa,openshift-dedicated[]
79+
[role="_additional-resources"]
80+
.Additional resources
81+
82+
* xref:../networking/networking_operators/cluster-network-operator.adoc#nw-operator-cr_cluster-network-operator[Cluster Network Operator configuration]
83+
endif::[]
84+
85+
4686
[id="service-cidr-description"]
4787
== Service CIDR
4888
In the Service CIDR field, you must specify the IP address range for services.

networking/ovn_kubernetes_network_provider/configure-ovn-kubernetes-subnets.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ toc::[]
99
[role="_abstract"]
1010
As a cluster administrator, you can change the IP address ranges that the OVN-Kubernetes network plugin uses for the join and transit subnets.
1111

12+
// Configuring the OVN-Kubernetes join subnet
1213
include::modules/nw-ovn-kubernetes-change-join-subnet.adoc[leveloffset=+1]
1314

1415
//day 2 operation for changing masquerade subnet in ovn-k
1516
include::modules/nw-ovn-k-day-2-masq-subnet.adoc[leveloffset=+1]
1617

18+
// Configuring the OVN-Kubernetes transit subnet
1719
include::modules/nw-ovn-kubernetes-change-transit-subnet.adoc[leveloffset=+1]
20+

0 commit comments

Comments
 (0)