Ch 7 - Fundamental OSPF Concepts Flashcards

1
Q

A router has been configured with the commands router ospf 9, network 172.16.1.0 0.0.0.255 area 8 and network 172.16.0.0 0.0.255.255 area 9, in that order. No other OSPF-related commands have been configured. The answers list the IP addresses that could be assigned to this router’s Fa0/0 interface. Which answers list an IP address/prefix length that would cause the router to put Fa0/0 into area 9? (Choose two.)

a. 172.16.0.1/23
b. 172.16.1.1/26
c. 172.16.1.1/24
d. 172.16.0.255/23
e. None of the other answers is correct.

A

A and D. The wildcard mask is used for matching the prefix only, and not the prefix length. As such, 172.16.1.0 0.0.0.255 matches all addresses that begin with 172.16.1, and 172.16.0.0 0.0.255.255 matches all addresses that begin 172.16. Also, OSPF reviews the network command with the most specific wildcard masks (wildcard masks with the most binary 0s) first, so an interface IP address beginning with 172.16.1 matches the command that references area 8.

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

Which of the following is true about an OSPF area border router (ABR)?

a. The ABR must have multiple interfaces connected to the backbone area.
b. An ABR is a router with two interfaces, each connected to a different non-backbone area.
c. The only requirement to be considered an ABR is at least one interface connected to the backbone area.
d. An ABR must have at least one interface in the backbone area plus at least one other interface in a non-backbone area.

A

D. ABRs, by definition, connect the backbone area to one or more nonbackbone areas. To perform this function, a router must have at least one interface assigned to the backbone area and at least one interface assigned to a nonbackbone area.

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

Which of the following can either directly or indirectly identify all the interfaces for which 1) OSPF has been enabled and 2) OSPF is not passive? (Choose two.)

a. show ip ospf database
b. show ip ospf interface brief
c. show ip protocols
d. show ip route ospf
e. show ip ospf neighbors

A

B and C. First, for the two correct answers: show ip ospf interface brief explicitly lists all OSPF-enabled interfaces that are not passive. show ip protocols lists either the details of the configured network commands, or if configured using the ip ospf area command, it lists the interfaces on which OSPF is enabled. This command also lists the passive interfaces, so armed with interface IP address information, the list of OSPF-enabled non-passive interfaces could be derived.

Of the three wrong answers, show ip ospf database does not list enough detail to show the OSPF-enabled interfaces. show ip route ospf lists only routes learned with OSPF, so if no routes usea particular OSPF-enabled interface as an outgoing interface, this command would not indirectly identify the interface. Finally, an interface might be OSPF-enabled but with no neighbors reachable on the interface, so the show ip ospf neighbor command might not identify all OSPF-enabled interfaces.

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

Router R1 directly connects to subnet 10.1.1.0/24 with its Fa0/0 interface. R1 can ping four other working OSPF routers in that subnet. R1 is neither the designated router (DR) nor backup DR (BDR). OSPF is working correctly on all five routers. Which of the following are true on R1? (Choose two.)

a. The show ip ospf neighbors command lists two neighbors off Fa0/0.
b. The show ip ospf neighbors command lists four neighbors off Fa0/0.
c. The show ip ospf neighbors command lists two neighbors off Fa0/0 in the FULL state.
d. The show ip ospf neighbors command lists two neighbors off Fa0/0 in the DISCO state.

A

B and C. On a LAN, the non-DRs form fully adjacent neighborships with only the DR and BDR, giving R1 two neighbors in the FULL state. The other two neighbors settle into the 2-Way state.

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

Routers R1 and R2 are OSPF neighbors using their Fa0/0 interfaces, respectively, using default settings for all timers. An engineer adds the ip ospf hello-interval 6 command to R1’s Fa0/0 configuration. Which of the following are true regarding the results from this change? (Choose two.)

a. The show ip ospf neighbor command on R1 lists the revised Hello timer.
b. The show ip ospf interface brief command on R1 lists the revised Hello timer.
c. The R1-R2 neighborship fails because of Hello timer mismatch.
d. The show ip ospf interface command on R1 lists the revised Hello timer.

A

C and D. The show ip ospf interface command displays a router’s OSPF Hello Interval setting for each enabled interface. The other listed commands do not display the timer. Also, OSPF routers do need to have matching Hello timers to become neighbors, so the neighborship would fail.

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

