No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring CWMP

Example for Configuring CWMP

Networking Requirements

As shown in Figure 5-4, multiple hosts in Enterprise A access an enterprise gateway router. The router connects to the Internet.

The enterprise headquarters want to upgrade router software and hardware, download configuration files to the router automatically, and restart the router remotely during upgrade or troubleshooting. The CWMP function needs to be configured on the router to provide these functions.

Figure 5-4  The ACS manages the router by using CWMP

Configuration Roadmap

To meet the enterprise requirements, configure CWMP:

  1. To ensure that the CPE can initiate a connection to the ACS, configure the CWMP connection on the router.
  2. To ensure connection security, configure CWMP authentication on the router.

Procedure

  1. Configure the router IP address and route based on Figure 5-4 and ensure that the route is reachable.

    <Huawei> system-view
    [Huawei] sysname Router
    [Router] interface gigabitethernet 1/0/0
    [Router-GigabitEthernet1/0/0] ip address 10.1.1.1 24
    [Router-GigabitEthernet1/0/0] quit
    [Router] ospf 1
    [Router-ospf-1] area 0
    [Router-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
    [Router-ospf-1-area-0.0.0.0] quit
    [Router-ospf-1] quit

  2. Enable the CWMP function on the router.

    [Router] cwmp
    [Router-cwmp] cwmp enable

  3. Configure the CWMP connection of the router.

    # Configure the URL used by the router to connect to the ACS.

    [Router-cwmp] cwmp acs url http://10.2.1.1/acs

    # Configure the interface on the router to connect to the ACS.

    [Router-cwmp] cwmp cpe connect interface gigabitethernet 1/0/0

    # Enable the router to send Inform messages.

    [Router-cwmp] cwmp cpe inform interval enable

    # Set the interval at which the router sends Inform messages to 1000 seconds.

    [Router-cwmp] cwmp cpe inform interval 1000

    # Set the maximum number of connection attempts to 5.

    [Router-cwmp] cwmp cpe connect retry 5

    # Set the close-wait timer of the router to 100 seconds.

    [Router-cwmp] cwmp cpe wait timeout 100

  4. Configure the CWMP authentication of the router.

    # Set parameters for authenticating the router.

    [Router-cwmp] cwmp acs username newacsname
    [Router-cwmp] cwmp acs password cipher
    Enter Password(<6-255>):
    Confirm password:

    # Set parameters for authenticating the ACS.

    [Router-cwmp] cwmp cpe username newcpename
    [Router-cwmp] cwmp cpe password cipher
    Enter Password(<6-255>):
    Confirm password:
    [Router-cwmp] quit

  5. Verify the configuration.

    # You can see the CWMP function status, URL of the ACS, user name and password, Inform message sending status, interval for sending Inform messages, time when an Inform message is sent, close-wait timer, and maximum number of connection attempts.

    [Router] display cwmp configuration
      CWMP is enabled
      ACS URL:                              http://10.2.1.1/acs
      ACS username:                         newacsname
      ACS password:                         %@%@u<GgDA|}*!%lp>R@.[/M"e0_%@%@
      Inform enable status:                 enabled
      Inform interval:                      1000s
      Inform time:                          - 
      Wait timeout:                         100s
      Reconnection times:                   5
    

    # You can see the CWMP function status, URL of the ACS, user name and password, method to obtain the URL of the ACS, status of the connection between the CPE and the ACS, and time when the last connection is set up.

    [Router] display cwmp status
     CWMP is enabled
     ACS URL:                              http://10.2.1.1/acs
     ACS information is set by:            user
     ACS username:                         newacsname
     ACS password:                         %@%@u<GgDA|}*!%lp>R@.[/M"e0_%@%@
     Connection status:                    connected
     Time of last successful connection:   2012-09-28 21:10:22+00:00  
    

Configuration Files

Configuration file of the router

#
 sysname Router
#
interface GigabitEthernet1/0/0
 ip address 10.1.1.1 255.255.255.0
#
ospf 1
 area 0.0.0.0
  network 10.1.1.0 0.0.0.255
#
cwmp
 cwmp enable
 cwmp cpe inform interval enable
 cwmp acs url http://10.2.1.1/acs
 cwmp acs username newacsname
 cwmp acs password cipher %@%@u<GgDA|}*!%lp>R@.[/M"e0_%@%@
 cwmp cpe username newcpename
 cwmp cpe password cipher %@%@^<d}J,qcv&zbd}H2:,wL"eTh%@%@
 cwmp cpe inform interval 1000
 cwmp cpe connect retry 5
 cwmp cpe wait timeout 100
 cwmp cpe connect interface GigabitEthernet1/0/0
#
return
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 30553

Downloads: 177

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next