H3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100

HomeSupportConfigure & DeployConfiguration ExamplesH3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100
Table of Contents
Related Documents
40-RMON Configuration Examples
Title Size Download
40-RMON Configuration Examples 130.52 KB

H3C Routers

RMON Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

This document provides an example for configuring RMON.

Prerequisites

The following information applies to Comware 9-based routers. Procedures and information in the examples might be slightly different depending on the software or hardware version of the MSR routers.

The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of RMON.

Example: Configuring the Ethernet statistics function

Network configuration

As shown in Figure 1, create an RMON Ethernet statistics entry on the device to gather cumulative traffic statistics for GigabitEthernet 0/0/1.

Figure 1 Network diagram

Software versions used

This configuration example was created and verified on R9141P16 of the MSR2630E-X1 device.

Procedure

# Configure the IP addresses of the router interfaces.

<Router> system-view

[Router] interface gigabitethernet 0/0/1

[Router-GigabitEthernet0/0/1] ip address 10.0.0.1 24

[Router-GigabitEthernet0/0/1] quit

[Router] interface gigabitethernet 0/0/2

[Router-GigabitEthernet0/0/2] ip address 192.168.0.1 24

# Create an RMON statistics entry for GigabitEthernet0/0/2. The index is 10 and the owner is user1.

[Router-GigabitEthernet0/0/2] rmon statistics 10 owner user1

[Router-GigabitEthernet0/0/2] quit

Verifying the configuration

# Display statistics collected for GigabitEthernet0/0/2.

[Router] display rmon statistics gigabitethernet 0/0/2

EtherStatsEntry 10 owned by user1 is VALID.

  Interface : GigabitEthernet0/0/2<ifIndex.3>

  etherStatsOctets         : 21657     , etherStatsPkts          : 307

  etherStatsBroadcastPkts  : 56        , etherStatsMulticastPkts : 34

  etherStatsUndersizePkts  : 0         , etherStatsOversizePkts  : 0

  etherStatsFragments      : 0         , etherStatsJabbers       : 0

  etherStatsCRCAlignErrors : 0         , etherStatsCollisions    : 0

  etherStatsDropEvents (insufficient resources): 0

  Incoming packets by size:

  64     : 235       ,  65-127  : 67        ,  128-255  : 4

  256-511: 1         ,  512-1023: 0         ,  1024-1518: 0

Configuration files

#

interface GigabitEthernet0/0/1

 port link-mode route

 ip address 10.0.0.1 255.255.255.0

#

interface GigabitEthernet0/0/2

 port link-mode route

 ip address 192.168.0.1 255.255.255.0

 rmon statistics 10 owner user1

#

Example: Configuring the history statistics function

Network configuration

As shown in Figure 2, create an RMON history control entry on the device to sample traffic statistics for GigabitEthernet0/0/2 every minute.

Figure 2 Network diagram

Software versions used

This configuration example was created and verified on R9141P16 of the MSR2630E-X1 device.

Procedure

# Configure the IP addresses of the router interfaces.

<Router> system-view

[Router] interface gigabitethernet 0/0/1

[Router-GigabitEthernet0/0/1] ip address 10.0.0.1 24

[Router-GigabitEthernet0/0/1] quit

[Router] interface gigabitethernet 0/0/2

[Router-GigabitEthernet0/0/2] ip address 192.168.0.1 24

# Create an RMON history control entry to sample traffic statistics every minute for GigabitEthernet0/0/2. Retain a maximum of eight samples for the interface in the history statistics table.

[Router-GigabitEthernet0/0/2] rmon history 1 buckets 8 interval 60 owner user1

[Router-GigabitEthernet0/0/2] quit

Verifying the configuration

# Display the history statistics collected for GigabitEthernet0/0/2.

[Router] display rmon history

HistoryControlEntry 1 owned by user1 is VALID

  Sampled interface     : GigabitEthernet0/0/2<ifIndex.3>

  Sampling interval     : 60(sec) with 8 buckets max

  Sampling record 1 :

    dropevents        : 0         , octets               : 834

    packets           : 8         , broadcast packets    : 1

    multicast packets : 6         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

  Sampling record 2 :

    dropevents        : 0         , octets               : 962

    packets           : 10        , broadcast packets    : 3

    multicast packets : 6         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

  Sampling record 3 :

    dropevents        : 0         , octets               : 830

    packets           : 8         , broadcast packets    : 0

    multicast packets : 6         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

  Sampling record 4 :

    dropevents        : 0         , octets               : 933

    packets           : 8         , broadcast packets    : 0

    multicast packets : 7         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

  Sampling record 5 :

    dropevents        : 0         , octets               : 898

    packets           : 9         , broadcast packets    : 2

    multicast packets : 6         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

  Sampling record 6 :

    dropevents        : 0         , octets               : 898

    packets           : 9         , broadcast packets    : 2

    multicast packets : 6         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

  Sampling record 7 :

    dropevents        : 0         , octets               : 766

    packets           : 7         , broadcast packets    : 0

    multicast packets : 6         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

  Sampling record 8 :

    dropevents        : 0         , octets               : 1154

    packets           : 13        , broadcast packets    : 1

    multicast packets : 6         , CRC alignment errors : 0

    undersize packets : 0         , oversize packets     : 0

    fragments         : 0         , jabbers              : 0

    collisions        : 0         , utilization          : 0

Configuration files

#

interface GigabitEthernet0/0/1

 port link-mode route

 ip address 10.0.0.1 255.255.255.0

#

interface GigabitEthernet0/0/2

 port link-mode route

 ip address 192.168.0.1 255.255.255.0

 rmon history 1 buckets 8 interval 60 owner user1

#

Example: Configuring the alarm function

Network configuration

