08-18-2023 12:11 AM - last edited on 08-29-2023 01:49 AM by Translator
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
Solved! Go to Solution.
08-18-2023 12:24 AM - last edited on 08-29-2023 01:50 AM by Translator
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.
08-22-2023 01:28 AM - last edited on 08-29-2023 02:01 AM by Translator
Hello @xBan
Yes, on R1 delete that static route
ip route 0.0.0.0 0.0.0.0 192.168.1.5
08-18-2023 12:24 AM - last edited on 08-29-2023 01:50 AM by Translator
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.
08-18-2023 01:36 AM
But why R4 cant see R5 even the route is already in its routing table?
08-18-2023 01:50 AM - last edited on 08-29-2023 01:52 AM by Translator
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...
08-18-2023 02:23 AM
Thanks for the answer. i will try the solution later.
08-18-2023 07:20 AM
You're very welcome @xBan.
Thanks for your feedback.
08-20-2023 11:55 PM - last edited on 08-29-2023 01:53 AM by Translator
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
08-21-2023 01:40 AM - last edited on 08-29-2023 01:54 AM by Translator
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
08-21-2023 01:47 AM - last edited on 08-29-2023 01:54 AM by Translator
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
08-21-2023 02:00 AM - last edited on 08-29-2023 01:56 AM by Translator
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.
08-21-2023 02:24 AM - last edited on 08-29-2023 01:56 AM by Translator
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.
08-21-2023 02:34 AM
Do you have all interfaces in duplex mode ? No half duplex...
08-21-2023 02:43 AM - last edited on 08-29-2023 01:58 AM by Translator
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
08-21-2023 02:46 AM - last edited on 08-29-2023 01:59 AM by Translator
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#
08-21-2023 03:23 AM - last edited on 08-29-2023 02:00 AM by Translator
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide