Got it

Traffic Passing

Created: Jan 19, 2019 19:46:52Latest reply: Jan 21, 2019 05:11:50 532 4 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi


How can i monitor how much traffic is passing for this ip pool ( 103.22.32.0/24 ) on wan interface


Thanks

  • x
  • convention:

Featured Answers
Mohamed_Mostafa
HCIE Created Jan 20, 2019 21:00:05

This post was last edited by Mohamed_Mostafa at 2019-01-20 15:14. Example:
Configure an ACL.# modify it as per your desire 
[HUAWEI] acl 3001
HUAWEI-acl-adv-3001] rule permit ip destination 103.22.32.0 0.0.0.255 

Configure a traffic classifier.
# Create a traffic classifier c1 on the Switch and reference ACL 4000 in the traffic classifier.

[Switch] traffic classifier c1 operator and
[Switch-classifier-c1] if-match acl 3001
[Switch-classifier-c1] quit

Configure a traffic behavior.
# Create a traffic behavior b1 on the Switch and configure the traffic statistics action in the traffic behavior.
[Switch] traffic behavior b1
[Switch-behavior-b1] statistic enable
[Switch-behavior-b1] quit
Configure a traffic policy and apply the traffic policy to an interface.
# Create a traffic policy p1 on the Switch and bind the traffic classifier and traffic behavior to the traffic policy.

[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1 behavior b1
[Switch-trafficpolicy-p1] quit
# Apply the traffic policy p1 to GE0/0/1 ( or the wan interface )

[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] traffic-policy p1 inbound
[Switch-GigabitEthernet0/0/1] quit

To check the statistics :

[Switch] display traffic policy statistics interface gigabitethernet 0/0/1 inbound
                                                                                
 Interface: GigabitEthernet0/0/1                                                       
 Traffic policy inbound: p1                                                     
 Rule number: 1                                                                 
 Current status: success                                                            
 Statistics interval: 300                         
---------------------------------------------------------------------           
 Board : 0                           
---------------------------------------------------------------------       
 Matched          |      Packets:                             0                 
                  |      Bytes:                               0                 
                  |      Rate(pps):                           0                 
                  |      Rate(bps):                           0                 
---------------------------------------------------------------------           
   Passed         |      Packets:                             0                 
                  |      Bytes:                               0                 
                  |      Rate(pps):                           0                 
                  |      Rate(bps):                           0                 
---------------------------------------------------------------------           
   Dropped        |      Packets:                             0                 
                  |      Bytes:                               0                 
                  |      Rate(pps):                           0                 
                  |      Rate(bps):                           0                 
---------------------------------------------------------------------           
     Filter       |      Packets:                             0                 
                  |      Bytes:                               0                 
---------------------------------------------------------------------           
     Car          |      Packets:                             0                 
                  |      Bytes:                               0                 
---------------------------------------------------------------------

View more
  • x
  • convention:

All Answers
chenhui
chenhui Admin Created Jan 20, 2019 05:53:36

@Skynet_india hi, you can use traffic classifier to match the ip address (103.22.32.0/24), then identify the total sum of the traffic flow by traffic behavior, and apply the traffic policy under the wan interface view.
View more
  • x
  • convention:

Skynet_india
Skynet_india Created Jan 20, 2019 10:10:00

Posted by cWX611640 at 2019-01-20 05:53 @Skynet_india hi, you can use traffic classifier to match the ip address (103.22.32.0/24), then iden ...
Hi

Could you please share the command of traffic classifier and how to match with ip address .
View more
  • x
  • convention:

Mohamed_Mostafa
Mohamed_Mostafa HCIE Created Jan 20, 2019 21:00:05

This post was last edited by Mohamed_Mostafa at 2019-01-20 15:14. Example:
Configure an ACL.# modify it as per your desire 
[HUAWEI] acl 3001
HUAWEI-acl-adv-3001] rule permit ip destination 103.22.32.0 0.0.0.255 

Configure a traffic classifier.
# Create a traffic classifier c1 on the Switch and reference ACL 4000 in the traffic classifier.

[Switch] traffic classifier c1 operator and
[Switch-classifier-c1] if-match acl 3001
[Switch-classifier-c1] quit

Configure a traffic behavior.
# Create a traffic behavior b1 on the Switch and configure the traffic statistics action in the traffic behavior.
[Switch] traffic behavior b1
[Switch-behavior-b1] statistic enable
[Switch-behavior-b1] quit
Configure a traffic policy and apply the traffic policy to an interface.
# Create a traffic policy p1 on the Switch and bind the traffic classifier and traffic behavior to the traffic policy.

[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1 behavior b1
[Switch-trafficpolicy-p1] quit
# Apply the traffic policy p1 to GE0/0/1 ( or the wan interface )

[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] traffic-policy p1 inbound
[Switch-GigabitEthernet0/0/1] quit

To check the statistics :

[Switch] display traffic policy statistics interface gigabitethernet 0/0/1 inbound
                                                                                
 Interface: GigabitEthernet0/0/1                                                       
 Traffic policy inbound: p1                                                     
 Rule number: 1                                                                 
 Current status: success                                                            
 Statistics interval: 300                         
---------------------------------------------------------------------           
 Board : 0                           
---------------------------------------------------------------------       
 Matched          |      Packets:                             0                 
                  |      Bytes:                               0                 
                  |      Rate(pps):                           0                 
                  |      Rate(bps):                           0                 
---------------------------------------------------------------------           
   Passed         |      Packets:                             0                 
                  |      Bytes:                               0                 
                  |      Rate(pps):                           0                 
                  |      Rate(bps):                           0                 
---------------------------------------------------------------------           
   Dropped        |      Packets:                             0                 
                  |      Bytes:                               0                 
                  |      Rate(pps):                           0                 
                  |      Rate(bps):                           0                 
---------------------------------------------------------------------           
     Filter       |      Packets:                             0                 
                  |      Bytes:                               0                 
---------------------------------------------------------------------           
     Car          |      Packets:                             0                 
                  |      Bytes:                               0                 
---------------------------------------------------------------------

View more
  • x
  • convention:

Skynet_india
Skynet_india Created Jan 21, 2019 05:11:50

Hi team,

Here is the output, how to convert pps to mbps .

Interface: Vlanif1001
Traffic policy inbound: 3334
Rule number: 1
Current status: success
Statistics interval: 300
---------------------------------------------------------------------
Classifier: 3334 operator and
Behavior: 3334
Board : 0
rule 5 permit ip source 157.240.170.0 0.0.0.255 (match-counter 0)
---------------------------------------------------------------------
Passed | Packets: 843,336,856
| Bytes: 1,188,890,757,595
| Rate(pps): 39,334
| Rate(bps): 443,877,664
---------------------------------------------------------------------
Dropped | Packets: 0
| Bytes: 0
| Rate(pps): 0
| Rate(bps): 0
---------------------------------------------------------------------
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.