Redhat KVM Network Configuration

Source: Internet
Author: User

Redhat KVM network configuration Note: kvm must be configured on the basis of redhat 6 later and requires at least 4 GB memory. The cpu supports virtualization, 25 GB disk space, and 1 Gbps network interface. 1: Modify file 1: copy the file (because my public ip is set on eth2) # cp/etc/sysconfig/network-scripts/ifcfg-eth2/etc/sysconfig/network-scripts/ifcfg-br02: modify the ifcfg-eth2 file # vi/etc/sysconfig/network-scripts/ifcfg-eth2DEVICE = "eth2" NM_CONTROLLED = "no" BOOTPROTO = staticHWADDR = "00: 22: 19: B8: D9: FE "IPV6INIT =" yes "MTU =" 1500 "ONBOOT = yesTYPE =" Ethernet "NAME =" Syst Em eth2 "BRIDGE =" br0 "UUID =" f2f96e91-9957-43bf-97b7-0cd67d8bb1e2 "Remove IP, netmask, right NM_controlled to no indicates the network does not need networkmanager management, use network management, add red part 3: modify the ifcfg-br0 file # vi/etc/sysconfig/network-scripts/ifcfg-br0 DEVICE = "br0" BOOTPROTO = static1_6init = "yes" MTU = "1500" NM_CONTROLLED = "no" ONBOOT = yesTYPE = "Bridge" IPADDR = 10.200.117.95GATEWAY = 10.200.117.1NETMASK = 255.255.255.0DNS1 = 10.200.117.18 modify or add the red part 2: restart the service because we just managed the network Change to network (networkmanager is used by default). Now restart the network service, service network restart. 3: confirm to configure ifconfig & brctl show [root @ cdsh2950b ~] # Brctl showbridge name bridge idSTP enabledinterfacesbr0 unzip vnet0virbr0 8000.525400c835f0yesvirbr0-nic 4: Create a VM through virt-manager. I installed the system through PXE, so remember the mac address, jumpstart auto install. Just register it. ~

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.