mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
32 lines
929 B
Plaintext
32 lines
929 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc
|
|
|
|
:_mod-docs-content-type: CONCEPT
|
|
[id="configuration-layer-two-switched-topology_{context}"]
|
|
= Configuration for a layer 2 switched topology
|
|
|
|
[role="_abstract"]
|
|
The switched (layer 2) topology networks interconnect the workloads through a cluster-wide logical switch. This configuration can be used for IPv6 and dual-stack deployments.
|
|
|
|
[NOTE]
|
|
====
|
|
Layer 2 switched topology networks only allow for the transfer of data packets between pods within a cluster.
|
|
====
|
|
|
|
The following JSON example configures a switched secondary network:
|
|
|
|
[source,json]
|
|
----
|
|
{
|
|
"cniVersion": "0.3.1",
|
|
"name": "l2-network",
|
|
"type": "ovn-k8s-cni-overlay",
|
|
"topology":"layer2",
|
|
"subnets": "10.100.200.0/24",
|
|
"mtu": 1300,
|
|
"netAttachDefName": "ns1/l2-network",
|
|
"excludeSubnets": "10.100.200.0/29"
|
|
}
|
|
----
|