Export Policy for BGP Neighbor - JN0-360 Exam | Juniper Networks Certified Internet Specialist

Viewing Export Policy for BGP Neighbor

Prev Question Next Question

Question

Which two commands would you use to see the export policy that has been applied to a BGP neighbor? (choose two.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

AC

The correct answers are A. show bgp neighbor and C. show bgp group.

Here's a detailed explanation of each command:

A. show bgp neighbor - This command displays information about a specific BGP neighbor, including the export policy that has been applied to it. The output of this command includes a section called "Export policies" that lists the policies that are applied to the neighbor. For example:

css
user@router> show bgp neighbor 192.0.2.1 Peer: 192.0.2.1+179 AS 65001 Local: 203.0.113.1+179 AS 65000 Type: External State: Established Flags: <Sync> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Export policies: policy1 policy2 Options: <Preference PeerAS Refresh> Holdtime: 90 Preference: 170 Number of flaps: 0

In the example above, the export policies applied to the neighbor are "policy1" and "policy2".

C. show bgp group - This command displays information about a BGP group, which is a group of BGP neighbors that share common configuration parameters. The output of this command includes a section called "Export policies" that lists the policies that are applied to all neighbors in the group. For example:

css
user@router> show bgp group ibgp Group: ibgp Type: Internal AS: 65000 Local AS: 65000 Description: Internal BGP Group Export policies: policy1 policy2 Import policies: policy3 policy4 Local address: 203.0.113.1 Holdtime: 30 Preference: 170 Number of peers: 3

In the example above, the export policies applied to all neighbors in the "ibgp" group are "policy1" and "policy2".

B. show bgp summary - This command displays a summary of BGP information, including the status of BGP neighbors and the number of prefixes received from each neighbor. However, it does not display information about export policies.

D. show bgp policy - This command displays information about BGP policies configured on the router, but it does not show which policies are applied to specific neighbors or groups.