Network Bridge configuration for KVM-installed hosts for virtual machines

Source: Internet
Author: User

Look at the configuration file first:

  2Auto Lo3iface Lo inet loopback4Auto Eth05iface eth0 inet static6Address10.21.238.238  7Netmask255.255.255.0  8Broadcast10.21.238.255  9Gateway10.21.238.1 TenAuto br100 Oneiface br100 inet static Abridge_ports eth0 -BRIDGE_STP off -Bridge_maxwait0  theBridge_fd0  -Address10.21.238.238  -Netmask255.255.255.0  -Broadcast10.21.238.255  +Gateway10.21.238.1

Then you may not see br100 information, which requires service networking restart && ifup br100 or restarting the computer.

Installing bridge-utils at the same time can view current bridge information through Brctl Show

[Email protected]:/image# brctl showbridge name     ID               STP enabled     interfacesbr100            8000 . a0d3c1247ba0       no              eth0                                                        vnet0virbr0          8000. fe54814bd460       Yes             Vnet1    

You can see that after I use KVM to create a new virtual machine, the current host network information virtual machine VNET0 network card and the network of the computer are bridged to the local br100 bridge, so that the virtual machine can be connected to the network. The vnet1 corresponds to another NIC of the virtual machine, which is connected using the default bridge.

Network Bridge configuration for KVM-installed hosts for virtual machines

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.