RHEL / CentOS KVM Bridged Networking
This tutorial help you to setup KVM bridged networking which allows guest operating system to communicate external network or vice versa. Before going to setup a bridged connection; stop networking service. Here we uses network connection “eth0” to get it bridged with “br0” virtual adapter.
service network stop
Create a virtual adapter named “br0” with following configuration, change the ip address and other related configuration based on your requirement.
Configuration as follows.
DEVICE=br0 TYPE=Bridge BOOTPROTO=static ONBOOT=yes IPADDR=192.168.0.151 NETMASK=255.255.255.0 GATEWAY=192.168.0.99 DNS1=192.168.0.162 DNS2=192.168.0.250 DELAY=0
Now edit your adapter configuration, as per my machine; i have only one adapter named “eth0”.
Add the following information to bridge with virtual adapter “br0”, Do not place the following MAC address on your file.
DEVICE=eth0 ONBOOT=yes BRIDGE=br0 HWADDR=D0:27:88:1C:65:DE
Start networking service.
service network start
Confirm the bridged networking with the following command.
Result will look like below.
bridge name bridge id STP enabled interfaces br0 8000.d027881c65de no eth0