<Quidway> system-view
[Quidway] vlan 10
[Quidway-Vlan10] quit
[Quidway] interface gigabitethernet 2/0/0
[Quidway-GigabitEthernet2/0/0] port hybrid pvid vlan 10
[Quidway-GigabitEthernet2/0/0] port hybrid untagged vlan 10
Step 2 Configure the VLANIF interface and assign an IP address to the VLANIF interface.
[Quidway] interface vlanif 10
[Quidway-Vlanif10] ip address 10.1.1.1 24
Step 3 Configure RMON2.
# Configure the hlHostControlTable. Set the index to 123, and the maximum number of entries
in the nlHostTable to 100.
[Quidway] rmon2 hlhostcontroltable index 123 datasource interface vlanif 10
maxentry 100 owner china status active
# Configure the protocolDirTable. The protocol ID currently supported is 8.0.0.0.1.0.0.8.0; the
value of parameter currently supported is 2.0.0; the value of host is suppurtedon (that is,
collecting traffic statistics for this protocol).
[Quidway] rmon2 protocoldirtable protocoldirid 8.0.0.0.1.0.0.8.0 parameter 2.0.0
descr IP host supportedon owner china status active
Step 4 Verify the configuration.
# View information about the nlHostTable.
<Quidway> display rmon2 nlhosttable hostcontrolindex 123
Abbreviation:
HIdx - hlHostControlIndex
PIdx - ProtocolDirLocalIndex
Addr - nlHostAddress
InPkts - nlHostInPkts
OutPkts - nlHostOutPkts
InOctes - nlHostInOctets
OutOctes - nlHostOutOctets
OutMac - nlHostOutMacNonUnicastPkts
ChgTm - nlHostTimeMark
CrtTm - nlHostCreateTime
HIdx PIdx Addr InPkts OutPkts InOctes OutOctes OutMac ChgTm CrtTm
123 1 10.1.1.3 0 78 0 10046 78 81489 40859
123 1 10.1.1.4 78 0 10046 0 0 81489 40859
# View the traffic of a host with the specified IP address.
<Quidway> display rmon2 nlhosttable hostcontrolindex 123 hostaddress 10.110.99.2
Abbreviation:
HIdx - hlHostControlIndex
PIdx - ProtocolDirLocalIndex
Addr - nlHostAddress
InPkts - nlHostInPkts
OutPkts - nlHostOutPkts
InOctes - nlHostInOctets
OutOctes - nlHostOutOctets
OutMac - nlHostOutMacNonUnicastPkts
ChgTm - nlHostTimeMark
CrtTm - nlHostCreateTime
HIdx PIdx Addr InPkts OutPkts InOctes OutOctes OutMac ChgTm CrtTm
123 1 10.110.99.2 0 78 0 10046 78 81489 40859
# Set the value of the time filter to display the entries that meet the filtering condition.
<Quidway> display rmon2 nlhosttable hostcontrolindex 123 timemark 1000 hostaddress
10.1.1.1
Abbreviation:
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management 2 RMON and RMON2 Configuration
Issue 03 (2010-09-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
2-21