Configure Source IP Address specified by CWMP
Network Requirements
- Device visits the ACS through Network and enable the CWMP function on Device.
- Specify the source IP address of the CWMP as 1.0.0.1. enable Device to visit the ACS through the firewall and execute the version upgrade, configuration restoration, and configuration backup tasks sent by the ACS.
Network Topology
![Networking of configuring the source IP address specified by the CWMP](/storage/images/Document/Maipu/monitoring/config-source-ip-by-cwmp.jpg)
Figure 10-3 Networking of configuring the source IP address specified by the CWMP
Configuration Steps
Step 1: Configure VLAN, and add the port to the corresponding VLAN (omitted).
Step 2: Configure the IP address and router of the interfaces. (Omitted)
Step 3: Configure the CWMP.
# Enable the CWMP proxy and file download function on Device. Configure the URL of the ACS and the source IP address of the CWMP as 1.0.0.1.
Device#configure terminal
Device(config)#cwmp agent
Device(config-cwmp)#enable
Device(config-cwmp)#management server url http://129.255.136.200:8080/openacs/acs
Device(config-cwmp)#enable download
Device(config-cwmp)#ip source 1.0.0.1
Device(config-cwmp)#exit
|
#Configure the Loopback0 interface as the default WAN device.
Device(config)#interface loopback 0
Device(config-if-loopback0)#cwmp wan default
Device(config-if-loopback0)#exit
|
Step 4: Configure the firewall.
#The firewall rejects the packet with the source IP address as 43.0.0.1 to pass and allows the packet with the source IP address as 1.0.0.1 to pass.
Step 5: Configure the ACS server
#Create the version upgrade task and configuration restoration task and configuration backup task on the ACS.
Step 6: Check the result.
#Execute the show running-config command on Device and the configured source IP address can be viewed.
cwmp agent
management server url http://129.255.136.200:8080/openacs/acs
enable download
enable
ip source 1.0.0.1
exit
#Device can successfully execute the version upgrade task and configuration restoration task and configuration backup task sent by the ACS.