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 |
|
|
^^ Setup upsing stand-alone services |
8 |
|
|
|
9 |
|
|
Install udhcpd and tftpd-hpa and run network-setup.sh script to start all required services. |
10 |
|
|
|
11 |
|
|
^^ Setup using inetd |
12 |
|
|
|
13 |
|
|
Install tftpd and dhcpd, this setup is depriciated, but still useful |
14 |
|
|
|
15 |
dpavlin |
35 |
^ setup tftp /etc/inetd.conf |
16 |
|
|
|
17 |
|
|
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp |
18 |
|
|
|
19 |
|
|
^ setup dhcpd /etc/dhcpd.conf |
20 |
|
|
|
21 |
|
|
option subnet-mask 255.255.255.0; |
22 |
|
|
default-lease-time 300; |
23 |
|
|
max-lease-time 600; |
24 |
|
|
dynamic-bootp-lease-length 300; |
25 |
|
|
|
26 |
|
|
authoritative; |
27 |
|
|
allow bootp; |
28 |
|
|
|
29 |
|
|
subnet 192.168.1.0 netmask 255.255.255.0 { |
30 |
|
|
range dynamic-bootp 192.168.1.101 192.168.1.250; |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
Special care should be taken with dhcpd server. It complains about unknown IP classes and doesn't |
34 |
|
|
start. Also, there is intentional very small limit on IP lease time which should plenty enough |
35 |
|
|
for ants to reflash because it takes ~ 3 min at most. |
36 |
dpavlin |
42 |
|