Static Route Redistribution over OSPF.

Mar 14, 2006 4 Replies
Static Route Redistribution over OSPF. open original image

Hi,



Is it possible to redistribute Classless IP range Static routes over OSPF?



For example can I redistribute a static for IP range 10.135.64.0 /19 over OSPF, or will OSPF redistribute 10.0.0.0/8 instead?



many thanks



Dave


To redistribute static routes to subnets of classful networks use "redistribute static subnets" under the ospf router configuration.

Cisco da Gama

formatting link

Another shing you should look at - now you define your OSPF areas. This command will redistribute the static route with subnetting information. Some OSPF areas (for examle, NSSA) allow you to redistribute SUMMARY address only (for exampe, you have 10.1.1.0/24, 10.100.0.0/16 and 10.0.0.0/8. OSPF may send 10.0.0.0/8 only).

Good luck,

Mike

Here is an expample: router ospf 1 log-adjacency-changes summary-address 172.16.0.0 255.255.0.0 network 10.10.102.0 0.0.0.3 area 1 network 10.10.104.0 0.0.0.3 area 1 network 10.10.105.0 0.0.0.3 area 1 network 10.10.106.0 0.0.0.3 area 1 network 10.10.107.0 0.0.0.3 area 1 network 10.10.108.0 0.0.0.3 area 1 network 10.10.109.0 0.0.0.3 area 1 network 10.10.110.0 0.0.0.3 area 1 network 10.10.188.0 0.0.0.3 area 1 network 10.10.0.0 0.0.255.255 area 1 network 172.16.103.0 0.0.0.255 area 1 network 172.16.0.0 0.0.255.255 area 1 default-information originate always ! ip classless ip route 0.0.0.0 0.0.0.0 172.16.103.45 ip route 0.0.0.0 0.0.0.0 172.16.188.47 10 ip route 10.10.0.0 255.255.0.0 Null0 ip route 170.209.0.2 255.255.255.255 172.16.103.40 ip route 170.209.0.3 255.255.255.255 172.16.103.40 ip route 172.16.0.0 255.255.0.0 Null0

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required