Configuring the preferred ACS attributes
Assigning ACS attributes from the DHCP server
You can use DHCP option 43 to assign the ACS URL and ACS login authentication username and password.
If the DHCP server is an HPE device, you can configure DHCP option 43 by using the option 43 hex 01length URL username password command.
length—A hexadecimal number that indicates the total length of the length, URL, username, and password arguments, including the spaces between these arguments. No space is allowed between the 01 keyword and the length value.
URL—ACS URL.
username—Username for the CPE to authenticate to the ACS.
password—Password for the CPE to authenticate to the ACS.
NOTE: The ACS URL, username and password must use the hexadecimal format and be space separated. | ||
The following example configures the ACS address as http://169.254.76.31:7547/acs, username as 1234, and password as 5678:
<Sysname> system-view [Sysname] dhcp server ip-pool 0 [Sysname-dhcp-pool-0] option 43 hex 0127687474703A2F2F3136392E3235342E37362E33313A373534372F61637320313233342035363738
Table 16: Hexadecimal forms of the ACS attributes
Attribute | Attribute value | Hexadecimal form |
---|---|---|
Length | 39 characters | 27 |
ACS URL | http://169.254.76.31/acs | 687474703A2F2F3136392E3235342E37362E33313A373534372F61637320 NOTE: The two ending digits (20) represent the space. |
ACS connect username | 1234 | 3132333420 NOTE: The two ending digits (20) represent the space. |
ACS connect password | 5678 | 35363738 |
For more information about DHCP and DHCP Option 43, see layer 3—IP Services Configuration Guide.
Configuring the preferred ACS attributes from the CLI
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter CWMP view. | cwmp | N/A |
3. Configure the preferred ACS URL. | cwmp acs url url | By default, no preferred ACS URL has been configured. |
4. Configure the username for authentication to the preferred ACS URL. | cwmp acs username username | By default, no username has been configured for authentication to the preferred ACS URL. |
5. (Optional.) Configure the password for authentication to the preferred ACS URL. | cwmp acs password { cipher | simple } string | By default, no password has been configured for authentication to the preferred ACS URL. |