How to enable traffic statistics on the subinterface?

Created: Sep 19, 2017 12:56:57Latest reply: Oct 12, 2018 01:50:32 4128 15 0 0
  Rewarded Hi-coins: 0 (problem resolved)

This post enquires whether it is possible to enable traffic statistics on the subinterface of S6720 switches.


Sample:


interface 40GE0/0/1
training enable
undo portswitch
#
interface 40GE0/0/1.3
description sub
dot1q termination vid 3
ip binding vpn-instance metro
ip address x.x.x.x x.x.x.x
arp broadcast enable
#


Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.170 (S6720 V200R010C00SPC600)
Copyright (C) 2000-2016 HUAWEI TECH CO., LTD
HUAWEI S6720-54C-EI-48S-DC Routing Switch uptime is 0 week, 5 days, 8 hours, 54 minutes

Pleaase provide some information.

Thanks!

  • x
  • convention:

Featured Answers
debugger
Created Jan 2, 2018 08:08:37 Helpful(0) Helpful(0)

Hi friend!

You can configure the traffic policy with a behavior of statistics.

Please see below:

[Switch] acl 4000
[Switch-acl-L2-4000] rule permit xx

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

[Switch] traffic behavior b1
[Switch-behavior-b1] statistic enable
[Switch-behavior-b1] quit

[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1 behavior b1

[Switch] interface gigabitethernet 0/0/1.x
[Switch-GigabitEthernet0/0/1] traffic-policy p1 inbound
[Switch-GigabitEthernet0/0/1] quit
  • x
  • convention:

All Answers
gululu
gululu Admin Created Sep 20, 2017 00:51:41 Helpful(0) Helpful(0)

please wait
  • x
  • convention:

Come on!
mangix
mangix Created Sep 21, 2017 06:00:43 Helpful(0) Helpful(0)

statistics enable
  • x
  • convention:

New_Commer--->切换到此号
AGregory
AGregory MVE Created Sep 23, 2017 05:24:50 Helpful(0) Helpful(0)

[sw.axs.mrh.03-40GE0/0/2.51]ipv4 statistic enable both
Error: This port does not support this command.
  • x
  • convention:

user_2844477
user_2844477 Created Oct 17, 2017 20:56:08 Helpful(0) Helpful(0)

Posted by user_2856063 at 2017-09-23 05:24 [sw.axs.mrh.03-40GE0/0/2.51]ipv4 statistic enable both Error: This port does not support this ...
Have you tried applying this command on the master interface and see if it collects statistics on subinterfaces? like this...

interface XGigabitEthernet0/0/7
undo portswitch
ipv4 statistic enable both
ipv6 statistic enable both

interface XGigabitEthernet0/0/7.10
dot1q termination vid 10
  • x
  • convention:

AGregory
AGregory MVE Created Oct 19, 2017 12:35:41 Helpful(0) Helpful(0)

Posted by user_2844477 at 2017-10-17 20:56 Have you tried applying this command on the master interface and see if it collects statistics on ...
It's enabled on main interface, no stats on subs.
  • x
  • convention:

AGregory
AGregory MVE Created Dec 29, 2017 18:52:08 Helpful(0) Helpful(0)

@gululu Any news about this issue ?
  • x
  • convention:

user_2844477
user_2844477 Created Dec 30, 2017 10:04:27 Helpful(0) Helpful(0)

I'm also interested in this case. I would appreciate help.
  • x
  • convention:

debugger
debugger Created Jan 2, 2018 08:08:37 Helpful(0) Helpful(0)

Hi friend!

You can configure the traffic policy with a behavior of statistics.

Please see below:

[Switch] acl 4000
[Switch-acl-L2-4000] rule permit xx

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

[Switch] traffic behavior b1
[Switch-behavior-b1] statistic enable
[Switch-behavior-b1] quit

[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1 behavior b1

[Switch] interface gigabitethernet 0/0/1.x
[Switch-GigabitEthernet0/0/1] traffic-policy p1 inbound
[Switch-GigabitEthernet0/0/1] quit
  • x
  • convention:

user_2844477
user_2844477 Created Jan 18, 2018 01:29:21 Helpful(0) Helpful(0)

Posted by debugger at 2018-01-02 08:08 you can configure the traffic policy with a behavior of statistic.[Switch] acl 4000[Switch-acl-L2-4 ...
Hi.

The problem using this approach is that you are not able to get information about traffic statistics using SNMP, right?
  • x
  • convention:

12
Back to list

Reply

Reply
You need to log in to reply to the post Login | Register

Notice 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 " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login