KVM Bridge Creation (Ubuntu environment)
1. The purpose of creating a network bridge is to have the KVM virtual machine connect to this bridge, so that the virtual machine can communicate with the physical network
2, of course, after installing KVM, will automatically establish a bridge virbr0, the bridge should be NAT mode
One, DHCP bridge creation
Vim/etc/network/interfaces
This is the contents of the Interfaces configuration file:
# This file describes the network interfaces available on your system# and how to activate them. For more information, see Interfaces (5). # The loopback network Interfaceauto loiface Lo inet loopback# the primary Network Interfaceauto eth0iface eth0 inet DHCP physical NIC is also dhcpauto br100iface br100 inet DHCP configuration br100 bridge for dhcpbridge_ports eth0 configuration BR1 00 built on the physical NIC Eth0 bridge_stp offbridge_fd
After the creation is complete, restart the network
Static bridges
Vim/etc/network/interfaces
# This file describes the network interfaces available on your system# and how to activate them. For more information, see Interfaces (5). # The loopback network Interfaceauto loiface Lo inet loopback# the primary Network Interfaceauto eth0iface eth0 inet staticaddress 192.168.89.3gateway 192.168.89.2netmask 255.255.255.0network 192.168.89.0broadcast 192.168.89.255auto br100iface br100 inet static bridge_ports eth0bridge_stp offbridge_fd 0bridge_ Maxwait 0address 192.168.89.3network 192.168.89.0netmask 255.255.255.0broadcast 192.168.89.255gateway 192.168.89.2
After the creation is complete, restart the network
This article is from the "Fa&it-Q Group: 223843163" blog, please be sure to keep this source http://freshair.blog.51cto.com/8272891/1877883
KVM Bridge Creation (Ubuntu environment)