Install Virtualbox in Centos and configure Bridge network
After Install Virtual OS in Master Machine do the below steps
Step 1: login to the master OS and open terminal.
Step 2: Go to /etc/sysconfig/network-
Step 3: Install bridge-utils by using the below command.
#Yum install bridge-utils
#mkdir backup
#cp ifcfg-eth0 backup/
#vi ifcfg-eth0
Step 4: comment IPADDR
Step 5: create ifcfg-br0 file and add the below comments in ifcfg-br0
DEVICE=br0
BOOTPROTO=none
#HWADDR=00:1c:c0:61:d8:b2
ONBOOT=yes
NETMASK=255.255.240.0
IPADDR=10.10.17.4
GATEWAY=10.10.16.13
TYPE=Bridge
USERCTL=no
IPV6INIT=no
PEERDNS=yes
Step 6: give your IPADDR,NETMASK and GATEWAY and then run the below commands in terminal.
#/usr/sbin/brctl addbr br0
#/usr/sbin/brctl setfd br0 0
#/usr/sbin/brctl sethello br0 0 #?
#/usr/sbin/brctl addif br0 eth0
#/etc/init.d/network restart
#brctl show
Step 7: Open virtualbox and select the virtual OS(slave)
Step 8: click the settings then it shows a new window.
Step 9: In here select network.
Step 10: In Adapter 1 change the Attached to dropdown to Host Interface and give Interface Name vbox0
Step 11: Go to the Master OS terminal and execute the below command
#VboxAddIF vbox0 root br0
Step 12: start the slave machine and set ip and ping some Lan IP if its pinging fine there is no problem.
Step 13: If its not pinging check your master and slave firewall configurations.
No comments:
Post a Comment