cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1410
Views
5
Helpful
20
Replies

Need Help in Static OSPF Redistribute

xBan
Level 1
Level 1

Hi ,

Im very newbie in networking. i have question about OSPF routing with Static. i have this configuration below, why i cant ping R5 and R1 network from R4, even though i can see their network in my ip route, i can ping it also from R3. is there a problem in the configuration or need to add? hope someone can enlighten me, i tried everything. but seems R4 cannot see R5 and R1 even it is already in his IP route. Thanks

And also one more question, is there a limit on router redistributing routes in ospf if i used static?


R5>>R1>>R2>>R3>>R4
R5 & R1 Static Config
R2 ASBR
R3 and R4 Ospf


R1#

interface FastEthernet0/0
ip address 20.20.20.1 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 192.168.1.1 255.255.255.0
duplex half

!
ip route 0.0.0.0 0.0.0.0 192.168.1.5
ip route 10.10.10.0 255.255.255.0 20.20.20.2
!

_________________________________________________

R2#
!
interface FastEthernet0/0
ip address 20.20.20.2 255.255.255.0
duplex half
!
interface FastEthernet1/0
IP address 10.10.10.2 255.255.255.0
duplex half
!
router OSPF 1
router-id 2.2.2.2
redistribute connected subnets
redistribute static subnets
network 10.10.10.0 0.0.0.255 area 1
!

ip route 192.168.1.0 255.255.255.0 20.20.20.1
!

__________________________________________
R3#

interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 30.30.30.3 255.255.255.0
duplex half
!
!
router OSPF 1
router-id 3.3.3.3
network 10.10.10.0 0.0.0.255 area 1
network 30.30.30.0 0.0.0.255 area 0
!

R4#

______________________________________________

!
interface FastEthernet0/0
ip address 30.30.30.4 255.255.255.0
duplex half
!
!
router ospf 1
router-id 4.4.4.4
network 30.30.30.0 0.0.0.255 area 0
!


R5#

!
interface FastEthernet0/0
ip address 192.168.1.5 255.255.255.0
duplex half
!
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!


___________________________________________________

R4 IP route

10.0.0.0/24 is sub netted, 1 subnets
O IA 10.10.10.0 [110/2] via 30.30.30.3, 00:04:27, FastEthernet0/0
20.0.0.0/24 is sub netted, 1 subnets
O E2 20.20.20.0 [110/20] via 30.30.30.3, 00:01:54, FastEthernet0/0
30.0.0.0/8 is variably sub netted, 2 subnets, 2 masks
C 30.30.30.0/24 is directly connected, FastEthernet0/0
L 30.30.30.4/32 is directly connected, FastEthernet0/0
O E2 192.168.1.0/24 [110/20] via 30.30.30.3, 00:01:54, FastEthernet0/0




R3 IP route

10.0.0.0/8 is variably sub netted, 2 subnets, 2 masks
C 10.10.10.0/24 is directly connected, FastEthernet0/0
L 10.10.10.3/32 is directly connected, FastEthernet0/0
20.0.0.0/24 is sub netted, 1 subnets
O E2 20.20.20.0 [110/20] via 10.10.10.2, 00:01:55, FastEthernet0/0
30.0.0.0/8 is variably sub netted, 2 subnets, 2 masks
C 30.30.30.0/24 is directly connected, FastEthernet1/0
L 30.30.30.3/32 is directly connected, FastEthernet1/0
O E2 192.168.1.0/24 [110/20] via 10.10.10.2, 00:01:55, FastEthernet0/0

R2 IP route
10.0.0.0/8 is variably sub netted, 2 subnets, 2 masks
C 10.10.10.0/24 is directly connected, FastEthernet1/0
L 10.10.10.2/32 is directly connected, FastEthernet1/0
20.0.0.0/8 is variably sub netted, 2 subnets, 2 masks
C 20.20.20.0/24 is directly connected, FastEthernet0/0
L 20.20.20.2/32 is directly connected, FastEthernet0/0
30.0.0.0/24 is sub netted, 1 subnets
O IA 30.30.30.0 [110/2] via 10.10.10.3, 00:06:27, FastEthernet1/0
S 192.168.1.0/24 [1/0] via 20.20.20.1

 

2 Accepted Solutions

Accepted Solutions

M02@rt37
VIP
VIP

