3 # Script for creating a mesh in tree (hirearchical) topology.
23 ifconfig $WLAN mac:allow
24 MAC=`ifconfig $WLAN | grep ether | awk '{ print $2 }'`
27 ifconfig $WLAN inet $NODE1_IP
28 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE3_MAC
31 ifconfig $WLAN inet $NODE2_IP
32 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE4_MAC
35 ifconfig $WLAN inet $NODE3_IP
36 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE5_MAC
39 ifconfig $WLAN inet $NODE4_IP
40 ifconfig $WLAN mac:add $NODE2_MAC
43 ifconfig $WLAN inet $NODE5_IP
44 ifconfig $WLAN mac:add $NODE3_MAC