Which BGP attribute can be used to influence the path that incoming traffic takes into your AS from other Autonomous Systems?
Which BGP attribute can be used to influence the path that incoming traffic takes into your AS from other Autonomous Systems?
The BGP attribute AS_Path can be used to influence the path that incoming traffic takes into your AS from other Autonomous Systems. By prepending additional AS numbers to the AS_Path, you can make a particular route appear longer, thereby making it less preferred compared to other routes with shorter AS Paths. This manipulation influences how other ASes prioritize and route their traffic towards your network.
B local preference and weight are locally relevant only to manipulate outgoing traffic I can’t remember much about MED
Given answer is correct, AS-PATH to influence incoming traffic and LOCAL_PREF to influence outgoing traffic.
B is corerct
It is B as said, they are saying to you which attribute influnce the path that incoming traffic will take, so the result will be to influence the traffic into your as, for do that you prepend your as one more time so that your neighbor will prefer another bgp update coming from another interface that maybe have much more speed (that's an example).
Given answer is correct
AS-PATH 100%
Metric aka MED can also influence ingress traffic in to your autonomous system though? I agree AS_PATH is the best, but technically MED would also be correct in some situations.
Commenting on my own comment here after looking through this again. The key here is autonomous-systems, plural. MED can influence ingresss if there is a single AS that has multiple ingress points to your AS. Otherwise AS_PATH or advertising a longer-prefix are your options.
Think of an AS that is two AS's away and as-path is preferred over MED.
to clarify setting MED won't work for an AS, two AS's away, prepending or removing as-path will