forked from zoobab/owrtconfig
-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
87 lines (64 loc) · 2.39 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
DESCRIPTION
===========
Owrtconfig is a script that configure multiple Openwrt routers all connected to
the same switch.
It has been used at the Wireless Battle Mesh second edition (WBMv2) in order to
configure multiple foneras running Openwrt, and freshly flashed with the
default firmware (all the foneras has the default IP 192.168.1.1).
It changes the ARP cache to communicate with each router.
It loads a list of nodes (nodes.csv) and a list of commands to execute on each
router (commands.sh), and it can also upload files.
DEPENDENCIES
============
Please check that your system has the following commands (beware that
stripped-down versions of those provided by busybox might not work):
cat echo sudo arp ping ssh nc tail
TESTED ON
=========
Ubuntu Karmic (9.10)
USAGE
=====
./owrtconfig -telnet nodes.csv commands.sh
./owrtconfig -ssh nodes.csv commands.sh
./owrtconfig -scp nodes.csv commands.sh
NODES.CSV
=========
The input hosts file format (nodes.csv) is:
MAC,PARAM1,PARAM2,PARAM3,PARAM4,PARAM5,PARAM6,PARAM7,PARAM8,PARAM9
where:
* MAC: MAC address (ex: 00:18:84:29:b0:0c)
* PARAM1: hostname (ex: node01)
* PARAM2: wired IP address (ex: 192.168.20.1)
* PARAM3: wireless IP address (ex: 192.168.50.1)
* PARAM4: Not Used
* PARAM5: channel (ex: 11)
* PARAM6: adhoc cell (ex: 02:02:02:02:aa:aa) (adhoc cells needs to start with 02: ?)
* PARAM7: return-routes (ex: route add -net 192.168.20.0/24 gw 192.168.20.1)
* PARAM8: forward-routes (ex: route add -net 192.168.6.0/24 gw 192.168.4.2 && route add -net 192.168.15.0/24 gw 192.168.4.2 && route add -net 192.168.5.0/24 gw 192.168.4.2)
* PARAM9: Not Used
SSH KEYS
========
Look on this website howto setup ssh keys for automatic login:
http://telscom.ch/?p=217
TODO
====
* --Add a switch (-telnet -ssh -copy) instead of having near three identical scripts--
* Add a switch for -scp
* --Document the format of nodes.csv--
* Make a check on dependencies
* --Document howto generate ssh keys--
AUTHORS
=======
Nicolas Thill <[email protected]>
Pieter Heremans <[email protected]>
Benjamin Henrion <[email protected]>
LICENCE
=======
GPLv2
LINKS
=====
* http://battlemesh.org/BattleMeshV3/NodeConfigScript
* http://hackerspace.be/Wbm2009v2/NodeConfigurationFactory
* http://hackerspace.be/Wbm2009v2/NodeConfig
* http://hackerspace.be/Wbm2009v2/ConfigExpectScript
* http://www.zoobab.com/fonera