1 |
dpavlin |
35 |
Small experimental setup to enable MDAP update of ants (MDAP capable devices) |
2 |
|
|
|
3 |
|
|
Written by Dobrica Pavlinusic <dpavlin@rot13.org> |
4 |
|
|
|
5 |
dpavlin |
42 |
Your CPE firmware images goes to /srv/tftp/ |
6 |
|
|
|
7 |
dpavlin |
48 |
This documents assumes that you want following network configuration: |
8 |
|
|
|
9 |
|
|
eth0 192.168.1.0 255.255.255.0 internet connection |
10 |
dpavlin |
54 |
eth1 10.0.0.100 10.255.255.255 CPEs are connected to this interface |
11 |
dpavlin |
48 |
|
12 |
dpavlin |
42 |
^^ Setup upsing stand-alone services |
13 |
|
|
|
14 |
|
|
Install udhcpd and tftpd-hpa and run network-setup.sh script to start all required services. |
15 |
|
|
|
16 |
|
|
^^ Setup using inetd |
17 |
|
|
|
18 |
|
|
Install tftpd and dhcpd, this setup is depriciated, but still useful |
19 |
|
|
|
20 |
dpavlin |
35 |
^ setup tftp /etc/inetd.conf |
21 |
|
|
|
22 |
|
|
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp |
23 |
|
|
|
24 |
|
|
^ setup dhcpd /etc/dhcpd.conf |
25 |
|
|
|
26 |
dpavlin |
48 |
option subnet-mask 255.0.0.0; |
27 |
dpavlin |
35 |
default-lease-time 300; |
28 |
|
|
max-lease-time 600; |
29 |
|
|
dynamic-bootp-lease-length 300; |
30 |
|
|
|
31 |
|
|
authoritative; |
32 |
|
|
allow bootp; |
33 |
|
|
|
34 |
|
|
subnet 192.168.1.0 netmask 255.255.255.0 { |
35 |
|
|
} |
36 |
|
|
|
37 |
dpavlin |
48 |
subnet 10.0.0.0 netmask 255.0.0.0 { |
38 |
|
|
range dynamic-bootp 10.0.1.1 10.0.1.254; |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
|
42 |
dpavlin |
35 |
Special care should be taken with dhcpd server. It complains about unknown IP classes and doesn't |
43 |
|
|
start. Also, there is intentional very small limit on IP lease time which should plenty enough |
44 |
|
|
for ants to reflash because it takes ~ 3 min at most. |
45 |
dpavlin |
42 |
|