Which of the following settings do not prevent two potential OSPF neighbors from becoming neighbors?

a. The interface used to connect to that neighbor being passive in the OSPF process
b. Duplicate OSPF router IDs
c. Mismatched Dead timers
d. IP addresses of 10.1.1.1/24 and 10.2.2.2/24
e. Mismatched OSPF process IDs

A

E. Table 7-5 in Chapter 7 lists the issues. For OSPF, Router IDs must be unique,
the interfaces must not be passive, the dead timers must match, and the primary IP addresses must be in the same subnet, with the same subnet mask. However, the process IDs, found in the router ospf process-id command, do not have to match.

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

A company has a Frame Relay WAN with one central-site router and 100 branch office routers. A partial mesh of PVCs exists: one PVC between the central site and each of the 100 branch routers. All routers use point-to-point sub-interfaces and one subnet per PVC. Which of the following is true about OSPF in this design?

a. The central-site router has 100 fully adjacent neighborships with the 100 branches.
b. The central-site router has neighborships with all branch routers, but fully adjacent neighborships with only two branches.
c. The central-site router has a neighborship with the Frame Relay switch.
d. None of the other answers is correct.

A

A. Frame Relay is a Layer 2 service and as such does not participate in customer routing protocols. Because the design uses a separate subnet per PVC, and one point-to-point subinterface per PVC/subnet, OSPF will use a point-to-point network type. That means that the two routers on either end of a PVC will become neighbors, and become fully adjacent, meaning that the central-site router will have 100 fully adjacent neighborships.

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

Which of the following answers can be verified as true based on the following com-
mand output from Router R1?
R1# show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 4.4.4.4 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 1, via interface FastEthernet0/1, Cost of using 3?
a. R1 is configured with an area 0 virtual-link 4.4.4.4 cost 3 command.
b. The ping 4.4.4.4 command on R1 must currently be successful.
c. R1’s Fa0/1 OSPF cost is 3.
d. 4.4.4.4 is known to R1 based on a Type 1 LSA in area 1.

A

D. The answer with area 0 virtual-link 4.4.4.4 cost 3 is incorrect, because the show command output lists a transit area of 1, but the answer’s area parameter refers to area 0 as the transit area. (There is also no cost parameter on the area virtual-link command.) The RID of the router on the other end of the virtual link, 4.4.4.4 per the show command output, does not have to be pingable for the virtual link to work. The cost of the virtual link is 3, but that cost is calculated as the cost to reach the other router through the transit area, so the command output listed with the question cannot be used to predict Fa0/1’s OSPF interface cost alone. However, because the output lists area 1 as the transit area, and because the neighbor RID is listed as 4.4.4.4, R1 will use the area 1 LSDB entries to calculate the cost to reach 4.4.4, a process that will include the area 1 Type 1 LSA for RID 4.4.4.4.

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

Several links have been broken so that for the next day or two, what was formerly a contiguous area 0 has been broken into two parts. However, both parts of area 0 have working links into area 1 using routers with RID 1.1.1.1 and 2.2.2.2. Which answer lists the command on the router with RID 1.1.1.1 to create a virtual link to help solve this temporary problem?

a. area 0 virtual-link 2.2.2.2
b. area 1 virtual-link 2.2.2.2
c. area 0 source-rid 1.1.1.1 dest-rid 2.2.2.2
d. virtual-link transit-area 1 RID 2.2.2.2

A

B. The area virtual-link command defines the virtual link, with the transit area—the area through which the virtual link passes—listed as the first parameter. The other parameter is the RID of the other router. Two of the wrong answers are not Cisco IOS commands.

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

T/F: Link State (LS) logic has 3 branches:

  1. neigh discovery
  2. topo database exchange - LSDB
  3. route computation - SPF algorithm
A

True.

LSDB contains RID, IP/mask/subnet, list of routers reachable by each interface

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

In OSPF, each router exists in only one area, except for _____ which bridge areas to the backbone.

A

ABR - Area Border Routers

ABRs advertise a much briefer summary inter-area than is exchanged intra-area by area routers.

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

T/F: In OSPF, packets that flow inter-area must flow through at least one backbone router.

A

True. ABRs bridge the backbone, Area 0, to the others.

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

T/F: ABRs keep only a summary copy of each LSDB they attach to and advertise only subnet/mask info inter-area.

