10-13-2007 11:49 PM - edited 03-05-2019 07:04 PM
Hi,
I have configured a dual ethernet Cisco router to go inline between a WAN CPE and a LAN so that I can capture some WAN usage statistics. I have no access to the CPE and need the device to be transparent and just "drop in" to the existing infrastructure. This is working well with the following configuration;
*****
bridge irb
interface Ethernet0
no ip address
bridge-group 1
exit
interface Ethernet1
no ip address
bridge-group 1
exit
interface BVI1
ip address 10.x.x.x 255.255.255.0
exit
bridge 1 protocol ieee
bridge 1 route ip
*****
Now I want to enable IP accounting so I add the following line;
*****
ip accounting output-packets
*****
to either of the physical interfaces no statistics are generated. If I apply it to the BVI interface I only capture broadcast traffic.
I have done some investigation but cannot find any in-depth information to determine if what I want to do is possible and if so what I am missing. Any help would be greatly appreciated.
Thanks,
Stephen
10-14-2007 07:16 AM
IP Accounting will only work on interfaces where you have an IP address. Your physical interfaces are missing that information.
As your BVI interface, the only way to see accounting is if your clients are using that interface as a gateway to a next hop resource. Since your router is bridging, I don't think that's the case.
10-15-2007 04:38 AM
Hmm - that makes sense I guess - thanks for the insight.
I tried with NetFlow instead, but seem to be having the same issue. I thought as NetFlow works on switches it would not be subject to the same restrictions, however I can only gather statistics when adding "ip route-cache flow" to the BVI interface, leaving me in the same position.
Is this not working for the same reason?
10-15-2007 03:50 PM
You are right, NetFlow works in switches. However, it can only capture data as it enters and exits the SVI. Your BVI is only used for management access and the clients aren't using it as gateway to a next-hop destination.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: