BGP Flashcards

1
Q

AS numbers main purpose

A

To determine the best path to a prefix

To prevent routing loops between ASs

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

Private BGP AS number range

A

64512 to 65534

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

BGP peers communicate over which TCP Port

A

TCP port 179

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

BGP Session States

A

Idle: Tries to initiate a TCP session with its peer

Connect: Router with the highest ip address manages the connection state

Active: The router with the highest ip (The active router) initiates another TCP connection with the Passive router

OpenSent: Peers begin performing some BGP specific sanity checks

OpenConfirm: The peers wait to receive a keepalive message.

Established: After each peer receives a keepalive

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

Keepalive Message Time and Hold Time

A

60 seconds. Hold Time is 180 seconds

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

(*) Asterisk Indication in the BGP Table

A

Indicates the next-hop address is reachable. This means that the IP routing table has the route to reach the next hop.

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

The greater-than symbol (>)

A

Indicates the best path. BGP only advertises the best path to its peers.

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

Weight

A

Control which route is chosen as the best path. Locally significant. The default is 0 and 32,768 for self-generated routes. A higher weight is preferred.

Weight in show ip bgp

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

Local Preference

A

Influences the path traffic takes to prefixes outside an AS. The default value for local preference is 100. A higher local preference is preferred.

LocPrf in show ip bgp

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

Originate

A

Paths sourced locally are preferred.

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

AS Path Length

A

The number of autonomous systems in the AS_Path path attribute. Lower AS path lengths are preferred.

Path in show ip bgp

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

Origin Type

A

Indicates how BGP learned the route. Incomplete and a (?) means the source prefix was redistributed.

IGP (i) preferred over Incomplete (?)

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

Multi-Exit Discriminator (MED)

A

Reversal of the local preference. Influences how traffic ingresses an AS. A lower MED is preferred.

Metric in show ip bgp

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

Paths

A

eBGP routes take preference over iBGP routes. eBGP routes have an AD of 20, where iBGP routes have an AD of 200.

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

Oldest Route

A

BGP prefers the oldest installed route. It will hold onto the existing installed route as the best path

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

r for RIB failure

A

(r) indicates the BGP wasnt able to install the route in the routing table

17
Q

BGP Redistribution

A

BGP in OSPF
R1(config)# router ospf 1
R1(config-router)# redistribute bgp 65001 subnets

BGP in EIGRP
R4(config)# router eigrp 100
R4(config-router)# redistribute bgp 65004 metric 100000 1 255 1 1500

18
Q

Modifying Weight

A

ISP(config)# router bgp 65550
ISP(config-router)# neighbor 203.0.113.1 weight 100

The default weight is 0

19
Q

Advertising Summary Routes

A

Use Route Aggregation

R1(config)# router bgp 65001
R1(config-router)# aggregate-address 10.0.0.0 255.255.0.0 summary-only

20
Q

Component Routes

A

Marked with an (s) for suppressed. Component routes are suppressed. They still exist in the RIB and IP routing table but prefixes are not advertised.

21
Q

Route-Map

A

Have a default deny behavior like ACLs. Use an ip prefix-list

ip prefix-list R4-summary permit 10.0.32.0/19
ip prefix-list R4-summary permit 10.0.23.0/29
ip prefix-list R4-summary deny 0.0.0.0/0 le 32

ISP(config)# route-map R4 deny 10
route-map R4 permit 20
ISP(config-route-map)# match ip address prefix-list R4-summary

ISP(config)# router bgp 65550
ISP(config-router)# neighbor 198.51.100.1 route-map in

set weight 101 gives routes in the route map a higher weight

22
Q

BGP Neighbor Authentication

A

R1(config)#router bgp 65001

R1(config-router)#neighbor 198.51.100.1 password cisco123

23
Q

Router ID

A

A tie-breaker, where the route received from a router with the lowest router ID is preferred.