So what you are trying to do here is to make sure that R2 will redistribute the 1.1.1.0/24 prefix into OSPF, so that R4 will have it in its IGP (which is OSPF). This satisfies the synchronization rule and allows the BGP route to 1.1.1.0/24 to be installed in the routing table.
I’m not completely sure why it’s not working for you just from the information you have shared. You will need to troubleshoot the redistribution of the route into OSPF. One thing that comes to mind is the fact that you are redistributing 1.1.1.1/32. Is that what you have configured on your R1 loopback interface? In the lesson, it’s 1.1.1.1/24 and the network command is advertising 1.1.1.0 0.0.0.255. This may have something to do with it.
If not, troubleshoot redistribution and see why the network is not being shared to R4. You can take a look at these lessons to help you out:
as u mentioned it should be running fine, although when i change the loopbacks to 1.1.1.0/24 instead 1.1.1.1/32 it runs. Yes the network commands area the same as loopbacks on bgp configuration. I suggest there will be a problem with bgp router- , maybe sthing is wrong from the same protocol and i
bind the 1.1.1.1 to update loopback bgp neighborship
define bgp router- 1.1.1.1
make static routes to this prefix
i advertsise the 1.1.1.1/32 host as network.
Do u have any in ur mind ? Do u have mmet any other same case?
Remember that the network command in BGP must match the address and subnet mask exactly as it exists in the routing table. Check out what’s in the routing table for that loopback address. If it does not match, then it won’t work.
If I understand the rule correctly, as Rene said, this was the “solution” to scenarios where we didn’t run iBGP on all routers in our transit AS.
So if the prefix is validated via an IGP, the assumption here is that even R3 (who isn’t running BGP) is running that IGP and knows about the route, so no traffic will be blackholed, right?
Yes, that is correct. This is a feature that is meaningful when there are some routes within our AS that are not running BGP. However, this approach is declining in use, and the best practice is to ensure that there is a full mesh of iBGP peerings between routers in an AS.
Yes. R4 refuses to install the BGP route unless there is an IGP route installed in the routing table for that prefix. This ensures that this route is known within the IGP domain, and thus any routers not running iBGP will be able to route it.