Configuring the CWMP Connection
Procedure
- Run system-view
The system view is displayed.
- Run cwmp
The CWMP view is displayed.
- Run cwmp acs url url
The ACS's URL to which the CPE connects is specified.
To use the HTTPS URL, you must configure SSL authentication.
You can also configure a DHCP option to specify the ACS URL. However, if DHCP packets carrying this option are interrupted, the ACS URL will leak, causing security risk. Use this method only in a secure network environment.
- (Optional) Run cwmp permit interface { interface-type interface-number } &<1-5>
Physical interfaces on the CPE to which the ACS can connect are specified.
By default, the ACS can connect to all the physical interfaces on the CPE.
- (Optional) Run cwmp cpe connect interface interface-type interface-number
The CWMP connection interface is specified.
Generally, a CPE obtains a CWMP connection interface from all the interfaces to which the ACS has reachable routes. If the obtained interface does not connect the CPE to the ACS, CWMP connection fails to be set up. Therefore, a CWMP connection interface needs to be specified manually.
- (Optional) The CPE can use the following methods to send
inform messages:
- Sending inform messages periodically
- Sending an inform message at a specified time
You can configure either one or both methods.
- (Optional) Run cwmp cpe inform product-class device-type
The actual product type of the CPE is added to the session initiated by the CPE to the ACS.
By default, the session initiated by the CPE to the ACS contains the product type AccessRouter.
- (Optional) Run cwmp cpe connect retry times
The maximum number of attempts the CPE can make to retry a connection is set.
By default, the maximum number of attempts is 3.
- (Optional) Run cwmp cpe wait timeout seconds
The connection timeout interval is configured for the CPE. If no data is transmitted within the timeout interval, the connection between the CPE and ACS is torn down.
By default, connection timeout interval is 30 seconds.
- (Optional) Run cwmp ip-change inform
disable
The device is disabled from informing the ACS of an IP address change event.
By default, when the IP address of a device changes, the device does not inform the ACS of this event.
This command takes effect only on IP addresses reachable to the ACS.