show l2protocol interface counters
This command allows you to display the counters for numbers of packets peered, discarded and tunneled.
Note: In case of Provider-Bridging, tunneling will be done via slow path forwarding (via CPU).
And for other tunneling feature such as L2VPN, EVPN cases, L2protocol will follow hardware forwarding path to be tunneled.
Except Provider-Bridging feature, for other tunneling feature such as L2VPN/EVPN cases, tunnel counters will not be captured. Peering and discarding decision will be taken at CPU, hence, these counters will be captured with this show command.
Command Syntax
show l2protocol interface (IFNAME|) counters (peer|discard|tunnel|tunnel-discard|)
Parameters
peer
Display stats for Peer protocol packets.
discard
Display stats for Tunnel protocol packets.
tunnel
Display stats for Tunnel protocol packets.
tunnel-discard
Display stats for Tunnel discard protocol packets.
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 3.0.
Examples
# show l2protocol interface xe1 counters peer
Interface xe1
Peer: stp: 1
# show l2protocol interface xe1 counters
Interface xe1
Peer: stp: 1
Discard: stp: 10
Tunnel: stp: 5
Last modified date: 07/06/2023