BGP Flashcards

1
Q

What is the command to show the summary of BGP running on a router?

A

Router1# show ip bgp summary

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

What is meant by a well-known BGP attribute?

A

This means that it is an industry standard according to RFC 4271 and that all routers that run BGP will have these attributes.

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

What are the three well-known, mandatory BGP path attributes?

A

1.) AS-Path
2.) Next-Hop
3.) Origin

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

What are the two well-known, discretionary BGP path attributes?

A

1.) Local Preference
2.) Atomic Aggregate

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

What is meant by a BGP attribute that is transitive?

A

It means that the router will pass the attribute along to another router if received, even if that router does not support the attribute.

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

What is meant by a BGP attribute that is optional?

A

The attribute is not compliant with RFC 4271 industry standard.

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

What types of simple messages do BGP routers send to each other?

A

Open, Keepalive, Update, Notification

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

What are the 6 progressive states of BGP peering?

A

Idle
Connect
Active
OpenSent
OpenConfirm
Established

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

Briefly describe what is happening in each of the BGP peering states

A

Idle - nothing is going on. Could mean a neighbor relationship has failed and returned to Idle

Connect - a TCP three way handshake has been sent.

Active - the BGP router is actively trying to create a neighbor relationship

OpenSent - an “Open” message has been sent and awaiting a confirmation message

OpenConfirm - a BGP neighbor has sent back an OpenConfirm message

Established - a BGP neighbor relationship has been formed.

NOTE: You will not see OpenSent, Open Confirm, or Established when trying to view BGP neighbor states.

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

What is the Cisco BGP Best Path Algorithm in order of attribute preference?

A
  1. Weight
  2. Local Preference
  3. Locally Originated
  4. Accumulated IGP (AIGP)
  5. Shortest AS-Path
  6. Origin Type
  7. Lowest Multi-Exit Discriminator (MED/Metric)
  8. eBGP over iBGP
  9. Oldest Route
  10. Lower Peer Router-ID (RID)
  11. Lowest Cluster List Length
  12. Lowest Next Hop Address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command shows the BGP routing table?

A

Router# show ip bgp

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

What command would you use to see bgp neighbor information?

A

Router# show ip bgp summary

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

What command(s) might you need to ensure that an iBGP neighbor gets a BGP route into its routing table?

A

Router(config)# router bgp <AS>
Router(config-router)# neighbor <ip> remote-as <AS>
Router(config-router)# neighbor <ip> next-hop-self</ip></AS></ip></AS>

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

What command would you use to ‘reset’ all bgp neighbors? Why do you need to be careful about using that command?

A

Router# clear ip bgp *

This command will break all connections to BGP peers until the neighbor states are reestablished.

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

What is the command you would use to see all the routes being sent out from the router you are on?

A

Router1# show ip bgp neighbors <ip> advertised-routes</ip>

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

When looking at a BGP routes table, what does an asterisk (*) in front of the route mean?

A

The route is valid

17
Q

When looking at a BGP routes table, what does a sideways carat (>) in front of the route mean?

A

This is the best route for this network

18
Q

What command(s) would you use to do a route summary for all network advertisements in the 199.88.77.0 /24 range of addresses?

A

Router(config)# router bgp <AS>
Router(config-router)# aggregate-address 199.88.77.0 255.255.255.0 summary-only</AS>

NOTE: on some versions of IOS you need to use the address-family ipv4 command first

19
Q

Define ASBR

A

Autonomous System Boundary Router - a type of router that runs multiple interior gateway protocols and serves as a gateway to other autonomous systems operating with interior gateway protocols.

20
Q

What are the steps to configure an iBGP peer relationship between Router1 and Router2?

A

Router1(config)# router bgp 60001
- (where 60001 is the AS number)
Router1(config-router)# bgp router-id 1.1.1.1
Router1(config-router)# neighbor 200.0.0.2 remote-as 60001
Router1(config-router)#neighbor 200.0.0.2 next-hop-self

Router2(config)# router bgp 60001
Router2(config-router)# bgp router-id 2.2.2.2
Router2(config-router)# neighbor 200.0.0.1 remote-as 60001
Router1(config-router)# network 201.0.2.0 mask 255.255.255.0

21
Q

What general steps are needed to create route filters for BGP route distribution?

A
  1. Create a Access-list to “permit” or capture the network that needs to be filtered
  2. Create a route-map and ‘match ip address’ of the ACL created
  3. Under BGP config mode, use the redistribute command to target the routing protocol and route-map
22
Q

Describe the specific steps to redistribute OSPF routes into BGP and vice versa

A

FISH1(config)# ip access-list extended OSPF_ROUTES

FISH1(config-ext-nacl)# permit ip 203.0.113.0 0.0.0.255 any

FISH1(config-ext-nacl)# deny ip any any

FISH1(config)# route-map OSPF_FILTER

FISH1(config-route-map)# match ip address OSPF_ROUTES

FISH1(config)# router bgp 64777

FISH1(config-router)# redistribute ospf 1 route-map OSPF_FILTER

FISH1(config)# ip access-list extended BGP_ROUTES

FISH1(config-ext-nacl)# permit ip 1.0.0.0 0.0.0.255 any

FISH1(config-ext-nacl)# deny ip any any

FISH1(config)# route-map BGP_FILTER

FISH1(config-route-map)# match ip address BGP_ROUTES

FISH1(config)# router ospf 1

FISH1(config-router)# redistribute bgp 64777 subnets route-map BGP_FILTER metric 50