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 RMON2

Example for Configuring RMON2

Networking Requirements

As shown in Figure 2-2, a subnet is connected to the network through GE2/0/0 on the router. IP packet statistics function needs to be configured on GE2/0/0 of the router.

Figure 2-2  RMON2 network

Configuration Roadmap

RMON2 can collect statistics on IP packets on interfaces. You can run RMON2 to remotely monitor traffic on networks using an SNMP NMS or command line. This example describes the command line way.

The configuration roadmap is as follows:

  1. Configure IP addresses for router interfaces.
  2. Configure the host control table and protocol directory table.

Procedure

  1. Configure IP addresses for router interfaces.

    <Huawei> system-view
    [Huawei] sysname Router
    [Router] interface gigabitethernet 2/0/0
    [Router-GigabitEthernet2/0/0] ip address 10.3.3.3 24
    [Router-GigabitEthernet2/0/0] quit

  2. Configure RMON2 traffic statistics function.

    # Configure the host control table. Set the index to 123 and maximum number of entries in the table to 100.

    [Router] rmon2 hlhostcontroltable index 123 datasource interface gigabitethernet 2/0/0 maxentry 100 owner china status active

    # Configure the protocol directory table. The protocol ID is fixed at 8.0.0.0.1.0.0.8.0, parameter is fixed at 2.0.0, and host value is fixed at suppurtedon (collecting statistics on these protocol packets).

    [Router] rmon2 protocoldirtable protocoldirid 8.0.0.0.1.0.0.8.0 parameter 2.0.0 descr IP host supportedon owner china status active

  3. Verify the configuration.

    # View traffic on a host by specifying the host IP address.

    <Router> display rmon2 nlhosttable hostcontrolindex 123 hostaddress 10.3.3.10
    Abbreviation:
    HIdx - hlHostControlIndex
    Addr - nlHostAddress
    InPkts - nlHostInPkts
    OutPkts - nlHostOutPkts
    InOctes - nlHostInOctets
    OutOctes - nlHostOutOctets
    OutMac - nlHostOutMacNonUnicastPkts
    HIdx  Addr         InPkts   OutPkts  InOctes   OutOctes  OutMac
    123   10.3.3.10     0        78       0         1046     78
    

    # View information about the host control table. You can see the number of added entries, deleted entries, and total entries on the interface.

    <Router> display rmon2 hlhostcontroltable
    Abbreviation:
    index - hlhostcontrolindex
    datasource - hlhostcontroldatasource
    droppedfrm - hlhostcontrolnldroppedframes
    inserts - hlhostcontrolnlinserts
    Deletes - hlHostControlNlDeletes
    maxentries - hlhostcontrolnlmaxdesiredentries
    status - hlhostcontrolstatus
    index datasource   droppedfrm inserts   Deletes    maxentries   status
    123   GE2/0/0      0          19        0          100          active

Configuration Files

Configuration file of the router

#
sysname Router
#
interface GigabitEthernet2/0/0
 ip address 10.3.3.3 255.255.255.0
#
 rmon2 protocoldirtable protocoldirid 8.0.0.0.1.0.0.8.0 parameter 2.0.0 descr IP host supportedon owner china status active
 rmon2 hlhostcontroltable index 123 datasource interface GigabitEthernet2/0/0 maxentry 100 owner china status active
#
return
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 29447

Downloads: 168

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