cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
228
Views
0
Helpful
1
Replies

Strange behavior of route-map

rmv72
Level 1
Level 1

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 ?

........

1 Reply 1

rmv72
Level 1
Level 1

Fixed - it should be

match ip address prefix-list To_OR_MPLS

Getting Started

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:

Review Cisco Networking products for a $25 gift card