08-24-2024 01:59 AM
Will route map override OSPF path selection
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
Solved! Go to Solution.
08-24-2024 02:05 AM
Sure pbr override ospf but you need to use local pbr
MHM
08-24-2024 02:05 AM
Sure pbr override ospf but you need to use local pbr
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide