Skip to content

Commit a00fd71

Browse files
authored
Merge pull request #35806 from sjhala-ccs/cnv-11198
CNV-11198: Added info about MAC spoof check
2 parents 6024757 + d84f235 commit a00fd71

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

modules/virt-creating-bridge-nad-cli.adoc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
As a network administrator, you can configure a network attachment definition of type `cnv-bridge` to provide Layer-2 networking to pods and virtual machines.
99

10-
[NOTE]
11-
====
12-
The network attachment definition must be in the same namespace as the pod or virtual machine.
13-
====
10+
.Prerequisites
11+
12+
* The network attachment definition must be in the same namespace as the pod or virtual machine.
13+
14+
* The node must support nftables and the `nft` binary must be deployed to enable MAC spoof check.
1415

1516
.Procedure
1617

@@ -33,10 +34,11 @@ spec:
3334
{
3435
"type": "cnv-bridge", <4>
3536
"bridge": "<bridge-interface>", <5>
36-
"vlan": 1 <6>
37+
"macspoofchk": true, <6>
38+
"vlan": 1 <7>
3739
},
3840
{
39-
"type": "cnv-tuning" <7>
41+
"type": "cnv-tuning" <8>
4042
}
4143
]
4244
}'
@@ -46,10 +48,11 @@ spec:
4648
<3> The name for the configuration. It is recommended to match the configuration name to the `name` value of the network attachment definition.
4749
<4> The actual name of the Container Network Interface (CNI) plug-in that provides the network for this network attachment definition. Do not change this field unless you want to use a different CNI.
4850
<5> The name of the Linux bridge configured on the node.
49-
<6> Optional: The VLAN tag.
50-
<7> The CNI plug-in that allows the MAC pool manager to assign a unique MAC address to the connection.
51+
<6> Optional: Flag to enable MAC spoof check. When set to `true`, you cannot change the MAC address of the pod or guest interface. This attribute provides security against a MAC spoofing attack by allowing only a single MAC address to exit the pod.
52+
<7> Optional: The VLAN tag.
53+
<8> The CNI plug-in that allows the MAC pool manager to assign a unique MAC address to the connection.
5154

52-
. Create the network attachment definition:
55+
. Create the network attachment definition:
5356
+
5457
[source,terminal]
5558
----
@@ -66,4 +69,3 @@ $ oc create -f <network-attachment-definition.yaml> <1>
6669
$ oc get network-attachment-definition <a-bridge-network> <1>
6770
----
6871
<1> Where `<a-bridge-network>` is the name specified in the network attachment definition config.
69-

0 commit comments

Comments
 (0)