175 | | aNode = routersTopo.getNodeByIndex(i-1) |
176 | | info aNode, " will also host the GNRS server" |
177 | | node.addApplication('MF-GNRS') {|app| |
178 | | app.setProperty('log4j_config_file', GNRS_log_file) |
179 | | app.setProperty('jar_file', GNRS_jar_file) |
180 | | app.setProperty('config_file', GNRS_conf_file) |
181 | | } |
| 178 | aNode = routersTopo.getNodeByIndex(i-1) |
| 179 | info aNode, " will also host the GNRS server" |
| 180 | node.addApplication('MF-GNRS') {|app| |
| 181 | app.setProperty('log4j_config_file', GNRS_log_file) |
| 182 | app.setProperty('jar_file', GNRS_jar_file) |
| 183 | app.setProperty('config_file', GNRS_conf_file) |
| 184 | } |
187 | | node.net.w0.mode = "adhoc" |
188 | | node.net.w0.type = 'g' |
189 | | node.net.w0.channel = "11" |
190 | | node.net.w0.essid = "SSID_group_#{i}" |
191 | | node.net.w0.ip = "192.168.#{i}.1" |
| 192 | #The first wireless interface is used to give access to clients |
| 193 | node.net.w0.mode = "adhoc" |
| 194 | node.net.w0.type = 'g' |
| 195 | node.net.w0.channel = "11" |
| 196 | node.net.w0.essid = "SSID_group_#{i}" |
| 197 | node.net.w0.ip = "192.168.#{i}.1" |
208 | | |
209 | | #node.net.e0.ip = "192.168.#{i}.#{i+100}" |
210 | | #node.net.e0.netmask = '255.255.255.0' |
211 | | |
212 | | node.net.w0.mode = "adhoc" |
213 | | node.net.w0.type = 'g' |
214 | | node.net.w0.channel = "11" |
215 | | node.net.w0.essid = "SSID_group_#{i}" |
216 | | node.net.w0.ip = "192.168.#{i}.2" |
217 | | } |
| 216 | |
| 217 | #The first wifi interface is used to connect to the Access Router |
| 218 | node.net.w0.mode = "adhoc" |
| 219 | node.net.w0.type = 'g' |
| 220 | node.net.w0.channel = "11" |
| 221 | node.net.w0.essid = "SSID_group_#{i}" |
| 222 | node.net.w0.ip = "192.168.#{i}.2" |
| 223 | } |