nerdexam
Cisco

350-501 · Question #35

Refer to the exhibit. A network engineer is implementing a BGP routing policy. Which effect of this configuration is true?

The correct answer is A. All traffic that matches acl10 is allowed without any change to its local-preference. In Cisco IOS XR route-policy, an explicit set local-preference command within an if block, without a subsequent pass or accept action, will result in the matched traffic being allowed but without the local-preference change being applied.

Networking

Question

Refer to the exhibit. A network engineer is implementing a BGP routing policy. Which effect of this configuration is true?

Exhibit

350-501 question #35 exhibit

Options

  • AAll traffic that matches acl10 is allowed without any change to its local-preference
  • BAll traffic that matches acl10 is dropped without any change to its local-preference
  • CIf traffic matches acl10, it is allowed and its local-preference is set to 300
  • DAll traffic is assigned a local-preference of 30O regardless of its destination

How the community answered

(24 responses)
  • A
    71% (17)
  • B
    8% (2)
  • C
    17% (4)
  • D
    4% (1)

Why each option

In Cisco IOS XR route-policy, an explicit `set local-preference` command within an `if` block, without a subsequent `pass` or `accept` action, will result in the matched traffic being allowed but without the `local-preference` change being applied.

AAll traffic that matches acl10 is allowed without any change to its local-preferenceCorrect

In Cisco IOS XR's route-policy language, if a `set` action like `set local-preference 300` is performed within an `if` condition and no explicit `pass` or `accept` action follows, the `set` action itself does not cause the policy to commit the change. The route will be implicitly passed by the policy's default behavior, but the local-preference value will not be modified.

BAll traffic that matches acl10 is dropped without any change to its local-preference

The policy implicitly allows routes that match the `if` condition when no explicit `drop` is specified, so traffic will not be dropped.

CIf traffic matches acl10, it is allowed and its local-preference is set to 300

This is incorrect because, without an explicit `pass` or `accept` command after the `set local-preference 300`, the `local-preference` value is not actually applied to the routes, even though they match the `acl10` condition.

DAll traffic is assigned a local-preference of 30O regardless of its destination

The `set local-preference 300` action is conditioned on traffic matching `acl10`; therefore, it will not be applied to all traffic regardless of its destination.

Concept tested: IOS XR route-policy 'set' action behavior

Source: https://www.cisco.com/c/en/us/td/docs/iosxr/asr9000/routing/611/b-routing-611-asr9k-cg/b-routing-611-asr9k-cg_chapter_0100.html

Topics

#BGP#Route-map#Local-preference#Routing Policy

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice