KVM Bridge Creation (Ubuntu environment)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.