BGP Flashcards

1
Q

What are BGP - Optional Transitive attributes and what does that mean?

A

BGP speakers may or may not recognize the attribute. If transitive bit is set, BGP will pass these attributes along and mark them as “partial”.

• COMMUNITY
• AGGREGATOR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

BGP - Well-Known Mandatory

A

MUST be recognized by ALL BPG speakers AND MUST be included in Update messages

• AS_PATH
• ORIGIN
• NEXT_HOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

BGP - Well-Known Discretionary

A

MUST be recognized by ALL BGP speakers, but may or may not be sent in Update messages.

• LOCAL_PREF
• Atomic Aggregate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

BGP Communities

A

blah

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

BGP - Optional Non-Transitive

A

if the Transitive Bit is NOT set, the attribute will be ignored and NOT passed along to other BGP speakers:

• MED
• ORIGINATOR_ID
• CLUSTER_LIST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

BGP - Best Path Algorithm ( we love oranges as oranges mean pure refreshment)

A
  1. Prefer the path with the highest WEIGHT. (Cisco Proprietary)
  2. Prefer the path with the highest LOCAL_PREF.
  3. Prefer the path that was locally originated (via a network or aggregate BGP subcommand or through redistribution from an IGP).
  4. Prefer the path with the shortest AS_PATH.
  5. Prefer the path with the lowest origin type. (IGP > EGP > Incomplete)
  6. Prefer the path with the lowest multi-exit discriminator (MED).
  7. Prefer eBGP over iBGP paths.
  8. Prefer the path with the lowest IGP metric to the BGP next hop. (Continue, even if bestpath is already selected.)
  9. Determine if multiple paths require installation in the routing table for BGP Multipath. (Continue, if bestpath is not yet selected.)
  10. When both paths are external, prefer the path that was received first (the oldest one).
  11. Prefer the route that comes from the BGP router with the lowest router ID.
  12. If the originator or router ID is the same for multiple paths, prefer the path with the minimum cluster list length.
  13. Prefer the path that comes from the lowest neighbor address.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

List the 4 categories for BGP attributes

A
  • Well-known mandatory
  • Well-known discretionary
  • Optional transitive
  • Optional nontransitive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Private AS BGP Range

A

AS 64512 to AS 65535

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Weight Attribute

A
  • Cisco Proprietary
  • 1st in BGP algorithm
  • Locally significant
  • Influenced by updating received NLRI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

iBPG Peering Rules - BGP Split Horizon rule

A

an iBGP peer can send NLRI to EXTERNAL peers, but CANNOT send NLRI to other iBGP peers. This is called the .

This is a loop prevention mechanism.

Exceptions include:
Route Reflection
Confederations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can BGP peer with a neighbor that’s not in it’s routing table?

A

No.

And a default route DOES NOT count. BGP must have IP reach-ability outside of a default route to establish a peer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How is BGP Router-ID chosen?

A
  1. bgp router-id x.x.x.x command
  2. Highest numeric IP of any UP loopback interface.
  3. Highest numeric IP of any physical interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Do eBGP peers have to be directly connected? Why or why not?

A

Yes, eBGP neighbors have to be directly connected because eBGP uses a TTL of 1 by default.

You can increase the TTL with the ‘ebgp-multihop x’ command.

You can also use ‘disable-connected-check’ if the peer IP is on a directly connected router, but not on the directly connected link.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Do iBGP peers have to be directly connected?

A

No.

iBGP peers do NOT have to be directly connected to establish peering.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

BGP State - Idle

A

The BGP process is either administratively down or awaiting the next retry attempt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

BGP State - Connect

A

The BGP process has detected an incoming TCP connection request and is waiting for the TCP connection to be completed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

BGP State - Active

A

BGP has initiated an outbound TCP connection request and is waiting for the 3-way handshake to complete. BGP can enter this state either because:

  1. My router was the first router to initiate a connection (from Idle-to-Active)
  2. My router received an initial, inbound connection request that failed to complete the TCP handshake (Idle-Connect-Active)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

BGP State - Open Sent

A

The TCP handshake was successful, and a BGP Open message has been sent to the peer, but the matching Open message has not yet been received yet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

BGP State - Open Confirm

A

A BGP Open message has been both sent to and received from the other router.

20
Q

Does an advertising eBGP Neighbor change the next hop address for an advertisement?

What about an advertising iBGP neighbor?

A

• eBGP: next-hop IP address is changed by the advertising
router.
• iBGP: next-hop IP address is not changed by the
advertising router (configurable)

21
Q

