RE: BGP Policy accounting

From: Mohamed (nmohamed@cisco.com)
Date: Fri Apr 23 2004 - 01:02:23 GMT-3


Hi,
This is my 2nd try, till it is not solved for me..
 
Thanks
Mohamed.

-----Original Message-----
From: Mohamed [mailto:nmohamed@cisco.com]
Sent: Wednesday, April 14, 2004 4:51 PM
To: 'ccie-prep@cisco.com'
Cc: 'cciesg-student@cisco.com'
Subject: BGP Policy accounting

Hi all,

I wanted to try policy accounting,but it is not working,pls assiste me
where I missed out.

Thanks

Mohamed.

Configurations and setup:

Down router(f3/6)----------->(f3/6)SFM
router(g4/3)----------->(g4/3)Side router

 

Down#sh run | b router bgp

router bgp 500

no synchronization

table-map 111

bgp log-neighbor-changes

network 12.11.1.0 mask 255.255.255.0

network 22.11.1.0 mask 255.255.255.0

network 32.11.1.0 mask 255.255.255.0

network 190.1.1.0 mask 255.255.255.0

network 200.100.100.0

network 201.100.100.0

neighbor 25.25.25.25 remote-as 300

no auto-summary

!

ip classless

ip route 0.0.0.0 0.0.0.0 25.25.25.25

ip route 199.1.1.0 255.255.255.0 FastEthernet3/6

no ip http server

!

ip community-list 101 permit 300:786

!

!

!

route-map 111 permit 10

match community 300:786 exact-match

set traffic-index 2

!

route-map 111 permit 20

set traffic-index 4

!

 

Down#sh run int f3/6

Building configuration...

Current configuration : 125 bytes

!

interface FastEthernet3/6

ip address 25.25.25.26 255.255.255.0

bgp-policy accounting

bgp-policy source ip-prec-map

end

Down#

Down#sh ip bgp 199.1.1.1

BGP routing table entry for 199.1.1.0/24, version 2

Paths: (1 available, best #1, table Default-IP-Routing-Table)

Flag: 0x820

Not advertised to any peer

300 100 200

25.25.25.25 from 25.25.25.25 (101.100.100.100)

Origin IGP, localpref 100, valid, external, best

Community: 19661586

Down#

Down#sh ip cef 199.1.1.1 det

199.1.1.1/32, version 81, epoch 0, cached adjacency 199.1.1.1

0 packets, 0 bytes

via 199.1.1.1, FastEthernet3/6, 0 dependencies

next hop 199.1.1.1, FastEthernet3/6

valid cached adjacency

Down#

 

Here it doesnot show the traffic_index <<<<<<<<<<<<<<<

I did a ping sweep from Side to Down,but i couldnot find any entries!!!!

Down#sh cef int f3/6 po
Down#sh cef int f3/6 policy-statistics
FastEthernet3/6 is up (if_number 11)
  Corresponding hwidb fast_if_number 11
  Corresponding hwidb firstsw->if_number 11
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
Down#

SFM#sh run | b router bgp

router bgp 300

no synchronization

bgp log-neighbor-changes

network 12.1.1.0 mask 255.255.255.0

network 22.1.1.0 mask 255.255.255.0

network 32.1.1.0 mask 255.255.255.0

network 99.99.99.0 mask 255.255.255.0

network 100.100.100.0 mask 255.255.255.0

network 101.100.100.0 mask 255.255.255.0

neighbor 25.25.25.26 remote-as 500

neighbor 25.25.25.26 send-community

neighbor 25.25.25.26 route-map SETCOMM out

neighbor 99.99.99.2 remote-as 200

neighbor 99.99.99.2 local-as 100

!

ip classless

ip route 7.0.0.0 255.255.255.0 25.25.25.26

ip route 199.1.1.0 255.255.255.0 99.99.99.2

ip route 212.0.0.1 255.255.255.255 99.99.99.2

no ip http server

ip bgp-community new-format

!

access-list 10 permit 199.1.1.0 0.0.0.255 log

access-list 60 permit 201.100.100.0

access-list 61 permit 101.100.100.0

route-map SETCOMM permit 10

match ip address 10

set community 300:786

!

!

Side#sh run | b router bgp

router bgp 200

no synchronization

bgp log-neighbor-changes

network 199.1.1.0

neighbor 99.99.99.1 remote-as 100

!

ip classless

ip route 0.0.0.0 0.0.0.0 99.99.99.1

Side#



This archive was generated by hypermail 2.1.4 : Mon May 03 2004 - 19:48:53 GMT-3