Posted on December 15, 2021 3:49 am
 |  Asked by Andrea Vivaldi
 |  80 views
0
0
Print Friendly, PDF & Email

Hi all,

I was wondering if there is any way to see traffic counters, on each interface, grouped by VLAN.

For example: interface Ethernet1 has xxxxxx octects (or packets) in ingress (or egress) per VLAN2417, and yyyyy octets (or packets) in ingress (or egress) per VLAN2451… and so on…

Is that possible? And is that compatible with ocprometheus or gNMI?

Thanks,

Andrea

0
Posted by Kenneth Finnegan
Answered on December 15, 2021 6:49 am

Howdy Andrea, that would require a ton of hardware counter resources (vlans * front panel ports) so that feature isn't supported by default. Depending on the platform, you might be able to configure VLANs as L2 subinterfaces on a front panel port and then enable L2 subinterface counters: https://eos.arista.com/eos-4-25-2f/l2-sub-interfaces/#Interface_Counters

0
Answered on December 15, 2021 11:52 am

Hi Andrea,

Thanks for reaching out.

Could you please mention the Platform model and EOS version running on the device (show version)?

Because on a few device models and on old EOS versions this feature might not be available.

Could you please confirm if your requirement is as below i.e output should be shown something like below:

For example let's say et1 is part of 2 VLANs (10,20) then we need to get the counters for that interface(ingress, egress) which is part of both VLANs as below:

et1(vlan10) -->in octects -->450  or et1(vlan10) -->out octects -->250
et1(vlan20)-->out octects-->500 or  et1(vlan20) -->in octects -->450

 

Just FYI, for VLAN SVI Interfaces(L3) you can configure the below hardware counter features and can check the counter rates.
Sample config:

Arista(config)#hardware counter feature vlan-interface in

Arista(config)#hardware counter feature vlan-interface out

Sample Output:

Arista(config)#show interfaces vlan 500 counters rates

Port      Name         Intvl       In Mbps     Out Mbps

Vl500                       5:00.           4.0                 0.3

 

You can refer to the below TOI for more info regarding the same:

https://eos.arista.com/eos-4-17-0f/l3-interface-counters/

 

Thanks,

Bhavana.

0
Posted by Andrea Vivaldi
Answered on December 22, 2021 2:42 pm

Hi all,

thanks for answering me.

 

In respond to Bhavana, yes I totally confirm the example you provided (et1 is part of 2 VLANs (10,20)...) and that output will be perfect. Is that possible?

Sadly I can't provide right now model and version of EOS. Let me know which model and versions could have this desired output.

Thanks

BR

Andrea

Post your Answer

You must be logged in to post an answer.