Difference between revisions of "KVM networking"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <code>[[virt-install]]</code> | ||
+ | [[--network]] network=default | ||
+ | --network=bridge:br0 | ||
+ | --network=bridge:virbr0 | ||
− | + | ||
− | <interface type='direct'> (The interface type for [[macvtap]] is direct) | + | == Interface types == |
+ | <[[interface]] type='direct'> (The interface type for [[macvtap]] is direct) | ||
<interface type='network'> | <interface type='network'> | ||
− | + | == Configuration examples == | |
<interface type='direct'> | <interface type='direct'> | ||
− | < | + | <source dev='[[eno]]1' mode='[[bridge]]'/> |
+ | <model type='[[virtio]]'/> | ||
+ | <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | ||
+ | </interface> | ||
+ | |||
+ | <interface type='direct' [[trustGuestRxFilters]]='yes'> | ||
<source dev='eno1' mode='bridge'/> | <source dev='eno1' mode='bridge'/> | ||
<model type='virtio'/> | <model type='virtio'/> | ||
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | ||
</interface> | </interface> | ||
+ | |||
<interface type='network'> | <interface type='network'> | ||
Line 19: | Line 30: | ||
</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 25: | Line 38: | ||
</interface> | </interface> | ||
− | + | == [[MacVTap]] (direct) == | |
− | [[MacVTap]] | ||
<interface type=”direct”> | <interface type=”direct”> | ||
<mac address=12:34:56:78:9a:bc/> | <mac address=12:34:56:78:9a:bc/> | ||
Line 38: | Line 50: | ||
* [[virtio]] | * [[virtio]] | ||
* [[MacVTap]] | * [[MacVTap]] | ||
− | * <code>[[ | + | * Options: <code>[[trustGuestRxFilters]]</code>, to enable [[multicast]] support |
− | * | + | * <code>[[/etc/libvirt/qemu/networks/default.xml]]</code> |
+ | * [[brctl show]] | ||
== See also == | == See also == | ||
+ | |||
* {{virsh net}} | * {{virsh net}} | ||
+ | * {{KVM networking}} | ||
* {{KVM}} | * {{KVM}} | ||
[[Category:KVM]] | [[Category:KVM]] |
Latest revision as of 09:14, 4 April 2021
--network network=default --network=bridge:br0 --network=bridge:virbr0
Contents
Interface types[edit]
<interface type='direct'> (The interface type for macvtap is direct) <interface type='network'>
Configuration examples[edit]
<interface type='direct'> <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'> <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)[edit]
<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[edit]
virsh dumpxml
- virtio
- MacVTap
- Options:
trustGuestRxFilters
, to enable multicast support /etc/libvirt/qemu/networks/default.xml
- brctl show
See also[edit]
- Virsh net: KVM networking,
virsh net-info
,virsh net-define
,virsh net-list
,virsh net-edit
,virsh net-dhcp-leases
,virsh net-start
,virsh net-autostart
,virsh net-list
, KVM networking,/etc/libvirt/qemu/networks/default.xml
, MacVTap - KVM networking, virsh net, MacVTap, Macvtap logs, virtio,
trustGuestRxFilters
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM
Advertising: