You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<1> The CNI specification version. The required value is `0.3.1`.
38
41
<2> The name of the network. This attribute is not namespaced. For example, you can have a network named `l2-network` referenced from two different `NetworkAttachmentDefinition` objects that exist in two different namespaces. This feature is useful to connect VMs in different namespaces.
39
42
<3> The name of the CNI plug-in to be configured. The required value is `ovn-k8s-cni-overlay`.
40
43
<4> The topological configuration for the network. The required value is `layer2`.
41
-
<5> Optional: The maximum transmission unit (MTU) value. The default value is automatically set by the kernel.
42
-
<6> The value of the `namespace` and `name` fields in the `metadata` stanza of the `NetworkAttachmentDefinition` object.
43
-
+
44
-
[NOTE]
45
-
====
46
-
The above example configures a cluster-wide overlay without a subnet defined. This means that the logical switch implementing the network only provides layer 2 communication. You must configure an IP address when you create the virtual machine by either setting a static IP address or by deploying a DHCP server on the network for a dynamic IP address.
47
-
====
44
+
<5> Optional: A comma-separated list of subnets. If you specify multiple subnets, IP addresses are assigned from each subnet. When the `subnets` field is omitted, the logical switch implementing the network only provides layer 2 communication. You must configure an IP address when you create the VM by either setting a static IP address or by deploying a DHCP server on the network for a dynamic IP address.
45
+
<6> Optional: The maximum transmission unit (MTU) value. The default value is automatically set by the kernel.
46
+
<7> The value of the `namespace` and `name` fields in the `metadata` stanza of the `NetworkAttachmentDefinition` object.
47
+
<8> Optional: A comma-separated list of CIDRs and IP addresses. IP addresses are removed from the assignable IP address pool and are not passed to the pods.
48
+
<9> Optional: When set to `true`, the assigned IP addresses persist in an `IPClaims` object. These IP addresses are reused by other pods, if requested. This works only if the `subnets` attribute is also defined.
<1> The CNI specification version. The required value is `0.3.1`.
39
42
<2> The name of the network. This attribute must match the value of the `spec.desiredState.ovn.bridge-mappings.localnet` field of the `NodeNetworkConfigurationPolicy` object that defines the OVS bridge mapping.
40
43
<3> The name of the CNI plug-in to be configured. The required value is `ovn-k8s-cni-overlay`.
41
44
<4> The topological configuration for the network. The required value is `localnet`.
42
-
<5> The value of the `namespace` and `name` fields in the `metadata` stanza of the `NetworkAttachmentDefinition` object.
45
+
<5> Optional: A comma-separated list of subnets. If you specify multiple subnets, IP addresses are assigned from each subnet.
46
+
<6> The value of the `namespace` and `name` fields in the `metadata` stanza of the `NetworkAttachmentDefinition` object.
47
+
<7> Optional: A comma-separated list of CIDRs and IP addresses. IP addresses are removed from the assignable IP address pool and are not passed to the pods.
48
+
<8> Optional: When set to `true`, the assigned IP addresses persist in an `IPClaims` object. These IP addresses are reused by other pods, if requested. This works only if the `subnets` attribute is also defined.
To configure an OVN-Kubernetes secondary network and attach a VM to that network, perform the following steps:
23
23
24
-
. xref:../../virt/vm_networking/virt-connecting-vm-to-ovn-secondary-network.adoc#virt-connecting-vm-to-ovn-secondary-network[Configure an OVN-Kubernetes secondary network] by creating a network attachment definition (NAD).
24
+
. xref:../../virt/vm_networking/virt-connecting-vm-to-ovn-secondary-network.adoc#creating-ovn-nad_virt-connecting-vm-to-ovn-secondary-network[Configure an OVN-Kubernetes secondary network] by creating a network attachment definition (NAD).
25
25
ifndef::openshift-rosa,openshift-dedicated[]
26
26
+
27
27
[NOTE]
@@ -30,17 +30,16 @@ For localnet topology, you must xref:../../networking/multiple_networks/configur
30
30
====
31
31
endif::openshift-rosa,openshift-dedicated[]
32
32
33
-
. xref:../../virt/vm_networking/virt-connecting-vm-to-ovn-secondary-network.adoc#attaching-vm-to-ovn-secondary-nw[Connect the VM to the OVN-Kubernetes secondary network] by adding the network details to the VM specification.
33
+
. xref:../../virt/vm_networking/virt-connecting-vm-to-ovn-secondary-network.adoc#virt-attaching-vm-to-ovn-secondary-nw-cli_virt-connecting-vm-to-ovn-secondary-network[Connect the VM to the OVN-Kubernetes secondary network] by adding the network details to the VM specification.
34
34
35
35
[id="creating-ovn-nad_{context}"]
36
36
== Creating an OVN-Kubernetes NAD
37
37
38
-
You can create an OVN-Kubernetes layer 2 or localnet network attachment definition (NAD) by using the {product-title} web console or the CLI.
38
+
You can create an OVN-Kubernetes layer 2 or localnet network attachment definition (NAD) by using the {product-title} web console or the CLI. For both layer 2 and localnet topologies, you can configure IP address management (IPAM) in a NAD for virtual machines. Hot plugging and hot unplugging is not supported for interfaces that use IPAM.
39
39
40
-
[NOTE]
41
-
====
42
-
Configuring IP address management (IPAM) in a network attachment definition for virtual machines is not supported.
43
-
====
40
+
41
+
:FeatureName: Configuring IPAM in a network attachment definition for VMs
* xref:../../networking/multiple_networks/configuring-additional-network.adoc#configuration-ovnk-additional-networks_configuring-additional-network[Configuration for an OVN-Kubernetes additional network]
66
65
* xref:../../networking/k8s_nmstate/k8s-nmstate-about-the-k8s-nmstate-operator.adoc#k8s-nmstate-about-the-k8s-nmstate-operator[About the Kubernetes NMState Operator]
0 commit comments