Posts

Showing posts from 2013

Configuring Virtual Machines in same network as Host in RHEL 6.x /CentOS 6.x (Bonding and Bridging)

Image
This post is written assuming that you already are running Virtual Machines using KVM on RHEL 6.x/CentOS 6.x. Objective: To bring virtual machines, say vm01 and vm02 hosted on a Server, MyServer with two interfaces eth0 and eth1 on the same network as MyServer. Suppose MyServer's IP address is 10.x.y.a. I want my Virtual Machines to have IP addresses 10.x.y.b and 10.x.y.c. so that I will be able to access them from any machine from the same network as they are physcial machines. This way we will be able to access them over web if required. How To: First of all we need to do bonding of eth0 and eth1 of the MyServer so that they can be accessed through bond0 interface which is going to be connected to bridge br0 later. # vi /etc/modprobe.d/bonding.conf add below line in the newly created file: alias bond0 bonding # vi /etc/sysconfig/network add below two lines: NETWORKING=yes HOSTNAME=MyServer # vi /etc/sysconfig/network-scripts/ifcfg-eth0 Change your configur