Configuration Condition
Before configuring the CWMP proxy basic function, first enter the global configuration mode and then configure the CWMP proxy basic function.
Enter CWMP Configuration Mode
For the configuration related to the CWMP proxy, first enter the CWMP proxy configuration mode.
Table 10-2 Enter the CWMP configuration mode
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP proxy configuration mode
|
cwmp agent
|
Mandatory
|
Enable CWMP Proxy
If the device is enabled with the CWMP proxy function, then the device can interact with the CS through the CWMP proxy to remote configure and manage the device.
Table 10-3 Enable the CWMP proxy
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP proxy configuration mode
|
cwmp agent
|
Mandatory
|
Enable the CWMP proxy
|
enable
|
Mandatory
By default, the CWMP proxy is in the disabled state.
|
Configure ACS Server Related Information
By configuring the ACS related information, including the connection address of the ACS server, the device can communicate with the ACS server.
Table 10-4 Configure the ACS server related information
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP proxy configuration mode
|
cwmp agent
|
Mandatory
|
Enable the CWMP proxy
|
enable
|
Mandatory
By default, the CWMP proxy is in the disabled state.
|
Configure ACS related information
|
management server url url-string
|
Mandatory
By default, the device is not configured with the ACS related parameter.
For the unencrypted mode, url-string uses the http protocol. For the encryption mode, url-string uses the https protocol.
|
Configure the user name of the device initiating the connection to the ACS
|
management server user-name
|
Optional
By default, the device is not configured with the ACS related parameter.
If the user name is not configured on the ACS, do not need to configure the user name.
|
Configure the user name and corresponding password of the device initiating the connection to the ACS
|
management server password
|
Optional
By default, the device is not configured with the ACS related parameter.
If the user name and corresponding password are not configured on the ACS, do not need to configure the user name and password.
|
Configure WAN Device Interface
Specify the interface as the default WAN device interface in the interface mode. If the default WAN device is not specified, it will cause that the CWMP proxy cannot send the Inform packet to connect the ACS server.
Table 10-5 Configure the WAN device interface
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the L3 interface to be used
|
interface interface-name
|
Mandatory
It must be configured in the L3 interface mode.
|
Configure the default WAN device
|
cwmp wan default
|
Mandatory
By default, the WAN device interface of the CWMP proxy is not specified.
|
![note](/storage/images/Document/Maipu/note-icon.jpg)
-
If the default WAN device is not specified, it may cause that the CWMP cannot send the Inform packet to connect the ACS. It must be clear that the parameter name and the IP address of the WAN device connecting to the Internet in the current system when organizing the Inform packet.
- After an interface is specified as the default WAN device, if the WAN IP address is not configured in the CWMP mode and the interface is configured with the IP address, the connection request URL is generated by using the IP address of the interface.
Configure CWMP to Periodically Send INFORM Packet
By configuring the CWMP to periodically send the Inform packet, the device can periodically send the Inform packet to the ACS. After the ACS receives the Inform packet sent by the device, handle the packet based on the pre-configuration.
Table 10-6 Configure the CWMP to periodically send the INFORM packet
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP proxy configuration mode
|
cwmp agent
|
Mandatory
|
Enable the CWMP proxy
|
enable
|
Mandatory
By default, the CWMP proxy is disabled.
|
Configure the CWMP to periodically send the INFORM packet
|
enable inform
|
Mandatory
By default, the function of CWMP periodically sending the INFORM function is enabled.
|
Configure Period of CWMP Sending INFORM Packet
After configuring the CWMP to periodically send the INFORM packet, you can configure the period of the CWMP proxy sending the Inform packet. The default sending period is 43200s (12h).
Table 10-7 Configure the period of the CWMP sending the INFORM packet
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP configuration mode
|
cwmp agent
|
Mandatory
|
Enable the CWMP proxy
|
enable
|
Mandatory
By default, the CWMP proxy is disabled.
|
Configure the CWMP to periodically send the INFORM packet
|
enable inform
|
Mandatory
By default, the function of the CWMP periodically sending the INFORM packet is enabled,
|
Configure the period of the CWMP sending the INFORM packet
|
inform interval inform- interval
|
Mandatory
By default, the interval for the device automatically sending the inform packet is 43200s.
|
![note](/storage/images/Document/Maipu/note-icon.jpg)
-
After the function of the CWMP proxy sending the Inform packet is configured and the sending period of the Inform packet is not configured, the CWMP sends the Inform packet to the ACS in 43200s (12h) by default.
- After the periodical sending interval of the Inform packet is modified, the modified interval can only take effect when the last interval expires. If you want the modified interval to take effect immediately, you can reboot the CWMP proxy. Wherein, for enable and no enable, refer to the related chapter in the CWMP command manual.
Configure CWMP File Download
When the function of CWMP proxy supporting the file download is required to download the version file and configuration file, configure the CWMP proxy file download function in advance.
Table 10-8 Configure the CWMP file download
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP proxy configuration mode
|
cwmp agent
|
Mandatory
|
Enable the CWMP proxy
|
enable
|
Mandatory
By default, the CWMP proxy is disabled.
|
Configure the CWMP file download function
|
enable download
|
Mandatory
By default, the file download function of the CWMP is not enabled.
|
Configure Breakpoint Resume Function of CWMP File
After the CWMP file download function is configured and the CWMP is required to support the breakpoint resume function, you can configure the function.
Table 10-9 Configure the breakpoint resume function of the CWMP file
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP proxy configuration mode
|
cwmp agent
|
Mandatory
|
Enable the CWMP proxy
|
enable
|
Mandatory
By default, the CWMP proxy is disabled.
|
Configure the CWMP file download function
|
enable download
|
Mandatory
By default, the file download function of the CWMP is not enabled.
|
Configure the breakpoint resume function of the CWMP file
|
enable download resume
|
Mandatory
By default, the file breakpoint resume function of the CWMP is not enabled.
|
![note](/storage/images/Document/Maipu/note-icon.jpg)
-
Before the breakpoint resume function of the CWMP file is configured the file download function of the CWMP must be configured. If the file download function is not configured at first, then the file breakpoint resume function will not take effect even if the file resume function is configured.
Configure CWMP Provision Code
This function is used to configure the CWMP provision code which is used to mark the basic service information provided by the CWMP.
Table 10-10 Configure CWMP provision code
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the CWMP proxy configuration mode
|
cwmp agent
|
Mandatory
|
Enable the CWMP proxy
|
enable
|
Mandatory
By default, the CWMP proxy is disabled.
|
Configure the CWMP provision code
|
provision code provision-code
|
Mandatory
By default, the CWMP is not configured with the provision code.
|