[c-nsp] bgp traffic index

almog ohayon almog.purepeak at gmail.com
Mon Jul 21 05:04:54 EDT 2008


hi,
i've configured BGP accounting policy exactly as written in the Cisco
documentation and it's not working.
this is an example from testing environment - i've 1 router in AS100 which
is connected in F0/0 to 2 routers : AS200 + AS300.

this is the configuration:
---------------------------------------------------------------
router bgp 100
 neighbor 1.1.1.2 remote-as 200
 neighbor 1.1.1.3 remote-as 300
 table-map INDEX
!
ip as-path access-list 2 permit _200_
ip as-path access-list 3 permit _300_
!
route-map INDEX permit 10
match as-path 2
set traffic-index 2
!
route-map INDEX permit 20
 match as-path 3
 set traffic-index 3
!
route-map INDEX permit 30
 set traffic-index 4
!
interface f0/0
 ip address 1.1.1.1 255.255.255.0
 bgp-policy accounting
------------------------------------------------------------------
the problem is when i enter the command : show cef interface
policy-statistics i get 0 in the entire rows :

*Router_1# show cef interface policy-statistics
:
F0/0 is up (if_number 1)
Bucket    Packets               Bytes

1          0                      0
2          0                      0
3          0                      0
4          0                      0
5          0                      0
6          0                      0
7          0                      0
8          0                      0
*


More information about the cisco-nsp mailing list