Skip to content

Commit 759b474

Browse files
committed
OSDOCS-14356-New: Added bond best practices info to networking docs
1 parent 45d543f commit 759b474

15 files changed

+115
-32
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,8 @@ Topics:
17481748
File: verifying-connectivity-endpoint
17491749
- Name: Changing the cluster network MTU
17501750
File: changing-cluster-network-mtu
1751+
- Name: Network bonding considerations
1752+
File: network-bonding-considerations
17511753
- Name: Using Stream Control Transmission Protocol
17521754
File: using-sctp
17531755
- Name: Associating secondary interfaces metrics to network attachments

installing/installing_bare_metal/ipi/ipi-install-installation-workflow.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ include::modules/creating-manifest-file-customized-br-ex-bridge.adoc[leveloffset
3838
// Scale each machine set to compute nodes
3939
include::modules/creating-scaling-machine-sets-compute-nodes-networking.adoc[leveloffset=+2]
4040

41-
// Enabling OVS balance-slb mode for your cluster
42-
include::modules/enabling-OVS-balance-slb-mode.adoc[leveloffset=+1]
43-
4441
// Establishing communication between subnets
4542
include::modules/ipi-install-establishing-communication-between-subnets.adoc[leveloffset=+1]
4643

installing/installing_bare_metal/upi/installing-bare-metal-network-customizations.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ include::modules/creating-manifest-file-customized-br-ex-bridge.adoc[leveloffset
7979
// Scale each machine set to compute nodes
8080
include::modules/creating-scaling-machine-sets-compute-nodes-networking.adoc[leveloffset=+2]
8181

82-
// Enabling OVS balance-slb mode for your cluster
83-
include::modules/enabling-OVS-balance-slb-mode.adoc[leveloffset=+1]
84-
8582
include::modules/installation-infrastructure-user-infra.adoc[leveloffset=+1]
8683

8784
[role="_additional-resources"]

installing/installing_bare_metal/upi/installing-bare-metal.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ include::modules/creating-manifest-file-customized-br-ex-bridge.adoc[leveloffset
100100
// Scale each machine set to compute nodes
101101
include::modules/creating-scaling-machine-sets-compute-nodes-networking.adoc[leveloffset=+2]
102102

103-
// Enabling OVS balance-slb mode for your cluster
104-
include::modules/enabling-OVS-balance-slb-mode.adoc[leveloffset=+1]
105-
106103
include::modules/installation-infrastructure-user-infra.adoc[leveloffset=+1]
107104

108105
[role="_additional-resources"]

installing/installing_bare_metal/upi/installing-restricted-networks-bare-metal.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ include::modules/creating-manifest-file-customized-br-ex-bridge.adoc[leveloffset
9494
// Scale each machine set to compute nodes
9595
include::modules/creating-scaling-machine-sets-compute-nodes-networking.adoc[leveloffset=+2]
9696

97-
// Enabling OVS balance-slb mode for your cluster
98-
include::modules/enabling-OVS-balance-slb-mode.adoc[leveloffset=+1]
99-
10097
include::modules/installation-infrastructure-user-infra.adoc[leveloffset=+1]
10198

10299
[role="_additional-resources"]

modules/configuring-localnet-switched-topology.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ When attaching a secondary network, you can either use the existing `br-ex` brid
2323
- If your nodes include only a single network interface, you must use the existing bridge. This network interface is owned and managed by OVN-Kubernetes and you must not remove it from the `br-ex` bridge or alter the interface configuration. If you remove or alter the network interface, your cluster network will stop working correctly.
2424
- If your nodes include several network interfaces, you can attach a different network interface to a new bridge, and use that for your secondary network. This approach provides for traffic isolation from your primary cluster network.
2525
26+
[NOTE]
27+
====
28+
As a postinstallation task, you cannot make configuration changes to the `br-ex` bridge or its underlying interfaces. As a workaround, use a secondary network interface connected to your host or switch.
29+
====
30+
2631
The `localnet1` network is mapped to the `br-ex` bridge in the following example:
2732

2833
.Example mapping for sharing a bridge

modules/configuring-ovnk-use-second-ovs-bridge.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ For more information about useful situations for the additional `br-ex1` bridge
3939
+
4040
[IMPORTANT]
4141
====
42-
Do not use the Kubernetes NMState Operator to define or a `NodeNetworkConfigurationPolicy` (NNCP) manifest file to define the additional interface.
42+
Do not use the Kubernetes NMState Operator or a `NodeNetworkConfigurationPolicy` (NNCP) manifest file to define the additional interface. Ensure that the additional interface or sub-interfaces when defining a `bond` interface are not used by an existing `br-ex` OVN Kubernetes network deployment.
4343

44-
Also ensure that the additional interface or sub-interfaces when defining a `bond` interface are not used by an existing `br-ex` OVN Kubernetes network deployment.
44+
As a postinstallation task, you cannot make configuration changes to the `br-ex` bridge or its underlying interfaces. As a workaround, use a secondary network interface connected to your host or switch.
4545
====
4646
+
4747
.. Create the following interface definition files. These files get added to a machine configuration manifest file so that host nodes can access the definition files.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/advanced_networking/network-bonding-considerations.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="enabling-active-backup-mode_{context}"]
7+
= Enabling active-backup mode for your cluster
8+
9+
The `active-backup` mode provides fault tolerance for network connections by switching to a backup link where the primary link fails. The mode specifies the following ports for your cluster:
10+
11+
* An active port where one physical interface sends and receives traffic at any given time.
12+
* A standby port where all other ports act as backup links and continously monitor their link status.
13+
14+
During a failover process, if an active port or its link fails, the bonding logic switches all network traffic to a standby port. This standby port becomes the new active port. For failover to work, all ports in a bond must share the same Media Access Control (MAC) address.
15+

modules/installation-network-user-infra.adoc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,13 @@ During the initial boot, the machines require an IP address configuration that i
8989

9090
[NOTE]
9191
====
92-
* It is recommended to use a DHCP server for long-term management of the cluster machines. Ensure that the DHCP server is configured to provide persistent IP addresses, DNS server information, and hostnames to the cluster machines.
92+
* Consider using a DHCP server for long-term management of the cluster machines. Ensure that the DHCP server is configured to provide persistent IP addresses, DNS server information, and hostnames to the cluster machines.
9393
9494
* If a DHCP service is not available for your user-provisioned infrastructure, you can instead provide the IP networking configuration and the address of the DNS server to the nodes at {op-system} install time. These can be passed as boot arguments if you are installing from an ISO image. See the _Installing {op-system} and starting the {product-title} bootstrap process_ section for more information about static IP provisioning and advanced networking options.
9595
====
9696
endif::ibm-z[]
9797

98-
The Kubernetes API server must be able to resolve the node names of the cluster
99-
machines. If the API servers and worker nodes are in different zones, you can
100-
configure a default DNS search zone to allow the API server to resolve the
101-
node names. Another supported approach is to always refer to hosts by their
102-
fully-qualified domain names in both the node objects and all DNS requests.
98+
The Kubernetes API server must be able to resolve the node names of the cluster machines. If the API servers and worker nodes are in different zones, you can configure a default DNS search zone to allow the API server to resolve the node names. Another supported approach is to always refer to hosts by their fully-qualified domain names in both the node objects and all DNS requests.
10399
endif::azure,gcp[]
104100

105101
ifndef::ibm-z,azure[]
@@ -114,9 +110,7 @@ endif::ibm-z,azure[]
114110
[id="installation-network-connectivity-user-infra_{context}"]
115111
== Network connectivity requirements
116112

117-
You must configure the network connectivity between machines to allow {product-title} cluster
118-
components to communicate. Each machine must be able to resolve the hostnames
119-
of all other machines in the cluster.
113+
You must configure the network connectivity between machines to allow {product-title} cluster components to communicate. Each machine must be able to resolve the hostnames of all other machines in the cluster.
120114

121115
This section provides details about the ports that are required.
122116

modules/installation-user-infra-machines-static-network.adoc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ ifndef::ibm-z-kvm[]
220220

221221
=== Bonding multiple network interfaces to a single interface
222222

223-
Optional: You can bond multiple network interfaces to a single interface by using the `bond=` option. Refer to the following examples:
223+
As an optional configuration, you can bond multiple network interfaces to a single interface by using the `bond=` option. To apply this configuration to your cluster, complete the procedure steps for each node that runs on your cluster.
224+
225+
.Procedure
224226

225227
* The syntax for configuring a bonded interface is: `bond=<name>[:<network_interfaces>][:options]`
226228
+
@@ -229,26 +231,24 @@ and _options_ is a comma-separated list of bonding options. Enter `modinfo bondi
229231

230232
* When you create a bonded interface using `bond=`, you must specify how the IP address is assigned and other
231233
information for the bonded interface.
232-
234+
+
233235
** To configure the bonded interface to use DHCP, set the bond's IP address to `dhcp`. For example:
234236
+
235237
[source,terminal]
236238
----
237-
bond=bond0:em1,em2:mode=active-backup
238239
ip=bond0:dhcp
239240
----
240-
241+
+
241242
** To configure the bonded interface to use a static IP address, enter the specific IP address you want and related information. For example:
242243
ifndef::ibm-z[]
243244
+
244245
[source,terminal]
245246
----
246-
bond=bond0:em1,em2:mode=active-backup
247247
ip=10.10.10.2::10.10.10.254:255.255.255.0:core0.example.com:bond0:none
248248
----
249249
endif::ibm-z[]
250250
ifdef::ibm-z[]
251-
251+
+
252252
[source,terminal]
253253
----
254254
bond=bond0:em1,em2:mode=active-backup,fail_over_mac=1
@@ -287,9 +287,9 @@ ifndef::ibm-z[]
287287

288288
=== Bonding multiple SR-IOV network interfaces to a dual port NIC interface
289289

290-
Optional: You can bond multiple SR-IOV network interfaces to a dual port NIC interface by using the `bond=` option.
290+
As an optional configuration, you can bond multiple SR-IOV network interfaces to a dual port NIC interface by using the `bond=` option.
291291

292-
On each node, you must perform the following tasks:
292+
.Procedure
293293

294294
ifndef::installing-ibm-power[]
295295
. Create the SR-IOV virtual functions (VFs) following the guidance in link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_virtualization/managing-virtual-devices_configuring-and-managing-virtualization#managing-sr-iov-devices_managing-virtual-devices[Managing SR-IOV devices]. Follow the procedure in the "Attaching SR-IOV networking devices to virtual machines" section.
@@ -308,12 +308,13 @@ The following examples illustrate the syntax you must use:
308308

309309
* When you create a bonded interface using `bond=`, you must specify how the IP address is assigned and other information for the bonded interface.
310310

311-
** To configure the bonded interface to use DHCP, set the bond's IP address to `dhcp`. For example:
311+
** To configure the bonded interface to use DHCP, set the `ip` parameter to `dhcp` as demonstrated in the following example:
312312
+
313313
[source,terminal]
314314
----
315315
bond=bond0:eno1f0,eno2f0:mode=active-backup
316316
ip=bond0:dhcp
317+
fail_over_mac=0
317318
----
318319

319320
** To configure the bonded interface to use a static IP address, enter the specific IP address you want and related information. For example:

0 commit comments

Comments
 (0)