Cisco – How to advertise routes to IPSec tunnels in OSPF using Cisco IOS

ciscoiosipsecospf

I have Cisco 1800 series router (running C181X-ADVIPSERVICESK9-M) with lots of IPSec tunnels. I want to add this router to OSPF and configure it to advertise routes to remote subnets accessible via IPSec tunnels (e.g. if I have tunnel VPN1 with access list that allows all traffic from my network to 10.20.30.0/24 go through that tunnel, I want router to advertise route to 10.20.30.0/24 in OSPF).
Can this be achieved on Cisco IOS without explicitly adding routes to those remote subnets?

Best Answer

If I have understood correctly I believe a combination of Reverse Route Injection and OSPF redistribution with do what you are after.

Reverse Route Injection dynamically creates static routes for you VPN tunnels.

Redistribution will advertise the static routes via OSPF (or other routing protocols)

I am currently doing this way

Related Topic