1、创建文件/etc/sysconfig/network-scripts/ifcfg-br0
ifcfg-br0内容如下:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
BROADCAST=1xx.1xx.xx.xxx
IPADDR=1xx.1xx.xx.xx
NETMASK=255.255.255.0
NETWORK=1xx.1xx.xx.0
GATEWAY=1xx.1xx.xx.xxx
ONBOOT=yes
2、修改/etc/sysconfig/network-scripts/ifcfg-eth0 :
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BRIDGE=br0
3、重启网络服务
# /etc/rc.d/init.d/network restart
为了确认网桥是否存在,运行:
#/usr/sbin/brctl show
Then I ran VBoxAddIf command:
VBoxAddIF vbox0 br0
I used Host Interface for networking.
For the 2nd VM, I ran the above command again, but this time for vbox1:
VBoxAddIF vbox1 br0
阅读(1243) | 评论(0) | 转发(0) |