Difference between revisions of "KVM networking"

From wikieduonline
Jump to navigation Jump to search
Line 32: Line 32:
 
     </interface>
 
     </interface>
  
 +
 +
Read B.9. GUEST CAN REACH OUTSIDE NETWORK, BUT CANNOT REACH HOST WHEN USING MACVTAP INTERFACE
 
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_host_configuration_and_guest_installation_guide/app_macvtap
 
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_host_configuration_and_guest_installation_guide/app_macvtap
 
  <interface type='network'>
 
  <interface type='network'>
Line 37: Line 39:
 
   <model type='virtio'/>
 
   <model type='virtio'/>
 
  </interface>
 
  </interface>
 
  
 
== [[MacVTap]] (direct) ==
 
== [[MacVTap]] (direct) ==

Revision as of 09:48, 12 August 2020

virt-install

--network network=default
--network=bridge:br0
--network=bridge:virbr0


Interface types

<interface type='direct'> (The interface type for macvtap is direct)
<interface type='network'>

Configuration examples

  <interface type='direct'>
     <mac address='52:54:00:ce:12:e4'/>
     <source dev='eno1' mode='bridge'/>
     <model type='virtio'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
   </interface>
  <interface type='direct' trustGuestRxFilters='yes'>
     <mac address='52:54:00:ce:12:e4'/>
     <source dev='eno1' mode='bridge'/>
     <model type='virtio'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
   </interface>


   <interface type='network'>
     <mac address='52:54:00:5d:c1:a5'/>
     <source network='default'/>
     <model type='rtl8139'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
   </interface>


Read B.9. GUEST CAN REACH OUTSIDE NETWORK, BUT CANNOT REACH HOST WHEN USING MACVTAP INTERFACE https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_host_configuration_and_guest_installation_guide/app_macvtap

<interface type='network'>
  <source network='isolated'/>
  <model type='virtio'/>
</interface>

MacVTap (direct)

<interface type=”direct”> 
   <mac address=12:34:56:78:9a:bc/> 
   <source dev=private1 mode=bridge/> 
   <model type=virtio/>    
   <driver name=vhost/> 
</interface>

Related commands

See also

Advertising: