3 # Script for creating a mesh in star topology.
4 # Node 3 will be the center.
13 ifconfig $WLAN mac:allow
14 MAC=`ifconfig $WLAN | grep ether | awk '{ print $2 }'`
17 ifconfig $WLAN inet $NODE1_IP
18 ifconfig $WLAN mac:add $NODE3_MAC
21 ifconfig $WLAN inet $NODE2_IP
22 ifconfig $WLAN mac:add $NODE3_MAC
25 ifconfig $WLAN inet $NODE3_IP
26 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE2_MAC mac:add \
27 $NODE4_MAC mac:add $NODE5_MAC
30 ifconfig $WLAN inet $NODE4_IP
31 ifconfig $WLAN mac:add $NODE3_MAC
34 ifconfig $WLAN inet $NODE5_IP
35 ifconfig $WLAN mac:add $NODE3_MAC