Redhat linux KVM Virtual Machine bridging

Source: Internet
Author: User

Redhat linux KVM Virtual Machine bridging configuration bridge access method www.2cto.com. 1. Create a Bridge under the/etc/sysconfig/network-scripts directory and create a ifcfg-br0 file whose type is set to Bridge: Example: DEVICE = br0BOOTPROTO = staticBROADCAST = broadcast = 255.255.255.0NETWORK = 192.168.110.0ONBOOT = yesGATEWAY = 192.168.110.1TYPE = Bridge2. Bridge the physical interface to the bridge adapter to modify eth0 content (the server uses eth0 for Internet access ), remove the IP address information and add "BRIDGE = br0" to connect it to br0. If it is a dual or multiple NICs, modify the process as follows: DEVICE = eth0 # BOOTPROTO = static # B ROADCAST = 192.168.110.255HWADDR = 00: 30: 48: F1: 7C: 3A # IPADDR = 192.168.110.205 # NETMASK = 255.255.255.0 # NETWORK = 192.168.110.0ONBOOT = yes # GATEWAY = 192.168.110.1 # TYPE = EthernetBRIDGE = br03 restart the NETWORK service of the physical machine www.2cto.com [root @ virt ~] # Service network restart: closing the interface br0: [OK] Closing the interface eth0: [OK] Closing the loopback interface: [OK] pop-up the loopback interface: [OK] pop-up interface eth0: [OK] br0: [OK] 4. view the current bridging status [root @ virt ~] # Brctl show5: bridge the virtual machine interface to the bridge brctl delif virbr0 vnet0 brctl addif br0 vnet0 [root @ virt ~] # Brctl showbridge name bridge id STP enabled interfacesbr0 8000.003048f17c3a no eth0 vnet0virbr0 8000.000000000000 yes

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.