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

Redistribute Static Route

hs08
VIP
VIP

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
Spotlight
Spotlight

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,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

3 Replies 3

Harold Ritter
Spotlight
Spotlight

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,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

hs08
VIP
VIP

hi @Harold Ritter 

Great !!!, Thank you

 

hs08
VIP
VIP

..