Strange behavior of route-map

Unanswered Question
Sep 11th, 2007

I have router with ospf and bgp process run.

At first step i don't do redistribution between process. Here part of config-

router ospf 1

log-adjacency-changes

network 2.2.2.0 0.0.0.255 area 0

network 172.22.23.2 0.0.0.0 area 0

!

router bgp 65334

no synchronization

bgp log-neighbor-changes

network 172.22.23.2 mask 255.255.255.255

neighbor 172.16.200.194 remote-as XXXX

neighbor 172.16.200.194 route-map To_OR_MPLS out

no auto-summary

!

ip prefix-list To_OR_MPLS seq 5 permit 172.22.23.2/32

ip prefix-list To_OR_MPLS seq 10 permit 2.2.2.0/24

!

route-map To_OR_MPLS permit 10

match ip address To_OR_MPLS

!

==================

Here routes which i received via OSPF ( a lot of..)

msk-bO-rt7206#sh ip route ospf

1.0.0.0/24 is subnetted, 1 subnets

O 1.1.1.0 [110/2] via 2.2.2.1, 04:34:52, FastEthernet0/0

192.168.14.0/30 is subnetted, 1 subnets

......

===========================

And here routes which i advertize via bgp using route-map To_OR_MPLS ( only one - which allowed by route-map) -

ip prefix-list To_OR_MPLS seq 5 permit 172.22.23.2/32

!

route-map To_OR_MPLS permit 10

match ip address To_OR_MPLS

!

msk-bO-rt7206#sh ip bgp nei 172.16.200.194 advertised-routes

BGP table version is 218, local router ID is 172.22.23.2

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 172.22.23.2/32 0.0.0.0 0 32768 i

=====================================

After it i made redistribution from ospf into bgp -

router bgp 65334

redistribute ospf 1 match internal external 1 external 2

neighbor 172.16.200.194 route-map To_OR_MPLS out

-----

And can see a lot of roues from OSPF. But it shouldn't be soo because of my route map!!

Where is my mistake??

=========

=========

msk-bO-rt7206#sh ip bgp nei 172.16.200.194 advertised-routes

BGP table version is 259, local router ID is 172.22.23.2

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 1.1.1.0/24 2.2.2.1 2 32768 ?

*> 2.2.2.0/24 0.0.0.0 0 32768 ?

*> 10.10.34.0/24 2.2.2.1 20 32768 ?

*> 10.10.35.0/24 2.2.2.1 20 32768 ?

*> 10.10.40.0/24 2.2.2.1 20 32768 ?

*> 10.10.72.0/25 2.2.2.1 3 32768 ?

........

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
rmv72 Tue, 09/11/2007 - 21:21

Fixed - it should be

match ip address prefix-list To_OR_MPLS

Actions

This Discussion