What is BGPs Loop Prevention Mechanism?

A

AS PATH

22
Q

What are the states in the BGP Finite State Machine?

A

Idle
Connect
Active
OpenSent
OpenConfirm
Established

23
Q

Adj-RIBs-In contains what kind of BGP routing information?

Processed or unprocessed?
How many Adj-RIBs-In are there?
How to see it? (command)

A

contains unprocessed received BGP routing information
» One (1) per neighbor/peer
» The BGP Best Path Selection Algorithm uses
the information in this table to determine “the
best” route
» Can be seen with the command:
• show ip bgp neighbor x.x.x.x received-routes
• show bgp ipv4 unicast neighbor x.x.x.x received-routes

24
Q

Adj-RIBs-Out contains what kind of BGP routing information?

Processed or unprocessed?
How many Adj-RIBs-Out are there?
How to see it? (command)

A

contains all the
processed outgoing BGP routing
information
» One (1) per neighbor
» Can be seen by running commands:
• show ip bgp neighbor x.x.x.x advertised-routes
• show bgp ipv4 uni neighbor x.x.x.x advertised-routes

25
Q

Basic eBGP Config

A

conf t
router bgp 100
neighbor x.x.x.x remote-as 1414
neighbor x.x.x.x ebgp-multihop 2
neighbor x.x.x.x update-source lo5

26
Q

local-as 65526 no-prepend replace-as –>

A

local-as 65526 no-prepend replace-as what is this?

27
Q

READ ME:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16/irg-xe-16-book/configuring-a-basic-bgp-network.html

A

READ ME:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16/irg-xe-16-book/configuring-a-basic-bgp-network.html

28
Q

iBGP Full Mesh Link Equation

A

N*(N-1)/2

29
Q

What is the purpose of Next Hop Self?

A

iBGP does not change NEXT_HOP on NLRI by default

Ensures that eBGP-learned information has the NEXT_HOP value updated.

Not required on all iBGP peers, only the peer that’s learning routes from eBGP neighbors

command:
neighbor 7.7.7.7 next-hop-self

30
Q

Can BGP establish a peering using a default route?

A

NO. BGP cannot establish a peer using a default route.. Must have specific route from IGP or static.

31
Q

What are BGP filtering options with Distribute List?

A

Standard or Extended ACLs

32
Q

What are BGP filtering options with Filter List?

A

AS-PATH ACL

33
Q

Why use a Route-Map

A

To manipulate the Path Attribute of NLRI

34
Q

What are BGP filtering options with Prefix Lists?

A

Used by themselves or with Route Maps

35
Q

Prefix List Examples

A

• ip prefix-list PL permit 192.168.1.0/24 le 28
• ip prefix-list PL permit 10.0.0.0/8 le 16
• ip prefix-list PL permit 172.16.0.0/16 ge 24
• Ip prefix-list PL permit 192.168.1.0/24 ge 27 le 28
• ip prefix-list PL permit 0.0.0.0/0 le 32 (match errthing)
• ip prefix-list PL permit 0.0.0.0/0 (match default route)
» THERE IS AN IMPLICIT “deny all” at the end of every prefix list

36
Q

Prefix-List Syntax

A

ip prefix-list PL_NAME seq 20 deny/permit x.x.x.x le blah

37
Q

Route-Map Syntax

A

route-map ROUTE_MAP_NAME deny/permit 10

38
Q

What makes up a VPC Domain?

A

Peer-Link
Keepalive
member ports
ophan ports
peer switch

39
Q

Local Preference influences traffic flow in which direction? (Inbound or Outbound)

Is it local pref passed to eBGP peers? How about iBGP peers?

A

Outbound.

Not passed to eBGP, but is passed to all iBGP peers.

40
Q

BGP Nmeonic

A

We Love Oranges AS Oranges Mean Pure Refreshment”

41
Q

Which direction does Weight influence traffic?

A

Outbound, so route-map needs to be set inbound

42
Q

which direction does AS_PATH influence traffic?

A

Inbound so policy needs to be applied outbound to peers

43
Q

Which direction does MED influence traffic?

A

Tell neighbor preferred inbound path. Specifically 2 eBGP peers in the same AS.

44
Q

what is ORIGINATOR_ID?

A

Used to identify the source of an update within a route reflector cluster. Loop prevention in a single RR cluster.

iBGP ONLY.

45
Q

What is CLUSTER_LIST

A

Contains a list of cluster IDs. Loop prevention between clusters. Similar to AS_PATH in eBGP.

iBGP ONLY.

46
Q

BGP Communities

A

blah