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, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

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 Aggregation Flow Statistics Exporting

Example for Configuring IPv4 Aggregation Flow Statistics Exporting

Networking Requirements

In Figure 12-5, departments 1 and 2 connect to the Internet through the router. The network administrator needs to obtain key information from the communication packets between the two departments and the Internet to know communication status and traffic information.

Figure 12-5  Networking diagram of Configuring IPv4 Aggregation Flow Statistics Exporting

Configuration Roadmap

You can configure aggregation flow statistics exporting on GE1/0/0 of the router so that the router collects statistics about incoming traffic on GE1/0/0 and exports the flow statistics to the NetStream server for further analysis. Then you can know communication status and traffic information.

The configuration roadmap is as follows:

  1. Configure IP addresses for interfaces on the router.
  2. Configure NetStream aggregation flow statistics exporting.
  3. Configure the version for exported packets.
  4. Enable flow statistics collection on the interface.

Procedure

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

    # Configure IP addresses for interfaces on 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 NetStream aggregation flow statistics exporting.

    # Configure protocol-port aggregation, and set the source IP address of the exported packets to 10.1.2.1, the destination IP address to 10.1.2.2, and the destination port number to 6000.

    [Router] ip netstream aggregation protocol-port
    [Router-aggregation-protport]ip netstream export source 10.1.2.1
    [Router-aggregation-protport]ip netstream export host 10.1.2.2 6000
    [Router-aggregation-protport]enable
    

  3. Configure the version for exported packets.

    # Set the version of the exported packets carrying aggregation flow statistics to V9.

    [Router-aggregation-protport] export version 9
    [Router-aggregation-protport] quit

  4. Enable flow statistics collection on the interface.

    # Enable flow statistics collection on GE1/0/0.

    [Router] interface gigabitethernet 1/0/0
    [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           : 4
     Origin ingress packets           : 4
     Origin ingress octets            : 184
     Origin egress entries            : 4
     Origin egress packets            : 4
     Origin egress octets             : 304
     Origin total entries             : 8
     Agility ingress entries          : 0
     Agility ingress packets          : 0
     Agility ingress octets           : 0
     Agility egress entries           : 0   
     Agility egress packets           : 0
     Agility egress octets            : 0
     Agility total entries            : 0
     Handle origin entries            : 8
     Handle agility entries           : 0
     Handle As aggre entries          : 0
     Handle ProtPort aggre entries    : 8
     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
#
interface GigabitEthernet1/0/0
 ip address 10.1.1.1 255.255.255.0
 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
#
ip netstream aggregation protocol-port
 enable
 export version 9
 ip netstream export source 10.1.2.1
 ip netstream export host 10.1.2.2 6000
#
return
  
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174072

Views: 100699

Downloads: 332

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