(OK) running two Android-x86 in VirtualBox, they connect to "ethernet bridge"

------------------------------------------------------------
running two Android-x86 in VirtualBox, they connect to "ethernet bridge"
------------------------------------------------------------

[root@localhost virtualbox-os]# pwd
/run/media/root/158a840e-63fa-4544-b0b8-dc0d40c79241/virtualbox-os

[root@localhost virtualbox-os]# ll -h
总用量 11G
-rw-------. 1 root root 5.1G 6月  14 21:24 android-x86-6.0-rc1-1.vdi
-rw-------. 1 root root 5.1G 6月  14 21:17 android-x86-6.0-rc1-2.vdi
[root@localhost virtualbox-os]#

brctl addbr br-android
ip link set up dev br-android
ip addr add 10.1.1.1/24 dev br-android
ip route add 10.1.1.0/24 dev br-android


ifconfig br-android down
brctl delbr br-android

// Virtual Box > Settings > Network > Adapter 1 > bridge, br-android.

// in android-x86-6.0-rc1-1
ifconfig eth0 down
ifconfig eth0 10.1.1.10 netmask 255.255.255.0 up

// in android-x86-6.0-rc1-2
ifconfig eth0 down
ifconfig eth0 10.1.1.20 netmask 255.255.255.0 up


android-x86-6.0-rc1-1 can ping android-x86-6.0-rc1-2, and vice verse

posted @ 2016-06-14 21:46  张同光  阅读(109)  评论(0编辑  收藏  举报