exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 200 discussion

Actual exam question from Cisco's 350-401
Question #: 200
Topic #: 1
[All 350-401 Questions]


Refer to the exhibit. Which configuration change will force BR2 to reach 209.165.201.0/27 via BR1?

  • A. Set the MED to 1 on PE2 toward BR2 outbound.
  • B. Set the origin to igp on BR2 toward PE2 inbound.
  • C. Set the weight attribute to 65,535 on BR1 toward PE1.
  • D. Set the local preference to 150 on PE1 toward BR1 outbound.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Nickelkeep
Highly Voted 3 years, 8 months ago
The correct answer is A.
upvoted 24 times
andy_doesnt_like_uucp
1 year, 1 month ago
no way
upvoted 2 times
...
...
rettich
Highly Voted 3 years, 2 months ago
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
upvoted 22 times
Lalane
2 years, 6 months ago
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
upvoted 6 times
...
rlilewis
2 years, 12 months ago
The path IS the same because its IBGP on the left side. So the answer is A.
upvoted 2 times
andy_doesnt_like_uucp
1 year, 1 month ago
really? :0D
upvoted 1 times
...
...
AceRhino
3 years ago
Agree (also tested for my peace of mind).
upvoted 2 times
...
...
MartinID
Most Recent 7 months, 2 weeks ago
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.
upvoted 2 times
...
HARDCCNP
7 months, 2 weeks ago
Option A would continue to prefer BR2>PE2. The lower the MED, the better.
upvoted 1 times
...
zbeugene7
7 months, 3 weeks ago
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}
upvoted 2 times
zbeugene7
7 months, 2 weeks ago
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
upvoted 1 times
zbeugene7
7 months, 2 weeks ago
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
upvoted 1 times
zbeugene7
7 months, 2 weeks ago
R4(config)#no route-map SET-MED R4(config)#route-map SET_MED PE2(config-route-map)# PE2(config-route-map)#EXIT PE2(config)#no route-map SET_MED PE2(config)#route-map SEET-MAP permit 10 PE2(config-route-map)#set metric 150 PE2(config-route-map)#exit PE2(config)#exit
upvoted 1 times
zbeugene7
7 months, 2 weeks ago
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
upvoted 1 times
...
...
...
...
...
[Removed]
11 months, 2 weeks ago
Selected Answer: A
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.
upvoted 3 times
...
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
upvoted 1 times
...
andy_doesnt_like_uucp
1 year, 1 month ago
neither A is correct :0|
upvoted 2 times
...
Marcinko
1 year, 1 month ago
Selected Answer: A
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
upvoted 2 times
Lieutentant_MOG
1 year ago
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.
upvoted 1 times
Marcinko
1 year ago
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
upvoted 1 times
...
...
...
djedeen
1 year, 6 months ago
Selected Answer: A
A. D is incorrect because the ASes are different on the PE2 so this rules out MED.
upvoted 2 times
...
msstanick
1 year, 11 months ago
Selected Answer: A
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
upvoted 3 times
...
siyamak
1 year, 11 months ago
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.
upvoted 3 times
...
HarwinderSekhon
1 year, 11 months ago
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.
upvoted 7 times
...
CBlu
2 years, 2 months ago
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.
upvoted 2 times
...
XBfoundX
2 years, 3 months ago
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!)
upvoted 1 times
straightAnswers
2 years, 1 month ago
XBFoundX, to adding your information. LP can influence Inbound direction from any BGP Peer and also Outbound for iBGP peers only.
upvoted 1 times
...
XBfoundX
2 years, 3 months ago
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....
upvoted 1 times
XBfoundX
2 years, 3 months ago
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...
upvoted 1 times
XBfoundX
2 years, 3 months ago
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
upvoted 2 times
XBfoundX
2 years, 3 months ago
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!
upvoted 2 times
XBfoundX
2 years, 3 months ago
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
upvoted 5 times
...
...
...
...
...
...
StefanOT2
2 years, 3 months ago
Selected Answer: B
Answer B A is wrong. MED is only used when the first hop on the AS Path is identical. In this case, this is not true.
upvoted 1 times
...
nushadu
2 years, 4 months ago
Selected Answer: B
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
upvoted 1 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago