4 |
|
|
5 |
Your CPE firmware images goes to /srv/tftp/ |
Your CPE firmware images goes to /srv/tftp/ |
6 |
|
|
7 |
|
This documents assumes that you want following network configuration: |
8 |
|
|
9 |
|
eth0 192.168.1.0 255.255.255.0 internet connection |
10 |
|
eth1 10.0.0.100 10.255.255.255 CPEs are connected to this interface |
11 |
|
|
12 |
^^ Setup upsing stand-alone services |
^^ Setup upsing stand-alone services |
13 |
|
|
14 |
Install udhcpd and tftpd-hpa and run network-setup.sh script to start all required services. |
Install udhcpd and tftpd-hpa and run network-setup.sh script to start all required services. |
23 |
|
|
24 |
^ setup dhcpd /etc/dhcpd.conf |
^ setup dhcpd /etc/dhcpd.conf |
25 |
|
|
26 |
option subnet-mask 255.255.255.0; |
option subnet-mask 255.0.0.0; |
27 |
default-lease-time 300; |
default-lease-time 300; |
28 |
max-lease-time 600; |
max-lease-time 600; |
29 |
dynamic-bootp-lease-length 300; |
dynamic-bootp-lease-length 300; |
32 |
allow bootp; |
allow bootp; |
33 |
|
|
34 |
subnet 192.168.1.0 netmask 255.255.255.0 { |
subnet 192.168.1.0 netmask 255.255.255.0 { |
|
range dynamic-bootp 192.168.1.101 192.168.1.250; |
|
35 |
} |
} |
36 |
|
|
37 |
|
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 |
Special care should be taken with dhcpd server. It complains about unknown IP classes and doesn't |
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 |
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. |
for ants to reflash because it takes ~ 3 min at most. |