Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux Generic Ethernet connection

Provides a means for the administrator to execute an arbitrary script to connect the guest virtual machine's network to the LAN. The guest virtual machine will have a tun device created with a name of vnetN, which can also be overridden with the target element. After creating the tun device a shell script will be run which is expected to do whatever host physical machine network integration is required. By default this script is called /etc/qemu-ifup but can be overridden (refer to Section, “Overriding the target element”).
The generic Ethernet connection parameters are defined in the following part of the domain XML:

    <interface type='ethernet'/>
    <interface type='ethernet'>
      <target dev='vnet7'/>
      <script path='/etc/qemu-ifup-mynet'/>

Figure 20.40. Devices - network interfaces- generic Ethernet connection