cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2456
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

 

20 Replies 20

R2 route
10.0.0.0/8 is variably subnetted, 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 subnetted, 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 subnetted, 1 subnets
O IA 30.30.30.0 [110/2] via 10.10.10.3, 00:50:03, FastEthernet1/0
40.0.0.0/24 is subnetted, 1 subnets
O IA 40.40.40.0 [110/3] via 10.10.10.3, 00:50:03, FastEthernet1/0
S 192.168.1.0/24 [1/0] via 20.20.20.1

R3 rotue


10.0.0.0/8 is variably subnetted, 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 subnetted, 1 subnets
O E2 20.20.20.0 [110/20] via 10.10.10.2, 00:50:43, FastEthernet0/0
30.0.0.0/8 is variably subnetted, 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
40.0.0.0/24 is subnetted, 1 subnets
O IA 40.40.40.0 [110/2] via 30.30.30.4, 00:50:43, FastEthernet1/0
O E2 192.168.1.0/24 [110/20] via 10.10.10.2, 00:50:43, FastEthernet0/0

R4 route

10.0.0.0/24 is subnetted, 1 subnets
O IA 10.10.10.0 [110/2] via 30.30.30.3, 00:53:47, FastEthernet0/0
20.0.0.0/24 is subnetted, 1 subnets
O E2 20.20.20.0 [110/20] via 30.30.30.3, 00:53:42, FastEthernet0/0
30.0.0.0/8 is variably subnetted, 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
40.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 40.40.40.0/24 is directly connected, FastEthernet1/0
L 40.40.40.4/32 is directly connected, FastEthernet1/0
O E2 192.168.1.0/24 [110/20] via 30.30.30.3, 00:53:42, FastEthernet0/0


R5 IP route
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!


R1 IP route

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

 

I send you message check it

xBan
Level 1
Level 1

Hi, Do you have a answer why it behaves like that?

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 .ı|ı.ı|ı.

Thank you. yeah it resolve the problem. But what if the R1 is like a firewall. how do R1 knows the router behind R5 if we remove the

default route

to R5?, lets say R5 is a ISP

@xBan 

In this case, configure

default route

towards ISP and specific static route towards your "inside" Network.

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

ip route 30.30.30.0 255.255.255.0 20.20.20.2

Etc etc...

The best is to configure dynamic routing protocol from R1 too --- stretch your OSPF to R1 and

redistribute the default route

(ISP).

 

 

 

 

 

 

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