Monday, March 26, 2012

This is very useful in many cases like if you want to add additional security layer using firewall or if you want to rum KVM virtualizaions with permanent interfaces accessed by the hosts as if the guest is a real machine.

I am using Centos 6.2 64 bit and I am using DHCP for assigning IP addressed and DNS and other configurations

1. Install bridge-utils :yum install bridge-utils
2. Bring down the interfaces eth0 : ifdown eth0
3. Edit the configuration file of the eth0 interface to use the bridge and create a new file for the bridge :

5.If you got a black blank screen you need to append "nomodeset" on the kernel in the grub boot loader entry for Centos.To make this permanent you have to edit the grub configuration files to make a new entry with this new option

5.1 Create a new file in /etc/grub.d/XX_anyname where XX is a number which is greater than the greater number of scripts in this directory, for example if you have scripts like 11_kdjk 30_linux 40_custom, create a file 50_mynewEntry

6.Edit the file adding your centos with nomodeset boot option.I copied the existing centos entry generated by the system and pasted it adding the option :