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

Can Policy based routing work with OSPF

grapevine
Level 1
Level 1

Will route map override OSPF path selection

 

grapevine_0-1724488806521.png

I have a loop back on R4 with address 4.4.4.4 and another on R1 with 1.1.1.1

The interface from R2 to R4 is fast ethernet

I have configured the below command on all routers under ospf

auto-cost reference-bandwidth 1000

So ping from 4.4.4.4 to 1.1.1.1 is using path : R4>R3> R1

I have configured a route map to use R2 when source is 4.4.4.4 but it doesnt seem to work : it is still using R3 . Please advise what am I missing

R4#traceroute 1.1.1.1 source 4.4.4.4

Type escape sequence to abort.
Tracing the route to 1.1.1.1

1 10.0.34.3 36 msec 32 msec 32 msec
2 10.0.13.1 60 msec 76 msec 64 mse

R4#sh run | s route-map
route-map PBR permit 10
match ip address 100
set ip next-hop 10.0.24.2

 

R4#sh access-lists 100
Extended IP access list 100
10 permit ip host 4.4.4.4 any

R4#sh run | s ospf
router ospf 1
log-adjacency-changes
auto-cost reference-bandwidth 1000
network 4.4.4.0 0.0.0.255 area 0
network 10.0.0.0 0.0.255.255 area 0

 

 

 

 

 

1 Accepted Solution
1 Reply 1
Review Cisco Networking for a $25 gift card