cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
819
Views
0
Helpful
3
Replies

Redistribute Static Route

hs08
Spotlight
Spotlight

Hello.

If we have some static routes example we have 10, then how we can redistribute 4 of 10 static route to ospf?

1 Accepted Solution

Accepted Solutions

Harold Ritter
Cisco Employee
Cisco Employee

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

3 Replies 3

Harold Ritter
Cisco Employee
Cisco Employee

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

hs08
Spotlight
Spotlight

hi @Harold Ritter 

Great !!!, Thank you

 

hs08
Spotlight
Spotlight

..

Review Cisco Networking for a $25 gift card