I have following scenario: My AS: 64501 has two routers R3 (Redundand) and R4 (Main).
ISP AS: 64500 has 3 routers R1, R2 and R5
I have eBGP peering with ISP, I have no access to ISP configuration, only to configuration on my net (R3, R4).
I need that incoming traffic from ISP always was sent to Main router (R4) and only if Main isn't accessible send traffic to Geo redundant (R3).
I can do it using AS-PATH Prepend sent from Geo-redundant router (R3) and it's working:
But in this case traffic in ISP from R5 is sent as showed on picture (via R1-R2-R4) - one more hop, not straight (R5-R2-R4). This happens because iBGP is not using AS-PATH prepend, so R1 is preferring route via R2, as route R1<->R3 is prepended. But R1 is sending iBGP route update to R5 without as-path prepend. So for R5 there are two equal routes to My network, and it's choosing route via R1, as R1 IP address is lower that R2 IP.
Question#1: Can I configure somehow devices only in My network, so traffic will pass like this, without MED or Communities?
Questions#2: Can I configure somehow devices in My and in ISP network, so traffic will pass like this, without MED or Communities?
Thank you.



In current example for R5 it doesn't mater if there are or not prepends from customers, the only device that is taking in consideration prepends are edge routers (R1 and R2). For R5 routes that came from R1 are equal to ones from R2.
Let's say I am ISP administrator and I want that routes that came with prepends on R1 or R2 will be propageted inside iBGP (to R5) with lower value of Local Preference for instance. In that case if R1 has routes with prepends - it will send it to R5 with lower Local Pref. and hence R5 will prefer route via R2 . Is it possible?
– DmitriiGangan Dec 28 '16 at 09:20