<commit_before>[id="attaching-to-multiple-networks"]
= Attaching a virtual machine to multiple networks
include::modules/virt-document-attributes.adoc[]
:context: virt-attaching-multiple-networks
toc::[]

{VirtProductName} provides layer-2 networking capabilities that allow you to connect
virtual machines to multiple networks. You can import virtual machines with
existing workloads that depend on access to multiple interfaces. You can also
configure a PXE network so that you can boot machines over the network.

To get started, a network administrator configures a bridge NetworkAttachmentDefinition
for a namespace in the web console or CLI. Users can then create a NIC to attach Pods and virtual machines in that namespace to the bridge network.

include::modules/virt-networking-glossary.adoc[leveloffset=+1]

== Creating a NetworkAttachmentDefinition

== Prerequisites

* A Linux bridge must be configured and attached on every node. 
See the xref:../../../virt/node_network/virt-updating-node-network-config.adoc#virt-about-nmstate_virt-updating-node-network-config[node networking] section for more information.

include::modules/virt-creating-bridge-nad-web.adoc[leveloffset=+2]

include::modules/virt-creating-bridge-nad-cli.adoc[leveloffset=+2]

[NOTE]
====
When defining the NIC in the next section, ensure that the *NETWORK* value is
the bridge network name from the NetworkAttachmentDefinition you created
in the previous section.
====

include::modules/virt-vm-create-nic-web.adoc[leveloffset=+1]

include::modules/virt-networking-wizard-fields-web.adoc[leveloffset=+1]

Install the optional xref:../../../virt/virtual_machines/vm_networking/virt-installing-qemu-guest-agent.adoc#virt-installing-qemu-guest-agent[QEMU guest agent] on the virtual machine so that the host can display relevant information about the additional networks.<commit_msg>Added a warning note about ipam definition in NAD for VMs not being supported.<commit_after>[id="attaching-to-multiple-networks"]
= Attaching a virtual machine to multiple networks
include::modules/virt-document-attributes.adoc[]
:context: virt-attaching-multiple-networks
toc::[]

{VirtProductName} provides layer-2 networking capabilities that allow you to connect
virtual machines to multiple networks. You can import virtual machines with
existing workloads that depend on access to multiple interfaces. You can also
configure a PXE network so that you can boot machines over the network.

To get started, a network administrator configures a bridge NetworkAttachmentDefinition
for a namespace in the web console or CLI. Users can then create a NIC to attach Pods and virtual machines in that namespace to the bridge network.

include::modules/virt-networking-glossary.adoc[leveloffset=+1]

== Creating a NetworkAttachmentDefinition

== Prerequisites

* A Linux bridge must be configured and attached on every node. 
See the xref:../../../virt/node_network/virt-updating-node-network-config.adoc#virt-about-nmstate_virt-updating-node-network-config[node networking] section for more information.

[WARNING]
====
Configuring ipam in a NetworkAttachmentDefinition for virtual machines is not supported.
====

include::modules/virt-creating-bridge-nad-web.adoc[leveloffset=+2]

include::modules/virt-creating-bridge-nad-cli.adoc[leveloffset=+2]

[NOTE]
====
When defining the NIC in the next section, ensure that the *NETWORK* value is
the bridge network name from the NetworkAttachmentDefinition you created
in the previous section.
====

include::modules/virt-vm-create-nic-web.adoc[leveloffset=+1]

include::modules/virt-networking-wizard-fields-web.adoc[leveloffset=+1]

Install the optional xref:../../../virt/virtual_machines/vm_networking/virt-installing-qemu-guest-agent.adoc#virt-installing-qemu-guest-agent[QEMU guest agent] on the virtual machine so that the host can display relevant information about the additional networks.
{'fraction_non_alphanumeric': 0.08967460927491673, 'fraction_numerical': 0.0030745580322828594, 'mean_word_length': 5.539363484087102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '536134', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1045, 'n_words': 372}