RedhatlinuxKVM VM bridging configuration bridge access method www.2cto.com. 1. create a Bridge in the/etc/sysconfig/network-scripts directory, create a ifcfg-br0 file whose type is set to Bridge: Example: DEVICEbr0BOOTPROTOstaticBROADCA... 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 = 192.168.110.255IPADDR = 192.168.110.205NETMASK = 255.255.255.0NETWORK = 192.168.110.0ONBOOT = yesGAT EWAY = 192.168.110.1TYPE = Bridge2. BRIDGE the physical interface to the contents of the BRIDGE adapter to modify eth0 (the server uses eth0 to access the Internet), remove the IP information, and add "BRIDGE = br0 ", bridge it to br0. if it is a dual or multiple NICs, modify DEVICE = eth0 # BOOTPROTO = static # BROADCAST = 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
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