A

False.

ABRs keep a copy of the entire LSDB for each area they attach to. It is true that they only advertise subnet/mask inter-area. To the other routers it appears that all the other subnets are attached directly to the ABR.

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

Name 3 benefits/reasons Areas are used in OSPF.

A
smaller topo databases
reduced processing time
reduced memory consumption
simpler route calculation
faster convergence
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the LSDB?

A

data structure held by OSPF router for the purpose of storing topo data

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

What is an LSU? and what does it do?

A

Link State Update. These are OSPF packets that carry detailed topo info, specifically LSAs.

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

What is an LSA and what does it do?

A

Link State Advertisement. This is the name of a class of OSPF data structures that hold topo info. LSAs are held in memory in a LSDB and communicate over a network inside of LSU messages.

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

What is an ABR and what does it do?

A

Area Border Router. router with interfaces in at least two areas, one of which must be the backbone. ABRs hold topo data for each connected area along with the associated calculated routes, and advertise those routes inter-area.

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

What is the DR and what does it do?

A

Designated Router. On multi-access data links, like LANs, this router is electedon that link to perform special functions. Two of it’s main functions are generating LSA for the subnet and the DR plays a key role in the database exchange.

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

What are the required commands to configure a router for OSPF?

A

router ospf
network area

Note: IOS will order the network commands with the most specific wildcard mask first for over lapping ranges. If you sh run the network commands will appear in this order regardless of how you enter them.

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

Which of these two wildcard masks is more specific?

  1. 0.31.255
  2. 0.64.255
A

0.0.31.255 - More zeroes is more specific in wildcard masks.

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

T/F: The first network command to match an interface, per the order shown in the config, determines the OSPF area number associated with the interface.

A

True.

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

What is the command to set the router ID in OSPF?

A

router-id <32-bit DDN>

24
Q

If the RID is not set manually, what happens?

A

OSPF will choose one for you, in this order:

  1. highest loopback
  2. highest non-loopback

This is the same logic as EIGRP.

25
Q

What will be the result of entering these commands?

router ospf 2
network 10.1.12.2 0.0.0.0 area 1
network 10.1.0.0 0.0.255.255 area 0

A

Area 1 is a more specific route and the interfaces that match this will be associated with Area 1.

26
Q

What is the most logical order of these commands to verify OSPF?

  1. confirm IP routes, make sure all routes are known
  2. confirm neighbors
  3. use topo table to confirm non-ABRs have only topo info for their area
  4. confirm interfaces OSPF is enable on
A

4, 2, 3, 1

27
Q

What command lists LSAs for all connected areas?q

A

sh ip ospf database

28
Q

List as least one command that will list passive interfaces.

A

sh ip protocols

sh ip ospf int bri - omits passives

29
Q

What protocol does OSPF use for transport?

A

IP protocol 89, OSPF does not use UDP or TCP

30
Q

T/F: OSPF metric is based on the cumulative cost of all egress interfaces on a route.

A

True. Bandwidth is the default metric.

31
Q

What are the update addresses for OSPF?

A
  1. 0.0.5 (All SPF routers)

224. 0.0.6 (All DRs)

32
Q

What encryption method is used for authentication?

A

MD5. Clear text passwords are the other option.

33
Q

T/F: Route tagging is allowed in OSPF except for redistributed routes.

A

False. Redistributed routes can be tagged.

34
Q

What is the ‘Next Hop Field’ used for?

A

This is an OSPF feature that allows the advertisement of a different next hop than the advertising router.

35
Q

T/F: Manual summary can occur on any router in OSPF..

A

False. This can only happen on ABRs.

36
Q

What are the two requirements for OSPF to send hellos ?

A
  1. OSPF is enabled on the interface, eitehr by the network command or ‘ip ospf area’ interface sub-cmd
  2. interface is not passive

RID, area and more are included with the hello.

37
Q

What address are hellos sent to in OSPF?

A

224.0.0.5

38
Q

Which of the following settings must match for a neighborship to form in OSPF?

  1. same subnet
  2. not passive interfaces
  3. same area
  4. unique RIDs
  5. router id
  6. IP MTU
  7. authentication parameters
  8. hello timer
  9. dead timer
  10. process id
A

all must match except router id and process id.

RIDs must be unique and process id has a local scope.

