How to enable traffic statistics on subinterface.

Created: Sep 19, 2017 20:56:57Latest reply: Oct 12, 2018 09:50:32 3579 15 0 0
  Rewarded Hi-coins: 0 (problem resolved)
Is it possible to get traffic statistics from an subinterface on 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


  • x
  • convention:

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

you can configure the traffic policy with a behavior of statistic.

[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:

gululu     Created Sep 20, 2017 08:51:41 Helpful(0) Helpful(0)

please wait
  • x
  • convention:

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

statistics enable
  • x
  • convention:

New_Commer--->切换到此号
AGregory     Created Sep 23, 2017 13: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     Created Oct 18, 2017 04:56:08 Helpful(0) Helpful(0)

Posted by user_2856063 at 2017-09-23 13: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     Created Oct 19, 2017 20:35:41 Helpful(0) Helpful(0)

Posted by user_2844477 at 2017-10-18 04: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     Created Dec 30, 2017 02:52:08 Helpful(0) Helpful(0)

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

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

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

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

Posted by debugger at 2018-01-02 16: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: 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!
Fast reply Scroll to top