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
Copy file name to clipboardExpand all lines: modules/virt-creating-bridge-nad-cli.adoc
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,11 @@
7
7
8
8
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.
9
9
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.
14
15
15
16
.Procedure
16
17
@@ -33,10 +34,11 @@ spec:
33
34
{
34
35
"type": "cnv-bridge", <4>
35
36
"bridge": "<bridge-interface>", <5>
36
-
"vlan": 1 <6>
37
+
"macspoofchk": true, <6>
38
+
"vlan": 1 <7>
37
39
},
38
40
{
39
-
"type": "cnv-tuning" <7>
41
+
"type": "cnv-tuning" <8>
40
42
}
41
43
]
42
44
}'
@@ -46,10 +48,11 @@ spec:
46
48
<3> The name for the configuration. It is recommended to match the configuration name to the `name` value of the network attachment definition.
47
49
<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.
48
50
<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.
0 commit comments