05-10-2024 10:47 AM
I'm setting up a network (see image) and the issue I'm having is that I can see the redistributed routes in the routing table of R1 and R5, but I can't ping to them. When I try to ping 2.2.20.2 (R2) from R5 it's doesn't work, I can ping from R4. Same with R1 when I try to ping 5.5.50.5 it doesn't work, but when I try from R2 it works. I have connectivity from R3 to both 2.2.20.2 and 5.5.50.5.
What am I missing?
Thank you,
Dave
Solved! Go to Solution.
05-10-2024 12:55 PM
I found that I needed static route's on each router to all the physical interfaces and it works now (see below) I can ping to redistributed OSPF route's on R1 and R5. Thank you for all the help.
R1:
Ip route 192.168.23.0 255.255.255.0 192.168.12.2
Ip route 192.168.34.0 255.255.255.0 192.168.12.2
Ip route 192.168.45.0 255.255.255.0 192.168.12.2
R2:
Ip route 192.168.34.0 255.255.255.0 192.168.23.3
Ip route 192.168.45.0 255.255.255.0 192.168.23.3
R4:
Ip route 192.168.23.0 255.255.255.0 192.168.34.3
Ip route 192.168.12.0 255.255.255.0 192.168.34.3
R5:
Ip route 192.168.34.0 255.255.255.0 192.168.45.4
Ip route 192.168.23.0 255.255.255.0 192.168.45.4
Ip route 192.168.12.0 255.255.255.0 192.168.45.4
05-10-2024 02:47 PM
Lab if you in feature decided to recheck your config
redistrubte ospf into bgp
and notice you need static route in R3 for Link between R1-R2 and for Link between R4-R5 if you dont specify source in ping.
MHM
05-10-2024 10:50 AM
You dont redistrubte ospf into bgp
Redistrubte it and dont forget add match internal external 1 external 2 in redistrubte command
MHM
05-10-2024 11:00 AM
MHM,
Thank you for the reply. I didn't redistribute ospf into bgp, it's bgp into ospf. Can you be more specific as to what commands are needed?
05-10-2024 11:06 AM - edited 05-10-2024 11:21 AM
R2 and R4 there bgp and you use network command only for LO in R2 and you dont redistrubte it to bgp' so how R5 can know R1 LO?
You need to redistrubte ospf into bgp in R2 to advertise R1 LO to other routers
MHM
05-10-2024 11:13 AM
MHM,
Are you able to see the diagram, R3 is static only, no bgp, R2 has network statements of Lo0 and Lo1. I'm simulating a live production network that I manage.
05-10-2024 11:20 AM - edited 05-10-2024 11:44 AM
Friend R4 how know the R1 LO
You need redistrubte ospf in bgp in R2 and R4
The static route in R3 only for traffic forward by R3 not R4 and R5
MHM
05-10-2024 11:19 AM
Hello,
post the full running configurations (sh run) of all five routers...
05-10-2024 11:47 AM
Hi @DSterling ,
The bottom line is that R1 does not have routes to reach R5 and vice versa. As you already use network statements on R2 and R4 to advertise local routes, you could add the following network statement to advertise R1 and R5 routes as well.
R2:
router bgp 2400
network 1.1.10.1 mask 255.255.255.255
network 1.1.11.1 mask 255.255.255.255
R4:
router bgp 4200
network 5.5.50.5 mask 255.255.255.255
network 5.5.51.5 mask 255.255.255.255
Dont forget also that when you ping from R1 to R5 or vice versa, you need to specify the source address as follow:
R1:
ping 5.5.50.5 source 1.1.10.1
Regards,
05-10-2024 12:55 PM
I found that I needed static route's on each router to all the physical interfaces and it works now (see below) I can ping to redistributed OSPF route's on R1 and R5. Thank you for all the help.
R1:
Ip route 192.168.23.0 255.255.255.0 192.168.12.2
Ip route 192.168.34.0 255.255.255.0 192.168.12.2
Ip route 192.168.45.0 255.255.255.0 192.168.12.2
R2:
Ip route 192.168.34.0 255.255.255.0 192.168.23.3
Ip route 192.168.45.0 255.255.255.0 192.168.23.3
R4:
Ip route 192.168.23.0 255.255.255.0 192.168.34.3
Ip route 192.168.12.0 255.255.255.0 192.168.34.3
R5:
Ip route 192.168.34.0 255.255.255.0 192.168.45.4
Ip route 192.168.23.0 255.255.255.0 192.168.45.4
Ip route 192.168.12.0 255.255.255.0 192.168.45.4
05-10-2024 01:04 PM
So now you can ping from R1 LO to R5 LO?
Sure No
But anyway
Glad issue you solve for your running test
Have a nice weekend
MHM
05-10-2024 02:47 PM
Lab if you in feature decided to recheck your config
redistrubte ospf into bgp
and notice you need static route in R3 for Link between R1-R2 and for Link between R4-R5 if you dont specify source in ping.
MHM
05-13-2024 06:02 AM
MHM,
Thank you for all your help. Yes I did have to add static routes for everywhere on R3, good catch Thank you again.
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