01-23-2023 06:39 PM
Hello.
If we have some static routes example we have 10, then how we can redistribute 4 of 10 static route to ospf?
Solved! Go to Solution.
01-23-2023 07:06 PM
Hi @hs08 ,
You can configure the static routes you want redistributed in ospf with a given tag and match on that tag in a route-map used on the "redistribute static" statement as follow:
ip route 192.168.100.0 255.255.255.0 192.168.1.1 tag 999
ip route 192.168.200.0 255.255.255.0 192.168.1.1
!
router ospf 109
redistribute static route-map static2ospf
!
route-map static2ospf permit 10
match tag 999
route-map static2ospf deny 20
In this example, only the first static route would be redistributed in ospf.
Regards,
01-23-2023 07:06 PM
Hi @hs08 ,
You can configure the static routes you want redistributed in ospf with a given tag and match on that tag in a route-map used on the "redistribute static" statement as follow:
ip route 192.168.100.0 255.255.255.0 192.168.1.1 tag 999
ip route 192.168.200.0 255.255.255.0 192.168.1.1
!
router ospf 109
redistribute static route-map static2ospf
!
route-map static2ospf permit 10
match tag 999
route-map static2ospf deny 20
In this example, only the first static route would be redistributed in ospf.
Regards,
01-23-2023 07:27 PM
01-25-2023 09:24 PM - edited 01-25-2023 09:37 PM
..
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