- Table of Contents
-
- H3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100
- 00-Preface
- 01-Local 802.1X Authentication Configuration Examples
- 02-RADIUS-Based 802.1X Authentication Configuration Examples
- 03-AAA Configuration Examples
- 04-ACL Configuration Examples
- 05-MPLS over ADVPN Configuration Examples
- 06-ARP Attack Protection Configuration Examples
- 07-BFD Configuration Examples
- 08-Basic BGP Configuration Examples
- 09-BGP Route Attribute-Based Route Selection Configuration Examples
- 10-EAA Monitor Policy Configuration Examples
- 11-GRE with OSPF Configuration Examples
- 12-HoVPN Configuration Examples
- 13-IGMP Snooping Configuration Examples
- 14-IGMP Configuration Examples
- 15-IPsec Configuration Examples
- 16-IPsec Digital Certificate Authentication Configuration Examples
- 17-IPv6 IS-IS Configuration Examples
- 18-IPv6 over IPv4 GRE Tunnel Configuration Examples
- 19-IPv6 over IPv4 Manual Tunnel with OSPFv3 Configuration Examples
- 20-IS-IS Configuration Examples
- 21-Combined ISATAP Tunnel and 6to4 Tunnel Configuration Examples
- 22-L2TP over IPsec Configuration Examples
- 23-Multi-Instance L2TP Configuration Examples
- 24-L2TP Multidomain Access Configuration Examples
- 25-MPLS L3VPN Configuration Examples
- 26-MPLS OAM Configuration Examples
- 27-MPLS TE Configuration Examples
- 28-Basic MPLS Configuration Examples
- 29-NAT DNS Mapping Configuration Examples
- 30-NetStream Configuration Examples
- 31-NQA Configuration Examples
- 32-NTP Configuration Examples
- 33-OSPFv3 Configuration Examples
- 34-OSPF Configuration Examples
- 35-OSPF Multi-Process Configuration Examples
- 36-OSPF Multi-Instance Configuration Examples
- 37-Portal Configuration Examples
- 38-PPP Configuration Examples
- 39-RBAC Configuration Examples
- 40-RMON Configuration Examples
- 41-IPv4 NetStream Sampling Configuration Examples
- 42-SNMP Configuration Examples
- 43-SRv6 Configuration Examples
- 44-SSH Configuration Examples
- 45-Tcl Commands Configuration Examples
- 46-VLAN Configuration Examples
- 47-VRRP Configuration Examples
- 48-VXLAN over IPsec Configuration Examples
- 49-WLAN AC Configuration Examples
- 50-Small and Medium-Sized Store Configuration Examples
- 51-Cloudnet VPN Configuration Examples
- 52-Ethernet Link Aggregation Configuration Examples
- 53-Ethernet OAM Configuration Examples
- 54-Outbound Bidirectional NAT Configuration Examples
- 55-NAT Hairpin in C-S Mode Configuration Examples
- 56-Load Sharing NAT Server Configuration Examples
- 57-BIDIR-PIM Configuration Examples
- 58-Control Plane-Based QoS Policy Configuration Examples
- 59-Scheduling a Task Configuration Examples
- 60-Client-Initiated L2TP Tunnel Configuration Examples
- 61-LAC-Auto-Initiated L2TP Tunnel Configuration Examples
- 62-Authorized ARP Configuration Examples
- 63-GTS Configuration Examples
- 64-Traffic Policing Configuration Examples
- 65-Traffic Accounting Configuration Examples
- 66-Mobile Communication Modem Management Configuration Examples
- 67-Port Isolation Configuration Examples
- 68-PBR Configuration Examples
- 69-TFTP Client Software Upgrade Configuration Examples
- 70-FTP Client Software Upgrade Configuration Examples
- 71-FTP Server Software Upgrade Configuration Examples
- 72-Routing Policy Configuration Examples
- 73-Software Upgrade from the BootWare Menu Configuration Examples
- 74-Mirroring Configuration Examples
- Related Documents
-
Title | Size | Download |
---|---|---|
40-RMON Configuration Examples | 130.52 KB |
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.
Contents
Example: Configuring the Ethernet statistics function
Example: Configuring the history statistics function
Example: Configuring the alarm function
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.
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.
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).
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 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.
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.
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)