How to configure BGP AS Path Prepending

Hello Rene,

This is the setup I am using to configure BGP multihoming.

AS 100 has two exit points to reach R5 which is hosting a subnet: 8.8.8.8

My Question is what difference does it make if I advertise directly connected subnets in BGP.

For example:

R1(config-router)#network 192.168.1.0 mask 255.255.255.252

R2(config-router)#network 192.168.2.0 mask 255.255.255.252

One thing which I have noticed is if I do not advertise 192.168.1.0 subnet on R1, R2 did not know about it at all so advertising it on R1 did make sense.

Also, what difference will it make if I advertise the same subnet on R3 as well:

R3(config-router)#network 192.168.1.0 mask 255.255.255.252

Please explain I’ve seen some interesting changes on R5 BGP table by playing with above configurations. Requesting you to please put some light here.

Many Thanks.