adding two network cards connected b2b

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

I've created an Ubuntu 24.04 VM on the Ubuntu 24.04 host machine.
I want to create two NICs in the VM connected B2B for some experimental testing activity.

I've these two configuration snippets

First snippet I'm not sure where to put.
Second snippet, I'm able to understand that, I have to place it inside the devices node.

Can someone help me understand if

the attached snippets are right
and
parent node for the first snippet ?

Thanks & Regards
--
Lokesh Chakka.
==========================================================================
==========================================================================
<network>
  <name>my-virtual-network</name>
  <bridge name='virbr1' stp='on' delay='0'/>
  <forward mode='nat'/>
  <ip address='192.168.100.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.100.2' end='192.168.100.254'/>
    </dhcp>
  </ip>
</network>
==========================================================================
==========================================================================
<devices>
  <!-- Existing device configurations -->

  <interface type='network'>
    <mac address='52:54:00:11:22:33'/>
    <source network='my-virtual-network'/>
    <model type='virtio'/>
    <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  </interface>
  <interface type='network'>
    <mac address='52:54:00:44:55:66'/>
    <source network='my-virtual-network'/>
    <model type='virtio'/>
    <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  </interface>
</devices>
==========================================================================
==========================================================================

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux