cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
43840
Views
25
Helpful
9
Replies

How to check traffic on sub-interface

imran.aziz
Level 1
Level 1

Can anybody tell me, how can i check the traffic in and out of the subinterface.

as show interface command only shows only traffic on the main interface not on the sub-interface.

Thanks in Advance

9 Replies 9

Harold Ritter
Spotlight
Spotlight

You could poll the interface statistics via SNMP as each subinterface is represented as a different interface and has its own set of ifInOctets, ofOutOctets, etc.

Hope this helps,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

yes , you right that snmp polling is a way to know the traffic on a sub-interface but my intrest is in knowing how can I check traffic on router ?

any suggesstions ?

The information you can get depends on which

type of interface your create the subinterfaces,

and what kind of statistics you are interested in.

There is no way that I know of to see the rate of traffic

in an individual subinterface of any type from inside the router.

For FR or ATM subinterfaces I find useful the statistics

provided from the WAN switch side.

WAN switch per-VC statistics are useful

not only because you can see how the rate of the VC goes in real-time,

but also because they are more accurate than the router SNMP counters.

Especially if you have ATM subinterfaces, the only way to get

the real cell/sec rate of the VC is via the WAN switch,

because most routers only include the AAL5 overhead

and that can be very misleading.

For Ethernet type subinterfaces in various VLANs under one main interface,

I don't know a way to get rate-per-VLAN information from inside the router

or LAN switch.

M.

#sh ip int GigabitEthernet2/0/0.3 stats

GigabitEthernet2/0/0.3

  5 minutes input rate 0 bits/sec, 0 packet/sec,

  5 minutes output rate 0 bits/sec, 0 packet/sec,

  0 packets input, 0 bytes,

  0 packets output, 0 bytes.

as an example, this command should be helpfull

IOS-XR has different command to show the traffic rate on physical sub-interface, please help me out.

i had tried many times .

singhaam007
Level 3
Level 3

hello,

you can use this command

show interface ethernet slot/port

it will Displays the  interface configuration, status,

and counters (including the 5-minute exponentially

decayed moving average of inbound and outbound

packet and byte rates).

like

host1:vr2#show interfaces fastEthernet 0/0.1
FastEthernet0/0.1 is Up, Administrative status is Up
  SVLAN ID: 1, VLAN ID: 0, Ethertype 0x9100
  In: Bytes 39256, Packets 612
   Multicast 0, Broadcast 0
   Errors 0, Discards 0
  Out: Bytes 4536220, Packets 70873
   Multicast 0, Broadcast 70258
   Errors 0, Discards 0
ARP Statistics:
  In: ARP requests 0, ARP responses 0
   Errors 0, Discards 0
  Out: ARP requests 0, ARP responses 0
   Errors 0, Discards 0

hope this will help.

thanks

Tagir Temirgaliyev
Spotlight
Spotlight

sh vlans

 

The answer depends on the exact platform you use.

For example in a cisco IOS-XE ASR1000 and 15.1(2)S2 if you use a layer3 subinterfaces configuration (but with port-channel too) and a SPA tengiga module seems to be nothing about subinterface statistics.

 

ASR1002_itesys1#show int tenGigabitEthernet 0/3/0.1
TenGigabitEthernet0/3/0.1 is up, line protocol is up
Hardware is SPA-1X10GE-L-V2, address is 2c54.2da2.4f30 (bia 2c54.2da2.4f30)
Internet address is 192.168.52.247/23
MTU 1500 bytes, BW 10000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 1.
ARP type: ARPA, ARP Timeout 04:00:00
Keepalive not supported

Realtime and statistics are not available for subinterfaces. You can see below the message: "NOTE: No separate counters are maintained for subinterfaces Hence Details of subinterface are not shown"

ASR1002_B_itesys#show interfaces tenGigabitEthernet 0/3/0 summary
*: interface is up
IHQ: pkts in input hold queue IQD: pkts dropped from input queue
OHQ: pkts in output hold queue OQD: pkts dropped from output queue
RXBS: rx rate (bits/sec) RXPS: rx rate (pkts/sec)
TXBS: tx rate (bits/sec) TXPS: tx rate (pkts/sec)
TRTL: throttle count

Interface IHQ IQD OHQ OQD RXBS RXPS TXBS TXPS TRTL
-----------------------------------------------------------------------------------------------------------------
* Te0/3/0 0 0 0 0 24003000 2361 4000 5 0
* Te0/3/0.1 - - - - - - - - -
* Te0/3/0.2 - - - - - - - - -
* Te0/3/0.3 - - - - - - - - -
* Te0/3/0.4 - - - - - - - - -
NOTE:No separate counters are maintained for subinterfaces
Hence Details of subinterface are not shown

 

 Gianrico Fichera

Joseph W. Doherty
Hall of Fame
Hall of Fame

Assuming a device does support sub-interface stats, I would double check those stats really differ from other sub-interfaces for the same main interface.  Reason I mention this, I recall certain switches, when that had some line cards sharing an ASIC, each port stats were the same as all the other ports on the same ASIC and represented the sum of the traffic through the ASIC.