A DHCP server sends DHCP packets with the Option field carrying configuration parameters to clients to implement the Auto-Config function.
Table 2-1 shows DHCP Option parameters used in Auto-Config.
Table 2-1 DHCP Option parameters
Option
Description
Option 43
Configuration of the ACS server assigned to DHCP clients.
sub-option 1: information about ACS URL.Format:
URL=URL_INFO;
Example:
URL=http://192.168.1.40:80/acs;
sub-option 2: ACS user name and password. Format:
username=USERNAME;password=PASSWORD;
Example:
username=user;password=huawei;
Option 66
TFTP server name option, which specifies a TFTP server domain name allocated to DHCP clients.
Option 67
Name of the configuration file assigned to DHCP clients.
NOTE:
In V200R008C50 and later versions, the configuration file path can be specified, The total length of the file path and name cannot exceed 64 bytes. By default, the file path is the server's root directory.
For example, if the server's root directory is flash:/, and the configuration file vrpcfg.cfg is saved to the config folder in the flash:/ directory, the file name with the file path can be specified as config/vrpcfg.cfg.
Option 141
FTP/SFTP user name assigned to DHCP clients.
Option 142
FTP/SFTP password assigned to DHCP clients.
Option 143
FTP server IP address assigned to DHCP clients.
Option 145
Information about the non-configuration file assigned to DHCP clients, for example: information about the system software, version ID and patch file. Format:
vrpfile=VRPFILENAME;vrpver=VRPVERSION;patchfile=PATCHFILENAME;
Example:
vrpfile=auto_V200R008(C20&C30&C50).cc;vrpver=V200R008(C20&C30&C50);patchfile=auto_V200R008(C20&C30&C50).pat;
Option 146
User-defined settings, including file deletion policy used when memory space is insufficient and delay in activating the configuration file. Format:
opervalue = 0: indicates that no system software will be deleted from the file system when the space is insufficient. opervalue=1: indicates that system software will be deleted from the file system when the space is insufficient. By default, no file will be deleted from the file system when the space is insufficient.
delaytime: specifies the delay in restarting a device after a configuration file is downloaded to the device, in seconds. By default, the delay is 0 seconds.
netfile: indicates the intermediate file name. The intermediate file name contains a maximum of 48 bytes, consisting of digits (0 to 9), lowercase letters (a to z), uppercase letters (A to Z), hyphens (-), and underscores (_). The file name extension must be .cfg.
NOTE:
The maximum delay in restarting a device is 1 day, namely, 86400 seconds. If the configured delay exceeds 1 day, the delay is calculated as 1 day.
Option 147
Authentication information used by devices to be configured to authenticate the DHCP server for device deployment. Option 147 is optional. If Option 147 is required, it must be configured as AutoConfig.
Option 148
Agile Controller-Branch's IP address and port number assigned to DHCP clients.
Option 148 is not supported in V200R008C20 and earlier versions.
In V200R008C30, Option 148 is in the following format:
option 148 ascii ac_addr=IPADDR:PORT;
For example, if the Agile Controller-Branch's IP address and port number are 10.120.33.170 and 10020, Option 148 is in the following format:
option 148 ascii ac_addr=10.120.33.170:10020;
In V200R008C50 and later versions, Option 148 is in the following format:
agilemode=AGILEMODE;agilemanage-mode=AGILEMANAGE-MODE;agilemanage-domain=AGILEMANAGE-DOMAIN;agilemanage-port=AGILEMANAGE-PORT;
agilemode: indicates the agile mode. agilemode=tradition: indicates the traditional mode.
agilemanage-mode: indicates that the agilemanage-domain field is an IP address or a domain name. agilemanage-mode=ip: indicates that the agilemanage-domain field is an IP address. agilemanage-mode=domain: indicates that the agilemanage-domain field is a domain name.
agilemanage-domain: indicates an IP address in case of agilemanage-mode=ip or indicates a domain name in case of agilemanage-mode=domain.
agilemanage-port: indicates the Agile Controller-Branch's port number assigned to DHCP clients.
For example, in the Cloud VPN scenario, if the Agile Controller-Branch's IP address and port number assigned to DHCP clients are 10.17.15.84 and 10020, Option 148 is as follows:
agilemode=tradition;agilemanage-mode=ip;agilemanage-domain=10.17.15.84;agilemanage-port=10020;
Option 149
SFTP server IP address and port number assigned to DHCP clients. For example, if the SFTP server IP address is 10.10.10.1 and port number is 22, the Option 149 field is:
option 149 ascii ipaddr=10.10.10.1;port=22;
Option 150
TFTP server IP address assigned to DHCP clients.