File tree Expand file tree Collapse file tree 4 files changed +77
-0
lines changed
Expand file tree Collapse file tree 4 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ // Module included in the following assemblies:
2+ //
3+ // * networking/multiple_networks/configuring-additional-network.adoc
4+
5+ :_content-type: PROCEDURE
6+
7+ [id="nw-multus-configure-dualstack-ip-address_{context}"]
8+ = Creating a configuration for assignment of dual-stack IP addresses dynamically
9+
10+ Dual-stack IP address assignment can be configured with the `ipRanges` parameter for:
11+
12+ * IPv4 addresses
13+ * IPv6 addresses
14+ * multiple IP address assignment
15+
16+ .Procedure
17+
18+ . Set `type` to `whereabouts`.
19+
20+ . Use `ipRanges` to allocate IP addresses as shown in the following example:
21+ +
22+ [source,yaml]
23+ ----
24+ cniVersion: operator.openshift.io/v1
25+ kind: Network
26+ =metadata:
27+ name: cluster
28+ spec:
29+ additionalNetworks:
30+ - name: whereabouts-shim
31+ namespace: default
32+ type: Raw
33+ rawCNIConfig: |-
34+ {
35+ "name": "whereabouts-dual-stack",
36+ "cniVersion": "0.3.1,
37+ "type": "bridge",
38+ "ipam": {
39+ "type": "whereabouts",
40+ "ipRanges": [
41+ {"range": "192.168.10.0/24"},
42+ {"range": "2001:db8::/64"}
43+ ]
44+ }
45+ }
46+
47+ ----
48+
49+ . Attach network to a pod. For more information, see "Adding a pod to an additional network".
50+
51+ . Verify that all IP addresses are assigned.
52+
53+ . Run the following command to ensure the IP addresses are assigned as metadata.
54+ +
55+ [source,yaml]
56+ ----
57+ $ oc exec -it mypod -- ip a
58+ ----
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ You can configure an InfiniBand (IB) network attachment for an Single Root I/O V
1010
1111include::modules/nw-sriov-ibnetwork-object.adoc[leveloffset=+1]
1212include::modules/nw-multus-ipam-object.adoc[leveloffset=+2]
13+
14+ include::modules/nw-multus-configure-dualstack-ip-address.adoc[leveloffset=+2]
15+
16+ [role="_additional-resources"]
17+ .Additional resources
18+ * xref:../../networking/multiple_networks/attaching-pod.html#nw-multus-add-pod_attaching-pod[Attaching a pod to an additional network]
19+
1320include::modules/nw-sriov-network-attachment.adoc[leveloffset=+1]
1421
1522[id="configuring-sriov-ib-attach-next-steps"]
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ You can configure an Ethernet network attachment for an Single Root I/O Virtuali
1010
1111include::modules/nw-sriov-network-object.adoc[leveloffset=+1]
1212include::modules/nw-multus-ipam-object.adoc[leveloffset=+2]
13+ include::modules/nw-multus-configure-dualstack-ip-address.adoc[leveloffset=+2]
14+
15+ [role="_additional-resources"]
16+ .Additional resources
17+ * xref:../../networking/multiple_networks/attaching-pod.html#nw-multus-add-pod_attaching-pod[Attaching a pod to an additional network]
18+
1319include::modules/nw-sriov-network-attachment.adoc[leveloffset=+1]
1420
1521[id="configuring-sriov-net-attach-next-steps"]
Original file line number Diff line number Diff line change @@ -168,6 +168,12 @@ include::modules/configuring-pods-static-ip.adoc[leveloffset=+3]
168168
169169include::modules/nw-multus-ipam-object.adoc[leveloffset=+1]
170170
171+ include::modules/nw-multus-configure-dualstack-ip-address.adoc[leveloffset=+2]
172+
173+ [role="_additional-resources"]
174+ .Additional resources
175+ * xref:../../networking/multiple_networks/attaching-pod.html#nw-multus-add-pod_attaching-pod[Attaching a pod to an additional network]
176+
171177include::modules/nw-multus-create-network.adoc[leveloffset=+1]
172178
173179include::modules/nw-multus-create-network-apply.adoc[leveloffset=+1]
You can’t perform that action at this time.
0 commit comments