NetBSD-Users archive

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

bridge0



I thought that setting up a bridge was as trivial as the following, but
apparently not as the ping fails. bridge0 doesn't even learn box2's
ethernet address. What am I missing?

Cheers,

Patrick

#                               +------------+
#                               |            |
# box1 192.168.0.1 --- wire1 ---+ bridge:if1 |
#                               |            |
# box2 192.168.0.2 --- wire2 ---+ bridge:if2 |
#                               |            |
#                               +------------+

bridge=unix:///tmp/sockbr
box1=unix:///tmp/sockbx1
box2=unix:///tmp/sockbx2
wire1=/tmp/netbus1
wire2=/tmp/netbus2

rumpserve="rump_server -lrumpnet -lrumpnet_net -lrumpnet_netinet -lrumpnet_shmif -lrumpnet_bridge"

${rumpserve} ${bridge}
export RUMP_SERVER=${bridge}
rump.ifconfig shmif1 create
rump.ifconfig shmif1 linkstr ${wire1}
rump.ifconfig shmif2 create
rump.ifconfig shmif2 linkstr ${wire2}
rump.ifconfig bridge0 create
rump.ifconfig -a
export RUMPHIJACK=socket=all,sysctl=yes
export RUMPHIJACK_RETRYCONNECT=inftime
export LD_PRELOAD=/usr/lib/librumphijack.so
brconfig bridge0 add shmif1 add shmif2
brconfig bridge0 up
brconfig -a
unset LD_PRELOAD

${rumpserve} ${box1}
export RUMP_SERVER=${box1}
rump.ifconfig shmif0 create
rump.ifconfig shmif0 linkstr ${wire1}
rump.ifconfig shmif0 inet 192.168.0.1 netmask 0xffffff00
rump.ifconfig -w 0
rump.ifconfig -a

${rumpserve} ${box2}
export RUMP_SERVER=${box2}
rump.ifconfig shmif0 create
rump.ifconfig shmif0 linkstr ${wire2}
rump.ifconfig shmif0 inet 192.168.0.2 netmask 0xffffff00
rump.ifconfig -w 0
rump.ifconfig -a

rump.ping -nc 5 192.168.0.1

export RUMP_SERVER=${bridge}
export LD_PRELOAD=/usr/lib/librumphijack.so
brconfig -a
unset LD_PRELOAD

for box in ${bridge} ${box1} ${box2}; do
	export RUMP_SERVER=${box}
	rump.halt
done


Home | Main Index | Thread Index | Old Index