BGP Policy accounting not working

From: Adhu Ajit (adhu_ajit@yahoo.com)
Date: Thu Nov 09 2006 - 01:09:15 ART


Folks, I cant see to get BGP policy accounting to work and I cant seem to spot the error in my config. ANy help will be much appreciated.
   
  Backbone router BB2 is feeding a route 80.1.1.0 into R2 with a community attribute of 254:80. The eBGP peering session is established through the ethernet0/0 connection on both the routers. BGP PA is turned ON on the R2 ethernet 0/0 interface. After all is configured, I do a ping from the 80.1.1.0 network to 97.1.1.1 loopback interface on R2 which BB2 comes to know through BGP. At the end of my ping test, I do not see the BGP PA counters increasing. Can anyone spot any errors in my config ?
   
  R2#
  R2#
  R2#show run
  Building configuration...
  Current configuration : 2859 bytes
  !
  interface Ethernet0/0
  ip address 178.9.9.2 255.255.255.0
  bgp-policy accounting
  !
  router bgp 1
  no synchronization
  table-map match-254
  bgp log-neighbor-changes
  bgp inject-map my-inject-list exist-map my-exist-map
  neighbor 120.100.123.3 remote-as 3
  neighbor 178.9.9.22 remote-as 254
  no auto-summary
  !
  ip community-list 1 permit 16646224
  !
  route-map match-254 permit 10
  match community 1
  set traffic-index 1
  !
  end
  R2#
   
  R2#show ip bgp 80.1.1.0/24
  BGP routing table entry for 80.1.1.0/24, version 23
  Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Advertised to non peer-group peers:
  120.100.123.3
  254 20 40
  178.9.9.22 from 178.9.9.22 (85.1.1.1)
  Origin IGP, metric 0, localpref 100, valid, external, best
  Community: 16646224
  R2#
   
  R2#show cef interface ethernet 0/0 policy-statistics
  Ethernet0/0 is up (if_number 2)
  Corresponding hwidb fast_if_number 2
  Corresponding hwidb firstsw->if_number 2
  BGP based Policy accounting is enabled
  Index 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
  R2#
   
   
  BB2#show run
  Building configuration...
  Current configuration : 1255 bytes
  !
  interface Loopback100
  ip address 80.1.1.1 255.255.255.0
  !
  interface Loopback200
  ip address 85.1.1.1 255.255.255.0
  !
  interface Ethernet0/0
  ip address 178.9.9.22 255.255.255.0
  !
  router bgp 254
  no synchronization
  bgp log-neighbor-changes
  network 80.1.1.0 mask 255.255.255.0
  network 85.1.1.0 mask 255.255.255.0
  neighbor 178.9.9.2 remote-as 1
  neighbor 178.9.9.2 send-community
  neighbor 178.9.9.2 route-map as-path-prep out
  no auto-summary
  !
  ip bgp-community new-format
  !
  !
  ip prefix-list 80 seq 5 permit 80.1.1.0/24
  !
  route-map as-path-prep permit 10
  match ip address prefix-list 80
  set as-path prepend 20 40
  set community 254:80
  !
  route-map as-path-prep permit 20
  !
  !
  alias exec sib show ip interface brief
  alias exec sir show ip route
  !
  line con 0
  line aux 0
  line vty 0 4
  !
  end
  BB2#
   
  Thanks in advance.
   

 
---------------------------------
Sponsored Link

For just $24.99/mo., Vonage offers unlimited local and long- distance calling. Sign up now.



This archive was generated by hypermail 2.1.4 : Fri Dec 01 2006 - 08:05:45 ART