mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
33 lines
1005 B
Plaintext
33 lines
1005 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.adoc
|
|
|
|
[id="virt-example-nmstate-multiple-interfaces_{context}"]
|
|
= Example: Multiple interfaces in the same node network configuration policy
|
|
|
|
You can create multiple interfaces in the same node network configuration policy. These interfaces can reference each other, allowing you to build and deploy a network configuration by using a single policy manifest.
|
|
|
|
The following example snippet creates a bond that is named `bond10` across two NICs and a Linux bridge that is named `br1` that connects to the bond.
|
|
|
|
[source,yaml]
|
|
----
|
|
...
|
|
interfaces:
|
|
- name: bond10
|
|
description: Bonding eth2 and eth3 for Linux bridge
|
|
type: bond
|
|
state: up
|
|
link-aggregation:
|
|
port:
|
|
- eth2
|
|
- eth3
|
|
- name: br1
|
|
description: Linux bridge on bond
|
|
type: linux-bridge
|
|
state: up
|
|
bridge:
|
|
port:
|
|
- name: bond10
|
|
...
|
|
----
|