Sunday, July 1, 2007

QoS | Get IP Address Accounting Information

here is I will share how capture near 'real-time' about packets accross interface ini Cisco router. by enabling IP accounting, you can see the number of bytes and packets switched through the Cisco IOS® software on a source and destination IP address basis. only transit IP traffic is measured and only on an outbound basis, traffic generated by the software or terminating in the software is not included in the accounting statistics. different feature on serial interface and ethernet you can see in below. this feature accounting information just work on physical interface not work in logical interface like subinterface or interface vlan except interface controller like 'serial1/0:4'.

#interface Serial
(config-if)#ip accounting ?
access-violations Account for IP packets violating access lists on this interface
output-packets Account for IP packets output on this interface
precedence Count packets by IP precedence on this interface


#interface FastEthernet
(config-if)#ip accounting ?
access-violations Account for IP packets violating access lists on this interface
mac-address Account for MAC addresses seen on this interface
output-packets Account for IP packets output on this interface
precedence Count packets by IP precedence on this interface


interface Serial1
ip address x.x.x.x x.x.x.x
ip accounting output-packets
no fair-queue --> 'Queueing strategy: fifo'
end


sh ip accounting | [output-packets]
Source Destination Packets Bytes
172.16.1.55 172.16.0.3 6 552
172.16.1.55 172.16.0.3 2 96
172.16.1.55 172.16.0.3 4 192

Accounting data age is xdxxh
Accounting threshold exceeded for 952906 packets and 888094275 bytes


[...] optional

No comments: