cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
910
Views
0
Helpful
4
Replies

Redistribution of default route and static route into ospf fail

Damka
Level 1
Level 1

Hello guys,

I have 2 cases and both of them are fail.

 

When i add red colored configuration into Core router 2.

Communication between TDB-server and 192.168.1.100 failed

Communication between Internet-Server and 192.168.1.100 failed

 

route.JPG

 

This case is same.

When i added red color configuration into Core router 2.

Communication between TDB-server and 192.168.1.100 failed

Communication between Internet-Server and 192.168.1.100 failed

 

rrr.JPG

 

Is anyone knows why it is failed?

 

I attached the packet tracer files.

 

Is there any recommended solution for 2 core routers and 2 core switches. They work like redundant devices. Core router redistribute default routes and static routes to core switches.

 

Thanks

4 Replies 4

Jaderson Pessoa
VIP Alumni
VIP Alumni
Hello,

Could you share your pkt. file? You're using default originate to registribute default-gateway for the peers. Maybe it is a problem if they cant establish connection between this gateway.
Jaderson Pessoa
*** Rate All Helpful Responses ***

I uploaded the cases on google drive.

 

Share case 1

 

Share case 2

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Damka,

a) in Cisco devices you cannot redistribute a default static route into OSPF

 

under ospf process use

router ospf 10

default-information originate

 

The command above checks the IP routing table and generate an LSA type 5 for network 0.0.0.0/0 if a default route is present in the IP routing table ( a static default route , a BGP route and so on)

 

B) in Cisco OSPF redistribution requires the subnets keyword to perform correct redistribution otherwise OSPF will summarize to major network ( Class A, Class B, Class C)

so you need the following

router ospf 10

redistribute static subnets

 

Note: even if using a route-map to select what static route should be redistributed into OSPF you still need to provide the subnets parameter. This is OSPF specific.

so alternate command is

redistribute static subnets route-map STATIC-INTO-OSPF

 

ip prefix-list SELECTED 10.0.0.0/8 ge 16 le 24

 

route-map STATIC-INTO-OSPF permit 10

match address prefix SELECTED

 

edit:

c) OSPF requires that the static route next-hop is advertised with an internal OSPF route.

OSPF checks the static route next-hop.

It does not allow injection of a static route if the next-hop is part of another external route.

it does not allow for recursion between external routes.

This can happen when using both

redistribute connected subnets

redistribute static subnets

 

To avoid this:

under router ospf 10 use network statement for IP subnet of the static route IP next-hop

 

router ospf 10

! example: change according to your needs

network 10.10.10.0 0.0.0.255 area 0

 

You can eventually use a passive interface.

 

 

Hope to help

Giuseppe

 

 

 

Can you fix these cases on the packet tracer file? I have uploaded packet tracer file on google drive.

 

Share case 1

 

Share case 2

 

Thank you

 

 

Review Cisco Networking for a $25 gift card