forked from zoobab/owrtconfig
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
90 lines (64 loc) · 2.45 KB
/
README
File metadata and controls
90 lines (64 loc) · 2.45 KB
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
88
89
90
DESCRIPTION
===========
Owrtconfig is a script that configure multiple Openwrt routers all connected to
the same switch.
It is used at the Wireless Battle Mesh events (http://battlemesh.org) in order to
configure multiple foneras running Openwrt, and freshly flashed with the
default firmware (all default openwrt devices default IP 192.168.1.1).
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 (scp) by changing the ARP cache
to communicate with each router, one by one.
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 ssh
TESTED ON
=========
Ubuntu Karmic (9.10)
Ubuntu Maverick (10.10)
USAGE
=====
./owrtconfig -P telnet -H nodes.csv -C commands.sh
./owrtconfig -P ssh -H nodes.csv -C commands.sh
./scp-loop.sh -H nodes.csv file1 file2 ..
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)
other values depend on your config script -- these are recomended uses
* 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
====
* Make a check on dependencies
* include a config script to initialize ssh on opwnert-devices
* --Document howto generate ssh keys--
AUTHORS
=======
Nicolas Thill <nico@openwrt.org>
Pieter Heremans <pieter@l45.be>
Benjamin Henrion <bh@udev.org>
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