cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
264
Views
0
Helpful
1
Replies

Can't ping gateway with Static over OSPF

nawir
Level 1
Level 1

I am testing redistribute static over ospf in Unetlab 1.0.6

PROBLEM:
1. can't ping 8.8.8.8 from R2 and R3
What I miss here
tq

INFO:
R1
router ospf 1
redistribute static subnets
network 1.0.0.0 0.0.0.255 area 0
network 12.12.12.0 0.0.0.3 area 0
network 31.31.31.0 0.0.0.3 area 0
default-information originate
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 10.0.10.1

R1#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
31.31.31.1 1 FULL/DR 00:00:36 31.31.31.1 Ethernet1/2
23.23.23.1 1 FULL/DR 00:00:39 12.12.12.2 Ethernet1/1

#sh ip route
S* 0.0.0.0/0 [1/0] via 10.0.10.1
1.0.0.0/32 is subnetted, 3 subnets
C 1.0.0.1 is directly connected, Loopback0
O 1.0.0.2 [110/11] via 12.12.12.2, 00:20:41, Ethernet1/1
O 1.0.0.3 [110/11] via 31.31.31.1, 00:20:41, Ethernet1/2
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.10.0/24 is directly connected, Ethernet1/0
L 10.0.10.61/32 is directly connected, Ethernet1/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/30 is directly connected, Ethernet1/1
L 12.12.12.1/32 is directly connected, Ethernet1/1
23.0.0.0/30 is subnetted, 1 subnets
O 23.23.23.0 [110/20] via 31.31.31.1, 00:20:41, Ethernet1/2
[110/20] via 12.12.12.2, 00:20:41, Ethernet1/1
31.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 31.31.31.0/30 is directly connected, Ethernet1/2
L 31.31.31.2/32 is directly connected, Ethernet1/2

R2
router ospf 1
network 1.0.0.0 0.0.0.255 area 0
network 12.12.12.0 0.0.0.3 area 0
network 23.23.23.0 0.0.0.3 area 0
#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
31.31.31.1 1 FULL/BDR 00:00:32 23.23.23.2 Ethernet1/2
31.31.31.2 1 FULL/BDR 00:00:36 12.12.12.1 Ethernet1/1

# sh ip route
O*E2 0.0.0.0/0 [110/1] via 12.12.12.1, 00:21:15, Ethernet1/1
1.0.0.0/32 is subnetted, 3 subnets
O 1.0.0.1 [110/11] via 12.12.12.1, 00:22:32, Ethernet1/1
C 1.0.0.2 is directly connected, Loopback0
O 1.0.0.3 [110/11] via 23.23.23.2, 01:15:20, Ethernet1/2
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/30 is directly connected, Ethernet1/1
L 12.12.12.2/32 is directly connected, Ethernet1/1
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/30 is directly connected, Ethernet1/2
L 23.23.23.1/32 is directly connected, Ethernet1/2
31.0.0.0/30 is subnetted, 1 subnets
O 31.31.31.0 [110/20] via 23.23.23.2, 06:41:55, Ethernet1/2
[110/20] via 12.12.12.1, 01:20:07, Ethernet1/1

R3
router ospf 1
network 1.0.0.0 0.0.0.255 area 0
network 23.23.23.0 0.0.0.3 area 0
network 31.31.31.0 0.0.0.3 area 0
#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
31.31.31.2 1 FULL/BDR 00:00:38 31.31.31.2 Ethernet1/2
23.23.23.1 1 FULL/DR 00:00:33 23.23.23.1 Ethernet1/1

# sh ip route

Gateway of last resort is 31.31.31.2 to network 0.0.0.0

O*E2 0.0.0.0/0 [110/1] via 31.31.31.2, 00:21:49, Ethernet1/2
1.0.0.0/32 is subnetted, 3 subnets
O 1.0.0.1 [110/11] via 31.31.31.2, 00:23:06, Ethernet1/2
O 1.0.0.2 [110/11] via 23.23.23.1, 01:03:51, Ethernet1/1
C 1.0.0.3 is directly connected, Loopback0
12.0.0.0/30 is subnetted, 1 subnets
O 12.12.12.0 [110/20] via 31.31.31.2, 01:03:51, Ethernet1/2
[110/20] via 23.23.23.1, 01:03:51, Ethernet1/1
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/30 is directly connected, Ethernet1/1
L 23.23.23.2/32 is directly connected, Ethernet1/1
31.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 31.31.31.0/30 is directly connected, Ethernet1/2
L 31.31.31.1/32 is directly connected, Ethernet1/2

1 Reply 1

nawir
Level 1
Level 1

creating NAT solved the problem

Review Cisco Networking products for a $25 gift card