Having little to no luck on BGP communities from Upstream so I started with Prepending the lesser preferred path now what happens is that this path still receives inbound traffic to my network for specified pools but no traffic of the pools is going thru it though. Its downloading around 100M and upload is 0M not even bits .
Does Prepending path takes time to propagate? I can see changes in LG almost immediately.
If I use AS-PATH preference or next-hop preference what will happen if this PATH or hop goes down anyway to automate disabling the same or change on the go by using internal BGP communities,
These are settings that affect your OUTBOUND preference, not inbound. The only things you can do to affect inbound preference:
(these are arranged in what I consider to be most desirable to least desirable)
1) Send communities to ISP which modify the ISPs routing policy. This is the most common and most effective method, and if you send communities which instruct the ISP to lower the local_pref of your routes, this can have a completely different (and more powerful) effect on the behavior of traffic inbound towards your network.
2) set MEDs for multiple connections to same ISP (not applicable to you, I think)
3) AS-PREPEND - may not be effective to traffic originating from the ISP's own network because they may (and very often this is the case) have a local_pref value which sets customer routes as higher-priority over routes learned from their other peers. You could prepend it 50 times and it wouldn't matter because AS-PATH length is a less important metric to BGP than local_pref. This prepended route WILL affect which of your ISPs other networks may choose to reach you, but it very likely has zero effect on the ISP's own routing decisions inside its own network.
4) If all else fails, send more specific routes to another carrier. This is guaranteed to work because the first rule of routing is to choose the most specific route. A /23 route matching the destination will ALWAYS be chosen before a /22 route matching the same prefix. If you're announcing a /22 to Vodafone, you can announce the two /23 sub-prefixes of this /22 block into your other carrier's BGP table, and that will win out completely, regardless of Vodafone's policy-based rules.
Communities are the most common, but also the hardest to easily discuss here because communities can do lots of things depending on what actions the ISP offers you. Some ISPs only have a very short list: don't advertise to other carriers/customers, lower local_pref, prepend once/twice/thrice to other carriers. Some have more choices than Nieman Marcus, and let you do things like "prepend once to this specific peer" or "do not advertise to European peers." Something like "set my local pref to very low" can have a big effect - causing the ISP to ignore your route as long as it is available anywhere else, or it can cause it to be "less attractive" to certain peers, or to everyone outside their network, etc.