Note: Technically a neighborship will try to form if the MTUs do not match. However, no topo data will be exchanged and the routers will not be able to calculate routes. The mismatched MTU router will never become a working neighbor.

39
Q

Which of the following do OSPF hello messages contain?

  1. OSPF router id
  2. stub area flag
  3. hello interval
  4. dead interval
  5. subnet mask
  6. area id
  7. router priority
  8. asn number
  9. DR IP address
  10. BDR IP
  11. hold timer
  12. authentication digest
  13. list of neighbors reachable on the interface
A

All except hold timer and ASN- those are EIGRP terms.

40
Q

What is the default hello/dead timer in OSPF

A

10/40 seconds

Note: if you change the hello timer the dead timer will automatically change to 4 times the hello timer.

41
Q

What is the normal ‘state’ of a working neighbor that the LSDB was not exchanged with directly.

A

2-WAY. This is the normal state for working neighbors that do not become fully-adjacent.

This is normal and a working state.

42
Q

What can you tell about a neighbor relationship that is in a 2-WAY state?

A

This means that neither this router nor the neighbor is a DR or BDR. On multiaccess media (like ethernet) The routers only form full adjacency with DRs or BDRs; with all other routers they stay in 2way state.

43
Q

What is MTU?

A

Maximum Transmission Unit. this is the largest L3 PDU (packet) that can be forwarded out of an interface.

Cisco recommends the MTU for all devices on a data link be set the same for good design.

ip mtu (interface sub-cmd)

Same concept in L2 for Maximum Frame Size for Ethernet.

44
Q

MTU protects packets from what?

A

being discarded by L2 devices that are configured to not pass frames over a certain size.

45
Q

What does the IP header DF flag do?

A

Don’t Fragment. If a l3 PDU is too large and the DF bit is set, the packet will be discarded.

46
Q

What states will OSPF cycle through if the MTUs are mismatched?

A

The neighborship actually tries to form, and will appear in the ‘sh ip ospf neighbors’ command.

The states you may see in the neighbor table are:
EXSTART => db exchange is starting
DOWN => failed exchange
INIT => trying to do exchange again.

It tries to form neighborship, but fails.

47
Q

In the interface command ‘ip ospf network’ , what is the default network type?

A

pt-pt.

48
Q

What is the OSPF hello interval for NBMA, point-multipoint and point-multipoint non-broadcast types of interfaces?

A

30 seconds.

49
Q

What is the hello interval on a loopback interface.

A

There is none! There is no other router on a loopback to send hellos to!

50
Q

T/F: A DR and BDR are elected on point-point interfaces?

A

False. There are only two routers on that subnet, they are dynamically discovered and have no need for DR/BDR.

51
Q

What OSPF command will show the network type?

A

sh ip ospf interface

This will show the network interface type.

52
Q

You issue the command ‘sh ip ospf neighbors’ and there is one neighbor. This neighbor is showing a state of ‘FULL/-‘ What does this mean?

A

The ‘-‘ implies that no DR election was attempted. This is normal for point-point and point-multipoint interfaces.

53
Q

T/F: If a point-point interface is configured as a non-broadcast and a static neighbor is defined, then a DR is elected.

A

True.

The commands for this configuration are:

ip ospf network non-broadcast
neighbor 10.1.2.3

54
Q

Which of the following are true about configuring OSPF on Frame Relay Pt-Pt interfaces?

  1. each L2 PVC is a separate L3 subnet
  2. routers use the point-point sub-ifs
  3. you can omit the OSPF network type command
  4. everything works out of the box
A

All are true. This is as easy as it gets for OSPF.

Cisco IOS point-point sub-interfaces default to OSPF network type of point to point.

55
Q

What is an OSPF Virtual Link?

A

Virtual links solve the problem of ‘discontiguous Area 0s’.

A virtual link allows two ABRs that connect to the same non-bb area to form neighborships through that non-bb area even when separated by many other routers and subnets.

Virtual links act as virtual point-point connections between the two routers, with that link residing inside o Area 0.

The two ABRs for a neighbor relationship, inside Area 0, and flood LSAs on that link. This makes Area 0 contiguous.

The transit area that connects the two discontiguous Area 0s must be a stubby area.

56
Q

T/F: OSPF virtual links send updates to 224.0.0.5

A

False. Updates are sent unicast directly between the two endpoints of the ABRs.