No Answer is correct
A) Med is not compered if As-Path is not the same or Always-compare-med is configured (nor is)
B) would prefer the path BR2 -PE2 which is not the goal
C) prefers the path only on BR1 local, does not change decision on BR2
D) you cant configure Local pref outbound to another AS
Lower MED is prefer you can see route from PE2 on BR2 has a AD of 20 because EBGP and metric 0. When you put MED(MED=IGP metric) to 1 on PE2 to BR2 as BR1 is anouncing his best route to PE2 with a MED of 0 PE2 will prefer PE1 path
Option A, setting the MED to 1 on PE2 toward BR2 outbound, wouldn’t be as effective because the MED (Multi-Exit Discriminator) attribute is used to influence the path selection between different autonomous systems (AS) when multiple paths exist. However, MED is only considered when comparing routes from the same AS. In this scenario, since BR2 is choosing between paths through different ASes (AS200 and AS300), the MED attribute won’t have the desired impact on BR2’s path selection.
The weight attribute, on the other hand, is a Cisco-specific attribute that is considered first in the BGP path selection process and is local to the router on which it is set. By setting the weight to 65,535 on BR1, you ensure that BR1’s path is preferred over any other paths, effectively directing BR2 to route traffic through BR1.
Bot B and C are incorrect. Explanation: MED and weight attributes are not transitive, therefore setting the attributes on one iBGP router has no effect on the other iBGP router path selection , these attributes are propagated only to adjacent AS. B is the correct option: set origin {igp | egp as-system | incomplete}
I am going to have to take some of the what I said back, in case with MED it's on the same router , therefore doesn't have to be transitive. I have just tested option A in GNS lab and it worked, correct answer is A
Router BR2 before:
BR2#sho ip bgp
BGP table version is 3, local router ID is 192.168.23.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i2.2.2.0/24 192.168.12.1 0 100 0 2 i
*> 192.168.23.3 0 0 2 i
*>i192.168.13.0 192.168.12.1 0 100 0 i
Router BR2 after : Route to PE2 removed
R3#sho ip bgp
BGP table version is 4, local router ID is 192.168.23.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i2.2.2.0/24 192.168.12.1 0 100 0 2 i
*>i192.168.13.0 192.168.12.1 0 100 0 i
It´s A
By default, the MED attribute is set to 0 so by increasing the MED on PE2 toward BR2, BR2 would think the metric of its direct link to PE2 is higher than the path advertised by BR1.
So BR2 would use BR1 to reach 209.165.201.0/27.
B is incorrect, We can´t affect BR2 routing decision by modifying BGP advertisements from BR2 toward PE2 (inbound). Also if network 209.165.201.0/27 is advertised with “network” statement in BGP, BR2 will match it with origin IGP.
it should be set origin as Incomplete on the PE2 toward BR2:
rtrb>sho ip bgp
BGP table version is 5, local router ID is 172.12.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 172.16.23.0/24 10.0.13.1 100 0 300 ?
*>i 10.0.0.1 0 100 0 200 i
D: Local pref has affect on the (inbound policy) outbound path selection so in this case it would effect PE1 outgoing traffic (we need other way around)
C) Weight is just locally on the router takes affect and the answer is set the weight on BR1 so does not change anything regarding BR2
B) If the prefix from PE2 is incomplete type and we modify it to IGP (it cannot be done cause you can only modify from igp to egp or incomplete) we would choose the line towards PE2 what is the current situation so it is not choice we want
A) weight is an (outbound policy) inbound path selection attribute so we can influence the incoming traffic --> this is a good solution for us cause the default med is 0 and lower is better so if we worsen the med on PE2 it means that BR2 will see a better med attribute from PE1 via BR1 so that direction will be the best during the path selection process
Okay let's say we implement A, meaning we have made the metric between BR2 and PE2 worse than the Metric between BR2 and BR1.
Is the AD not evaluated first?
The AD of eBGP is 20.
The ad of iBGP is 200.
The connection between BR2 and PE2 has an AD of 20 and a metric of 1. The connection between BR2 and BR1 has an AD of 200 and a metric of 0. The AD has precedence. so what we wanted to achieve has not been done yet.
Dear Lieutenant_MOG,
AD is compared between routing protocols like e.g. BGP<->OSPF.
Inside a routing process is working based on its algorithm like BGP works based on the path selection order. 7th: "Prefer eBGP over iBGP paths."
https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13753-25.html
So once a routing instance is provide a best path (like: BGP) of a prefix e.g. 1.1.1.0/30 for the route table AD is only compared when another routing protocol also provide the 1.1.1.0/30 as a best path (like: OSPF) for the routing table
I can confirm A worked for me. After changing the metric for the route on PE2, BR2 changed its ip route to go via BR1.
BR2#sh bgp ipv4 uni
Network Next Hop Metric LocPrf Weight Path
* 209.165.201.0/27 209.165.200.230 1 0 200 i
*>i 172.24.109.2 0 100 0 200 i
BR2#sh ip route 209.165.201.0
Routing entry for 209.165.201.0/27, 1 known subnets
B 209.165.201.0 [200/0] via 172.24.109.2, 00:08:00
A is the correct answer only if the comment bgp Always-compare-med is configured.
Synopsis
bgp always-compare-med
no bgp always-compare-med
Configures
BGP route selection
Default
Disabled
Description
This command allows the comparison of the multi-exit discriminator (MED) for paths, regardless of which autonomous system the path comes from.
MED is only applicable and useful when we are entering same AS. but here we have two different AS 200, 300 so none of the options are correct. FU$@ this question and person who made it.
A is not correct as for some people it may work who try in the lab and for others it might not.
always compare MED is needed as other have said.
B seems... correct, but weird
C only on local router
D local pref is only for the local AS...
Pretty silly question, imo.
The answer in this case is A ONLY if you put the bgp always-compare-med command in BR2.
A: RIGHT ONE
B: nope... remember that the origin code means this:
e: Exterior Gateway Protocol, you will never see this one 'cause it was the protocol before BGP.
i: network announced via the network command
?: network redistributed in BGP
So you they are saying that you need to put the origin code i for a BGP announce that for sure you are receiving via the network command,,,, Sounds bad right? It will not change nothing at all.
C: Nope the weight attribute is only for the local router, so not good.
D: Nope again, the local preference value can be propagated only to the local AS, so if they were saying to set the BGP local preference to 150 on BR1 in inbound direction it will be right but is not the case. (REMEBER: the LP is ONLY set in INBOUND DIRECTION!)
Let's try the B one in lab:
The configuration is the same as shown but of course i used the network command to announce the network 209.165.201.0/27, the topolgy is also the same.
BGP TABLE OF R2
BR2#show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 172.24.109.0/30 0.0.0.0 0 32768 i
* i 172.24.109.2 0 100 0 i
*> 209.165.201.0/27 209.165.200.230 0 0 300 i
* i 172.24.109.2 0 100 0 200 i
You see that the igp origin is set already..... BUT... let's try....
CONFIGURATION THAT YOU NEED TO APPLY TO BR2:
conf t
access-list 1 permit 209.165.201.0 0.0.0.31
route-map Oi2BR2
match ip address 1
set origin igp
route-map Oi2BR2 permit 20
end
conf t
router bgp 100
neighbor 209.165.200.230 route-map Oi2BR2 in
end
clear ip bgp * (in production will reset the TCP session so be careful! use "clear ip bgp * soft in" instead)
BR2#show ip bgp
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 172.24.109.0/30 0.0.0.0 0 32768 i
* i 172.24.109.2 0 100 0 i
*> 209.165.201.0/27 209.165.200.230 0 0 300 i
* i 172.24.109.2 0 100 0 200 i
AMAZING!!! absolutely nothing has changed...
Let's try with the right one (A):
Remember that the MED is an attribute that you can ONLY apply in outgoing direction so... We need to apply this config in PE2 in out direction.
CONFIG:
conf t
access-list 1 permit 209.165.201.0 0.0.0.31
route-map MEDchange2BR2 permit 10
match ip address 1
set metric 1
route-map MEDchange2BR2 permit 20
router bgp 300
neighbor 209.165.200.229 route-map MEDchange2BR2 out
For refresh the updates coming from PE2 in BR2 do the command clear ip bgp * soft in.
BR2#show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 172.24.109.0/30 0.0.0.0 0 32768 i
* i 172.24.109.2 0 100 0 i
*> 209.165.201.0/27 209.165.200.230 1 0 300 i
* i 172.24.109.2 0 100 0 200 i
You see that we still prefer the announce via PE2 because in this case the other AS IS NOT THE SAME!!! DO NOT GET CONFUSED!!!! Remember that the other announce is done by another AS!
Our next hop for sure is our ibgp neighbor, but the as that we need to reach is another so for let this happen we need to use this command in BR2 because he will compare the he is the one who compares all the bgp announcements:
BR2:
conf t
router bgp 100
bgp always-compare-med
BR2#show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 172.24.109.0/30 0.0.0.0 0 32768 i
* i 172.24.109.2 0 100 0 i
* 209.165.201.0/27 209.165.200.230 1 0 300 i
*>i 172.24.109.2 0 100 0 200 i
BR2#
Finally you see that we are installing in routing table the route via PE1 using BR1 as the next-hop.
I hope I was clear and that the examples helped.
See yaa
actually, this case is described here, see sec. #5
https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13753-25.html
and why MED "solution" is the wrong answer in this scenario (first AS nums are different) see next sec. #6
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Nickelkeep
Highly Voted 3 years, 8 months agoandy_doesnt_like_uucp
1 year, 1 month agorettich
Highly Voted 3 years, 2 months agoLalane
2 years, 6 months agorlilewis
2 years, 12 months agoandy_doesnt_like_uucp
1 year, 1 month agoAceRhino
3 years agoMartinID
Most Recent 7 months, 2 weeks agoHARDCCNP
7 months, 2 weeks agozbeugene7
7 months, 3 weeks agozbeugene7
7 months, 2 weeks agozbeugene7
7 months, 2 weeks agozbeugene7
7 months, 2 weeks agozbeugene7
7 months, 2 weeks ago[Removed]
11 months, 2 weeks agoandy_doesnt_like_uucp
1 year agoandy_doesnt_like_uucp
1 year, 1 month agoMarcinko
1 year, 1 month agoLieutentant_MOG
1 year agoMarcinko
1 year agodjedeen
1 year, 6 months agomsstanick
1 year, 11 months agosiyamak
1 year, 11 months agoHarwinderSekhon
1 year, 11 months agoCBlu
2 years, 2 months agoXBfoundX
2 years, 3 months agostraightAnswers
2 years, 1 month agoXBfoundX
2 years, 3 months agoXBfoundX
2 years, 3 months agoXBfoundX
2 years, 3 months agoXBfoundX
2 years, 3 months agoXBfoundX
2 years, 3 months agoStefanOT2
2 years, 3 months agonushadu
2 years, 4 months ago