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 IPv4 Flexible Flow Statistics Exporting

Example for Configuring IPv4 Flexible Flow Statistics Exporting

Networking Requirements

In Figure 12-6, departments 1 and 2 connect to the Internet through the router. The network administrator needs to monitor communication between the two departments and the Internet and know the top websites visited by the two departments.

Figure 12-6  Networking diagram of Configuring IPv4 Flexible Flow Statistics Exporting

Configuration Roadmap

You can configure flexible IPv4 flow statistics on GE1/0/0 of Router so that the Router collects statistics about incoming traffic on the interface, and sends the statistics to the NetStream server for further analysis. Then you can know the top websites visited by the two departments.

The configuration roadmap is as follows:

  1. Configure IP addresses for interfaces on the router.
  2. Configure a flexible flow statistics template.
  3. Configure NetStream flexible flow statistics exporting.
  4. Enable flexible flow statistics collection on the interface.

Procedure

  1. Configure IP addresses for interfaces on the router as shown in Figure 12-6.

    # Configure IP addresses for interfaces on the router.

    <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] interface gigabitethernet 2/0/0
    [Router-GigabitEthernet2/0/0] ip address 10.1.2.1 24
    [Router-GigabitEthernet2/0/0] quit
    [Router] interface gigabitethernet 3/0/0
    [Router-GigabitEthernet3/0/0] ip address 10.1.3.1 24
    [Router-GigabitEthernet3/0/0] quit
    [Router] interface gigabitethernet 4/0/0
    [Router-GigabitEthernet4/0/0] ip address 10.1.4.1 24
    [Router-GigabitEthernet4/0/0] quit
    

  2. Configure a flexible flow statistics template.

    # Create a flexible flow statistics template named test, configure aggregation based on the destination IP address and destination port number, configure the number of bytes and packets in the exported packets, and configure the indexes of the inbound and outbound interfaces.

    [Router] ip netstream record test
    [Router-record-test]match ipv4 destination-address
    [Router-record-test]match ipv4 destination-port
    [Router-record-test]collect interface input
    [Router-record-test]collect interface output
    [Router-record-test]collect counter bytes
    [Router-record-test]collect counter packets
    [Router-record-test]quit

  3. Configure NetStream flexible flow statistics exporting.

    # Set the source IP address of the exported packets carrying flexible flow statistics to 10.1.2.1, the destination IP address to 10.1.2.2, and destination port number to 6000.

    [Router] ip netstream export source 10.1.2.1
    [Router] ip netstream export host 10.1.2.2 6000

  4. Enable flexible flow statistics collection on the interface.

    # Enable flexible flow statistics exporting on GE1/0/0, and apply the flexible flow statistics template test to GE1/0/0.

    [Router] interface gigabitethernet 1/0/0
    [Router-GigabitEthernet1/0/0] port ip netstream record test
     Info: Interface got a record config succeed.
    [Router-GigabitEthernet1/0/0] ip netstream inbound
    [Router-GigabitEthernet1/0/0] ip netstream outbound
    [Router-GigabitEthernet1/0/0] quit

  5. Verify the configuration.

    # Run the display ip netstream statistic command to check the configurations.

    [Router] display ip netstream statistic
     Origin ingress entries           : 0
     Origin ingress packets           : 0
     Origin ingress octets            : 0
     Origin egress entries            : 0
     Origin egress packets            : 0
     Origin egress octets             : 0
     Origin total entries             : 0
     Agility ingress entries          : 2
     Agility ingress packets          : 2
     Agility ingress octets           : 430
     Agility egress entries           : 2
     Agility egress packets           : 2
     Agility egress octets            : 161
     Agility total entries            : 4
     Handle origin entries            : 0
     Handle agility entries           : 2
     Handle As aggre entries          : 0
     Handle ProtPort aggre entries    : 0
     Handle SrcPrefix aggre entries   : 0
     Handle DstPrefix aggre entries   : 0
     Handle Prefix aggre entries      : 0
     Handle AsTos aggre entries       : 0
     Handle ProtPortTos aggre entries : 0
     Handle SrcPreTos aggre entries   : 0
     Handle DstPreTos aggre entries   : 0
     Handle PreTos aggre entries      : 0     

Configuration Files

Router configuration file

#
 sysname Router
#
 ip netstream export source 10.1.2.1
 ip netstream export host 10.1.2.2 6000
 ip netstream export version 9
 ip netstream record test
#
ip netstream record test
 match ipv4 destination-address
 match ipv4 destination-port
 collect counter packets
 collect counter bytes
 collect interface input
 collect interface output
#
interface GigabitEthernet1/0/0
 ip address 10.1.1.1 255.255.255.0
 port ip netstream record test
 ip netstream inbound
 ip netstream outbound
#
interface GigabitEthernet2/0/0
 ip address 10.1.2.1 255.255.255.0
#
interface GigabitEthernet3/0/0
 ip address 10.1.3.1 255.255.255.0
#
interface GigabitEthernet4/0/0
 ip address 10.1.4.1 255.255.255.0
#
return
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 29457

Downloads: 168

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