BGP Flashcards

(15 cards)

1
Q

RIBs

A

Routes are stored in Routing information Bases

RIB-in:
Routing information learned from inbound update messages
Contains unprocessed routing info advertised to the local BGP speaker by its peers

Local RIB:
Routing info the the BGP speaker selects after applying its local policies to the RIB-in

RIB-out:
Routing info that the local BGP speaker selects to advertise to its peers

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

BGP Attributes

A

Well-known mandatory. (Origin, AS_PATH, NEXT_HOP)

Well-know discretionary (optional) (LOCAL_PREF, ATOMIC_AGGREGATE)

Optional transitive - optional and can be passed outside of the local AS (AGGREGATOR, COMMUNITY)

Optional non-transitive:
optional and can NOT be passed outside of the local AS (MULTI_EXIT_DISC)

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

BGP Route Selection Tie Breakers

A
  1. Highest Weight
  2. Highest local preference
  3. Route originated by the local router (next hop = 0.0.0.0)
  4. Shortest AS path
  5. Lowest origin type
  6. Lowest multi-exit discriminator (MED)
  7. Prefer external paths (EBGP) over internal paths (IBGP)
  8. Path through closest IGP neighbor
  9. Oldest route for EBGP paths
  10. Lowest neighbor BGP router ID
  11. Lowest neighbor IP address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

BGP states

A

Idle: Initial State
Connect: Waiting for a successful three-way TCP connection
Active: Unable to establish TCP session
OpenSent: Waiting for an OPEN message from the peer
OpenConfirm: Waiting for the keepalive message from the peer
Established: Peers have successfully exchanged OPEN and keepalive messages

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

BGP summary command

A

get router info bgp summary

Columns-

AS - Remote AS

MsgRcvd and MsgSent - Packet count received/sent

Up/Down - How long the connection has been up

State/PfxRcd - Neighbor state and prefixers received

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

BGP neighbors command

A

get router info bgp neighbors

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

Command to see prefixes advertised by local FGT

A

get router info bgp neighbors (local IP address) advertised-routes

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

Command to see prefixes advertised by Neighbor

A

get router info bgp neighbors (neighbor IP) route

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

Command to show prefixes by All BGP Peers

A

get router info bgp network

Origin codes -

i = IBGP, indicates the network command was used to advertise a route.

? = incomplete, indicates the the route was advertised from another routing protocol using redistribution

e = EBGP, legacy route advertisement

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

BGP event logging

A

enabled by default:
config router bgp
set log-neighbour-change enable | disable
end

Shows these events:
Neighbor down/up
RIB update
BGP message exchange
Errors connecting to neighbors

can be seen in GUI under Log & Report > System Events > Router Events

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

Port for BGP

A

TCP/179

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

Real-time Debug command for BGP

A

diagnose ip router bgp all enable
diagnose ip router bgp level info
diagnose debug enable

to disable:
diagnose ip router bgp all disable
diagnose ip router bgp level none
diagnose debug enable

diagnose debug reset does NOT stop BGP bebug

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

Restart BGP commands

A

execute router clear bgp (options)

all (arguments)
in
in prefix-filter
out
-These resets BGP process and requires FGT to establish BGP peering again

soft (in|out) - Resends complete BGP table

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

network-import-check

A

can disable, that allows FortiOS to advertise falsely configured routes (not recommended)

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

T or F: Prefix list rules are all inspected unlike firewall policies

A

True

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