Hello @xBan,

Add to

[R1] an ip route
ip route 30.30.30.0 255.255.255.0 20.20.20.2 name R3-R4

Also take care you have interfaces in half duplex mode. Put them in full duplex. Don't hesitate to add description to interfaces and a name to static routes.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

Hello @xBan 

Yes, on R1 delete that static route

ip route 0.0.0.0 0.0.0.0 192.168.1.5
Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

20 Replies 20

M02@rt37
VIP
VIP

Hello @xBan,

Add to

[R1] an ip route
ip route 30.30.30.0 255.255.255.0 20.20.20.2 name R3-R4

Also take care you have interfaces in half duplex mode. Put them in full duplex. Don't hesitate to add description to interfaces and a name to static routes.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

But why R4 cant see R5 even the route is already in its routing table?

@xBan 

Because for the "return" flow, called

icmp echo-reply

R1 dont know specificly how to go to

30.30.30.4

Then it uses the

default route

and re send the packet to R5, R5 re send to R1 etc etc...

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Thanks for the answer. i will try the solution later. 

You're very welcome @xBan.

Thanks for your feedback.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I tried already and it work.  but im concern now is what if i add new router at the back of R4. so i need to add new route in R1 for every router i add.  any other solution that could automatically learn R1 every new router added behind R4. i tried the

default route

but its only returing 40% from ping.  i

Hello @xBan

On R1 you have that:

R1#

!
ip route 0.0.0.0 0.0.0.0 192.168.1.5
ip route 10.10.10.0 255.255.255.0 20.20.20.2

Modify by this:

R1#

!
ip route 0.0.0.0 0.0.0.0 20.20.20.2
!

If you have network behind R5 to reach, add specific static route from R1 with

next hop 192.168.1.5
Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

The problem if i add

default route

im getting 40% success rate when i ping the router in ospf area. always like that. i tried adding defaul information originate on R2 stilll the same

Sorry @xBan 

I dont understand.

The problem if i add

default route

Where? Towards ?

im getting 40% success rate when i ping the router in ospf area.

Which IP router ? From where ?

...always like that. i tried adding defaul information originate on R2 stilll the same

Default information always command you mean? You have a

static default route

on R2 ? If not you need to add the key word always.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

when i add a

default route

on R1 pointing to R2, R4 cannot reach R5 properly. i tried to ping it from R4 it gives only 40% success rate not 100%, there is a time in between. you can try to run the config to see.

@xBan 

Do you have all interfaces in duplex mode ? No half duplex...

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Yes, i already put duplex in full..

heres what i get from R4 ping and

traceroute
R4#ping 192.168.1.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.5, timeout is 2 seconds:
!..!.
Success rate is 40 percent (2/5), round-trip min/avg/max = 44/54/64 ms
R4#t
R4#traceroute 192.168.1.2
Type escape sequence to abort.
Tracing the route to 192.168.1.2
VRF info: (vrf in name/id, vrf out name/id)
1 30.30.30.3 8 msec 8 msec 4 msec
2 10.10.10.2 16 msec 20 msec 20 msec
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 *




This from R4

R5#ping 30.30.30.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.30.30.4, timeout is 2 seconds:
.!..!
Success rate is 40 percent (2/5), round-trip min/avg/max = 44/56/68 ms
R5#tra
R5#traceroute 30.30.30.4
Type escape sequence to abort.
Tracing the route to 30.30.30.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.1.1 8 msec 16 msec 20 msec
2 20.20.20.2 16 msec
192.168.1.5 24 msec 8 msec
3 * *
10.10.10.3 48 msec
4 * *
30.30.30.4 56 msec
R5#




From R5

 

sorry did mistake heres the

traceroute

from R4 to R5

R4#traceroute 192.168.1.5
Type escape sequence to abort.
Tracing the route to 192.168.1.5
VRF info: (vrf in name/id, vrf out name/id)
1 30.30.30.3 4 msec 24 msec 8 msec
2 10.10.10.2 20 msec 28 msec 24 msec
3 * * *
4 *
192.168.1.5 60 msec *
R4#

Please provide the output

#show ip route

from R2, R3 and R4 ?

R5 still has got

default route to 192.168.1.1

?

R1 has got now

default route to 20.20.20.2

?

Thanks.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.
Review Cisco Networking for a $25 gift card