As shown in Figure 3, configure the device to monitor the incoming traffic statistic on GigabitEthernet0/0/2, and send RMON alarms when either of the following conditions is met:

·     The 5-second delta sample for the traffic statistic crosses the rising threshold (10000).

·     The 5-second delta sample for the traffic statistic drops below the falling threshold (5000).

Figure 3 Network diagram

Analysis

·     For the NMS to manage and monitor the router, configure the SNMP agent on the router.

·     For the router to periodically monitor the traffic on GigabitEthernet0/0/2, first define an RMON statistics entry to collect traffic statistics.

·     For the router to send traps to the NMS when the traffic on GigabitEthernet0/0/2 is abnormal, create an alarm entry on the router, and set the alarm threshold.

Software versions used

This configuration example was created and verified on R9141P16 of the router and iMC PLAT 7.0(E0202) and iMC UAM 7.0(E0202).

Restrictions and guidelines

For correct communication between the NMS and router, make sure the following parameters are the same on them:

·     SNMP version.

·     Read community name.

·     Read and write community name.

Procedures

Configuring the router

1.     Configure the IP addresses of the router interfaces.

<Router> system-view

[Router] interface gigabitethernet 0/0/1

[Router-GigabitEthernet0/0/1] ip address 10.0.0.1 24

[Router-GigabitEthernet0/0/1] quit

[Router] interface gigabitethernet 0/0/2

[Router-GigabitEthernet0/0/2] ip address 192.168.0.1 24

[Router-GigabitEthernet0/0/2] quit

2.     Configure the SNMP agent.

# Configure the SNMP agent (the device) with the same SNMP settings as the NMS at 10.0.0.100. This example uses SNMPv1, read community public, and write community private.

[Router] snmp-agent

[Router] snmp-agent community read public

[Router] snmp-agent community write private

[Router] snmp-agent sys-info version v1

[Router] snmp-agent trap enable

[Router] snmp-agent target-host trap address udp-domain 10.0.0.100 params securityname public

# Create an RMON statistics entry for GigabitEthernet0/0/2. The index is 10 and the owner is user1.

[Router] interface gigabitethernet 0/0/2

[Router-GigabitEthernet0/0/2] rmon statistics 10 owner user1

[Router-GigabitEthernet0/0/2] quit

# Create an RMON event entry and an RMON alarm entry to send SNMP notifications when the delta sample for 1.3.6.1.4.1.25506.2.125.1.1.1 exceeds 10000 or drops below 5000.

[Router] rmon event 1 trap public owner user1

[Router] rmon alarm 1 1.3.6.1.4.1.25506.2.125.1.1.1 5 absolute rising-threshold 10000 1 falling-threshold 5000 1 owner user1

Configuring the NMS

# Add a device.

1.     Log in to IMC.

2.     Click the Resources tab.

3.     From the navigation pane, select Resource Management > Add Device.

¡     On the Add Device page, configure the following parameters:
Enter 10.0.0.1 in the Host Name/IP field.   

¡     Set the device label to Router.

¡     Select Telnet from the Login Type list.

¡     Use the default values for other parameters.

Figure 4 Adding a device

 

 

# Expand the SNMP Settings section. Click Configure.

·     Set the parameter type to SNMPv1.

·     Set the read community to public.

·     Set the write and read community to private.

·     Use the default settings for other parameters, and then click OK.

Figure 5 Configuring SNMP parameters

 

Verifying the configuration

# Display the RMON alarm entry.

[Router] display rmon alarm 1

AlarmEntry 1 owned by user1 is VALID.

  Sample type          : absolute

  Sampled variable     : 1.3.6.1.4.1.25506.2.125.1.1.1<etherStatsOctets.1>

  Sampling interval (in seconds)    : 5

  Rising threshold      : 10000(associated with event 1)

  Falling threshold     : 5000(associated with event 1)

  Alarm sent upon entry startup  : risingOrFallingAlarm

  Latest value          : 0

# Display statistics for GigabitEthernet0/0/2.

[Router] display rmon statistics gigabitethernet 0/0/2

EtherStatsEntry 10 owned by user1 is VALID.

  Interface : GigabitEthernet0/0/2<ifIndex.3>

  etherStatsOctets         : 57329     , etherStatsPkts          : 455

  etherStatsBroadcastPkts  : 53        , etherStatsMulticastPkts : 353

  etherStatsUndersizePkts  : 0         , etherStatsOversizePkts  : 0

  etherStatsFragments      : 0         , etherStatsJabbers       : 0

  etherStatsCRCAlignErrors : 0         , etherStatsCollisions    : 0

  etherStatsDropEvents (insufficient resources): 0

  Incoming packets by size :

  64     : 7         ,  65-127  : 413       ,  128-255  : 35

  256-511: 0         ,  512-1023: 0         ,  1024-1518: 0

Configuration files

#

interface GigabitEthernet0/0/1

 port link-mode route

 ip address 10.0.0.1 255.255.255.0

#

interface GigabitEthernet0/0/2

 port link-mode route

 ip address 192.168.0.1 255.255.255.0

 rmon statistics 10 owner user1

#

 snmp-agent

 snmp-agent community write private

 snmp-agent community read public

 snmp-agent sys-info version v1

 snmp-agent target-host trap address udp-domain 10.0.0.100 params securityn

ame public 

#

 rmon event 1 trap public owner user1

#

 rmon alarm 1 1.3.6.1.4.1.25506.2.125.1.1.1 5 absolute rising-threshold 10000 1

falling-threshold 5000 1 owner user1

Related documentation

·     Network Management and Monitor Configuration Guide in H3C MSR1000[2600][3600] Routers Configuration Guides (V9)

·     Network Management and Monitor Command Reference in H3C MSR1000[2600][3600] Routers Command References (V9)

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网