Bitzu

JN0-106 ยท Routing policy

Import and export policies

Where import and export policies apply, their effect on the routing table, applying a policy, and checking results with show route receive-protocol and advertising-protocol.

Key points

  • Import policy: which routes a protocol places into the routing table.
  • Export policy: which routes from the routing table the protocol advertises.
  • Apply with import and export statements under the protocol (BGP: global, group or peer level).
  • show route receive-protocol bgp <neighbor>: routes as received, before import policy effects.
  • show route advertising-protocol bgp <neighbor>: routes as sent after export policy.

Source: https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/policy-protocol-support-import-export-policies.html

Practice questions

Single choice

Which kind of policy controls which routes a protocol installs into the routing table?

  1. Export policy
  2. Import policy
  3. Firewall filter
  4. Forwarding-table policy only
Show answer

Answer: B. Import policy

Import policies govern what enters the routing table from a protocol. Export policies govern what is advertised out of the routing table by a protocol.

Select all that apply

At which levels can BGP import and export policies be applied?

  1. Global BGP level
  2. BGP group level
  3. BGP peer (neighbor) level
  4. Logical interface level
  5. Firewall filter level
Show answer

Answer: A. Global BGP level, B. BGP group level, C. BGP peer (neighbor) level

BGP supports import and export policies at the global, group and peer (neighbor) levels. Interfaces and firewall filters are different mechanisms and are not attachment points for BGP routing policy.

True or false

The output of show route receive-protocol bgp shows the effect of your import policy on the route attributes.

Show answer

Answer: False

False. That output shows routes as they were received from the neighbor and does not reflect import policy changes to the attributes. Use show route to see the result in the routing table.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More JN0-106 topics in this module