CentOS 6.5 Network Bridge SetUp With KVM Instance

Issues related to configuring your network
Post Reply
mikejf12
Posts: 5
Joined: 2012/06/10 22:46:01
Location: Wellington
Contact:

CentOS 6.5 Network Bridge SetUp With KVM Instance

Post by mikejf12 » 2017/05/30 01:41:07

I am trying to get a network bridge to work on CentOS 6.5 on which I have used
virtual machine manager to create a KVM based CentOS 6.8 virtual instance. The parent
host has a default virtual network set up
( in virt machine manager -> edit -> network connection )

Name : Default
Device : virbr0
State: Active
AutoStart : On Boot

IPV4 Config

Network : 192.168.100.0/24
DHCP Start : 192.168.100.128
DHCP end : 192.168.100.254

Forwarding : NAT


The parent host also has the following network interfaces set up

Bridge Br0
-----------
Mac : Unknown
State : Active
Start Mode : on boot

In use by IPV4

Mode : DHCP
Address :

Slave Interfaces

eth2 ethernet
vnet0 ethernet


The configuration files for these interfaces on the parent host are as follows

pwd
/etc/sysconfig/network-scripts

cat ifcfg-br0

DEVICE="br0"
ONBOOT="yes"
TYPE="Bridge"
BOOTPROTO="dhcp"
DNS1=8.8.8.8
DNS2=8.8.4.4
STP="on"
DELAY="0"
NM_CONTROLLED=no

cat ifcfg-eth2

DEVICE=eth2
ONBOOT=yes
BRIDGE="br0"
NM_CONTROLLED=no


The ip address of the parent host is in the ip range 192.168.40.*. It
works and has access to the internet. I have also set up networking and
statically assigned an address in the 192.168.40.* range to the KVM based
virtual instance but it cannot access the internet. i.e

ping 8.8.8.8 ## fails

I have also tried assigning a static ip address to network bridge with no luck.
Im running out of ideas and looking for suggestions, can anyone advise ?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.5 Network Bridge SetUp With KVM Instance

Post by TrevorH » 2017/05/30 01:52:03

I am trying to get a network bridge to work on CentOS 6.5 on which I have used
virtual machine manager to create a KVM based CentOS 6.8 virtual instance.
There's just about an excuse for still running an existing 6.8 but creating a new 6.8 when 6.9 has been out for 2 months, no. And as for still running 6.5, well that's just silly. There have been so many critical security updates since 6.5 came out that it would take pages to list them. Do not run 6.5. It is dangerous. It's more than 3 years out of date.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply