[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:49336] Re: Bridge VirtualBox



takesimaです。 御世話になってます。

この関連の実験をしてみました。
virtualboxから 2台の仮想マシンを動かす実験です。

rootで
tunctl -t tap1 -u tuyosi
tunctl -t tap2 -u tuyosi
brctl addbr br0
ifconfig eth0 0.0.0.0 promisc
brctl addif br0 eth0
ifconfig br0 192.168.72.101
brctl addif br0 tap1
brctl addif br0 tap2
ifconfig tap1 up
ifconfig tap2 up
chmod 0666 /dev/net/tun
route add default gw 192.168.72.50
というスクリプトを走らせておきます。

これにてetch で virtualbox をつかって
 仮想openbsd-1(tap1);アドレスは 192.168.72.102
  仮想openbsd-2 (tap2) ;アドレスは 192.168.72.103
をふたつつくり立ち上げます。

etch自体は上記の設定で 192.168.72.101 です。
 101 から 102 103 へpingが通ります
 102 から 101 103 へpingが通ります
 103 から 102 101 へpingが通ります
単なる実験に過ぎず理論的裏付けはありません。
これでいいのでしょうか、お伺い申し上げます。