Page 86 / 91 Scroll up to view Page 81 - 85
86
Step 4. Modify
dhcpd.conf
file
Modify the marked area with your own settings.
1.
This value is configurable and can be defined by users.
2.
Specify the protocol used (Protocol 1: FTP; Protocol 0: TFTP).
3.
Specify the FTP or TFTP IP address.
4.
Login FTP server anonymously.
5.
Specify FTP Server login name.
6.
Specify FTP Server login password.
7.
Specify the product model name.
8.
Specify the firmware filename.
9.
Specify the MD5 for firmware image. The format of MD5 might be the same as the one
in the sample text.
10. Specify the configuration image filename.
Page 87 / 91
87
Step 5. Generate a Configuration File
Before preparing the configuration image in TFTP/FTP Server, please make sure the device
generating the c
onfiguration image is set to “Get IP address from DHCP” assignment.
This
is because that DHCP Auto-provisioning is running under DHCP mode, so if the
configuration image is uploaded by the network type other than DHCP mode, the
downloaded configuration image has no chance to be equal to DHCP when provisioning,
and it results in MD5 never match and causes the device to reboot endlessly.
In order for your Residential Gateway to retrieve the correct configuration image in
TFTP/FTP Server, please use the following rule to define the configuration image
s filename.
The filename should contain the configuration image filename specified in
dhcpd.conf
followed by the last three octets of your device
s MAC address. For example, if the
configuration image
s filename specified in dhcpd.conf is
metafile
and the MAC address of
your device is
00:06:19:03:21:80
, the configuration image filename should be named to
metafile032180.dat
.
Step 6. Place a copy of Firmware and Configuration File in TFTP/FTP
Server
The TFTP/FTP File server should include the following items:
1.
Firmware image
2.
Configuration image
3.
User account for your device (For FTP server only)
Page 88 / 91
88
B. Auto-Provisioning Process
This Residential Gateway is setting-free (through auto-upgrade and configuration) and its
upgrade procedures are as follows:
1.
The ISC DHCP server will recognize the device whenever it sends an IP address
request to it. And ISC DHCP server will tell the device how to get a new firmware or
configuration.
2.
The device will compare the firmware and configuration MD5 code form of DHCP option
every time when it communicates with DHCP server.
3.
If MD5 code is different, the device will then upgrade the firmware or configuration.
However, it will not be activated right after.
4.
If the Urgency Bit is set, the device will be reset to activate the new firmware or
configuration immediately.
5.
The device will retry for 3 times if the file is incorrect, then it gives up until getting
another DHCP ACK packet again.
Page 89 / 91
89
APPENDIX B: DHCP Text Sample
default-lease-time 90;
max-lease-time 7200;
#ddns-update-style ad-hoc;
ddns-update-style interim;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.1 192.168.2.99;
option subnet-mask
255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.2;
option domain-name-servers 168.95.1.1, 168.95.192.1, 192.168.2.2;
host
CTS-FAE {
hardware ethernet 00:14:85:06:5A:06;
fixed-address 192.168.2.99;
}
}
#Please copy the text below to your dhcpd.conf file#
option space SAMPLE;
# protocol 0:tftp, 1:ftp
option SAMPLE.protocol code 1 = unsigned integer 8;
option SAMPLE.server-ip code 2 = ip-address;
option SAMPLE.server-login-name code 3 = text;
option SAMPLE.server-login-password code 4 = text;
option SAMPLE.firmware-file-name code 5 = text;
option SAMPLE.firmware-md5 code 6 = string;
option SAMPLE.configuration-file-name code 7 = text;
option SAMPLE.configuration-md5 code 8 = string;
#16 bits option (bit 0: Urgency, bit 1-15: Reserve)
option SAMPLE.option code 9
= unsigned integer 16;
class "vendor-classes" {
match option vendor-class-identifier;
}
option SAMPLE.protocol 1;
option SAMPLE.server-ip 192.168.2.1;
#
option SAMPLE.server-login-name "anonymous";
option SAMPLE.server-login-name "sqa";
option SAMPLE.server-login-password "a12345A";
subclass "vendor-classes" "VRG-21412-WF" {
vendor-option-space SAMPLE;
#
option SAMPLE.firmware-file-name "VRG-21412-WF_9.99.99.bin";
Page 90 / 91
90
#
option SAMPLE.firmware-md5 d8:e2:f0:de:7d:a5:8e:2c:6e:4e:a7:5a:39:78:07:d8;
option SAMPLE.configuration-file-name "metafile";
option SAMPLE.configuration-md5 95:d6:5c:39:4d:83:76:30:61:16:9b:de:37:ba:12:84;
option SAMPLE.option 1;
}

Rate

3.5 / 5 based on 2 votes.

Popular CTSystems Models

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top