Wednesday, July 1, 2015

101 CCNP INTERVIEW QUESTIONS

  1. Difference between RIPv1 and RIPv2?
  2. How many number of routes carried by RIP packet?
  3. Is OSPF link state or distance vector or path vector protocol?
  4. What is the difference between OSPF and IS-IS and which one is preferred?
  5. Can we use BGP instead of any IGP?
  6. How many network types available in OSPF?
  7. Different type of Link State Advertisements aka LSA?
  8. LSA 3 and LSA 4 are generated by which router?
  9. When to use Stub and Not So Stubby Area?
  10. How to get the external routes without making area Not So Stubby?
  11. What is the different type of route summarization available in OSPF?
  12. What is the requirement of doing summarization?
  13. A major network is advertised as summary in one area and few of the routes from that network is configured in another area. What will happen in that case?
  14. If any of the OSPF area is not stabilized, does it impact another area?
  15. What is the use of forwarding address in LSA 5 and LSA 7?
  16. External routes are available in OSPF database but not installing in routing table?
  17. If loopback is not configured, what will be the router-id selected by OSPF process?
  18. Can we run multiple OSPF process in single router and what is the advantage of using it?
  19. What are timers of OSPF?
  20. Multicast address of used by OSPF.
  21. OSPF works on which layer?
  22. What is backbone area in OSPF?
  23. Can we use OSPF without backbone area?
  24. Is it required that OSPF router-id must reachable in IGP cloud?
  25. After configuring new router-id, automatically it will be used or do we need to use some type of command to get it operational.
  26. Why the secondary ip address of interface is not advertising in IGP cloud?
  27. OSPF neighbourship is not coming up. Please tell the various steps to troubleshoot it.
  28. One side MTU is 1500 and another side MTU is 1600. Does it affect neighbourship?
  29. Provide process of DR and BDR election.
  30. If DR is down and no BDR is configured what will happen?
  31. What is the difference between a neighbor and adjacent neighbor?
  32. My OSPF neighbourship is showing 2-way, what does it mean?
  33. Define different type of OSPF neighbor states?
  34. OSPF external routes are not redistributing?
  35. What is Layer 3 routing loop?
  36. OSPF LSA and Packet Format
  37. How does OSPF Sham Link in different area work?
  38. What is Link State Advertisement (LSA) – 1?
  39. What is Link State Advertisement (LSA) – 2?
  40. What is Link State Advertisement (LSA) – 3?
  41. What is Link State Advertisement (LSA) – 4?
  42. How to design OSPF Network or OSPF Design Consideration?
  43. What to ask from customer if he demands OSPF as PE – CE Routing Protocol?
  44. What is C and R in OSPF debug?
  45. How does CPE Area 0 & PE Super backbone Communicate?
  46. Why OSPF VPNv4 Routes Look As External Routes Instead Of Inter Area Routes?
  47. How does ISP hack by using OSPF as PE-CE routing protocol?
  48. OSPF High Availability with SSO,NSF and NSR
  49. How does OSPF behave with SSO,NSF and NSR? 50. How does CISCO EIGRP DUAL Algorithm works for selecting successor?
  50. Define various tools which participates in OSPF fast convergence
  51. How does event propagation tool help OSPF to converge fast?
  52. How does OSPF Fast Convergence Tools – Event Processing helps to reduce convergence time?
  53. OSPF Fast Convergence Tools – Updating RIB 55. What is Discard Route or Null0 Route?
  54. How does static routing behaves?
  55. What are the fundamentals of route redistribution?
  1. Which routing protocol is best between OSPF and EIGRP?
  1.  In OSPF, in Broadcast network type, if all the routers are added with priority=0, then what will happen, will the routers make adjacency or not ?
  1.  In case of redistribution, if OSPF routes are not getting redistributed into BGP, what can be the possible reasons?
  2.  In case of BGP neigborship, we are making neighborship with loopback ip, what will be the next hop here, loopback ip or the physical interface ip ?
62.In HSRP, there are two members, A & B, A is active. As per STP, B is the root bridge. Both are conflicting with each other, then will the traffic flow or not, if yes, what will be the direction of traffic flow ?
  1.  In your network, how the internet & intranet traffic is flowing in terms of design. Explain ?
  1.  If a server is connected to the switch, users are not able to access application hosted on server. What will be the approach to troubleshoot ?
67.In case of NAT process, one public ip is mapped to number of private ip’s. what is the mechanism behind this ?
68.Which protocol you familiar with ?
  1. Explain OSPF features
  2. In OSPF routing table, how inter-area route will see ?
  3. Explain EIGRP metric calculation?
  4. Why to multiply by 256 for EIGRP metric ?
  5. What is static floating and command ?
  6. How to install a new switch in the production network
  7. Explain VTP
  8. Ether channel
  9. SNMP port no
  10. What is difference B/w TCP & UDP & give examples?
  1. What is sub netting & super netting
  1. What is the diameter of spanning Tree?
  1.  What is policy based Routing?
  1.  What is static floating?
  1.  What is difference between IPV4 & IPV6?
  1.  What does the EIGRP stuck in active message mean?
  1.  What are the conditions of EIGRP at the time of Redistribution?
  1.  How do you redistribute an IPv6 default route in EIGRP?
  1.  What are the primary functions of the PDM?
  1.  What are the various load−balancing options available in EIGRP?
  1.  What is the difference between GLBP and HSRP?
  1.  Is it possible to run HSRP for both primary and secondary subnets?
  1.  What is the use of delay in standby preempt delay minimum 60 command?
  1.  Is it possible to run HSRP on a Sub−Interfaces?
  1.  Why do I receive the “cannot allocate router id” error message when I configure Router OSPF ?
  1. Why do I receive the “unknown routing protocol” error message when I configure Router OSPF ?
  1. OSPF neighbor states?
  1.  What does the OSPF ‘INIT State’ mean?
  1.  Attributes of BGP?
  1.  What are the BGP path selection criteria?
  1.  When & how should I reset a BGP session?
  1.  How can I configure BGP to provide load sharing & redundancy in my network?
  1.  What is the difference between RSTP & MSTP?

OSPF Advanced Concepts

Stub Areas

One of the features that can be used with OSPF that can reduce device cost and unneeded traffic isstub areas. Normally within an OSPF area, each of the devices is sent a number of Link State Advertisements (LSA) that enables it to form a map of the existing OSPF network. While this does enable these OSPF devices to form a more complete “view” of the network, it also requires that these devices be able to process this information. Stub areas enable the network designer to limit the number of LSAs that are advertised into an area and replace them with summary information. For example, if area 3 was to be configured as a stub area, the Area Border Router (ABR) between area 3 and the backbone area (area 0) would only send an LSA that includes a summary to send all external traffic (redistributed from another routing protocol) to the ABR. Cisco also includes an area type proprietary to OSPF called totally stubby areas; these areas are not sent external traffic or summary information from other areas (inter-area routes), both are replaced by a default route to the ABR.

Network Types

The way that OSPF operates depends on the type of network technology that is being used and how it is connecting together the different parts of the network. On Cisco equipment, a normal LAN that supports multicast and broadcast communications by default uses the Broadcast network type; this network type is Cisco proprietary. The Broadcast network type supports the dynamic discovery of neighbors and utilizes the concept of Designated Routers (DR) and Backup Designated Routers (BDR), this support enables an easy to setup OSPF network and reduces the amount of traffic that is required between the different OSPF devices.
There are four other network types that are supported when running OSPF on Cisco devices; these include Non-Broadcast Multi-access (NBMA), Point-to-Point (Cisco Proprietary), Point-to-Multipoint, and Point-to-Multipoint nonbroadcast (Cisco Proprietary). By default, frame-relay interfaces are treated as NBMA, point-to-point interfaces are treated as point-to-point and Ethernet interfaces are treated as broadcast. Table 1 shows how these different network types operate:

Table 1 OSPF Network Types

OSPF Network Type
Uses DR/BDR
Dynamic Discovery
Default Hello Interval
Cisco Proprietary?
Broadcast
Yes
Yes
10
Yes
Point-to-Point
No
Yes
10
Yes
NBMA
Yes
No
30
No
Point-to-Multipoint
No
Yes
30
No
Point-to-Multipoint nonbroadcast
No
No
30
Yes

OSPF Advanced Configuration Commands

This section will review the different commands that will be used to configure some of OSPFs advanced options.

auto-cost reference-bandwidth

As discussed in the OSPF Concepts article, the default reference bandwidth that is used by OSPF when calculating its metric is 100 Mbps. This default setting worked well in previous years when the speed of network interfaces did not exceed this bandwidth, but in modern networks it is not uncommon to see either 1 Gbps or 10 Gbps LAN interfaces. By default, in networks that have these higher bandwidth interfaces, a 100Mbps, 1Gbps or 10Gbps support would each have the same metric, this is because of the default reference bandwidth. On networks that support these higher speed interfaces, it is important to change this reference bandwidth to have some differentiation in metric, this is done with the auto-cost reference-bandwidth bandwidth OSPF router configuration command. It is also vital that if this change is going to be configured that it is done on all OSPF devices within the network.

area stub

To configure an area as a stub, the area area-id stub [no-summary] command is used, a totally stubby area would be configured by adding the optional no-summary parameter.

ip ospf network

By default, an OSPF device will select a specific network type depending on the type of network interface being configured. If the default setting is not the one that the engineer wants to use, the ip ospf network network-type interface command is used. The network-type parameter can be configured with broadcastnon-broadcast (NBMA), point-to-multipointpoint-to-multipoint nonbroadcast, or point-to-point.

neighbor

When configuring an OSPF network type that does not support dynamic discovery of neighbors, it is required to statically configure the IP addresses of the OSPF neighbors; this is done with theneighbor ip-address OSPF router configuration command.

OSPF Advanced Configuration

In this next section, we will take the commands that were reviewed in the previous section and show the steps that are required to use them on a real OSPF device, and how to use these commands depending on the needs of a specific network situation.

OSPF Reference Bandwidth

The steps required to configure the OSPF reference bandwidth are shown in Table 2:

Table 2 Reference Bandwidth Configuration

1
Enter global configuration mode.
router#configure terminal
2
Create an OSPF routing process and enter router configuration mode.
router(config)#router ospf process-id
3
Configure the OSPF reference bandwidth (in Mbps).
router(config-router)#auto-cost reference-bandwidth bandwidth

Stub Areas

The steps required to configure stub areas are simple and are shown in Table 3:

Table 3 OSPF stub area Configuration

1
Enter global configuration mode.
router#configure terminal
2
Create an OSPF routing process and enter router configuration mode.
router(config)#router ospf process-id
3
Configure an OSPF area as a stub area.
router(config-router)#area area-id stub [no-summary]

OSPF network types

The steps that are required for OSPF network type configuration vary depending on the specific network type selected; the steps required are shown in Table 4:

Table 4 OSPF network type Configuration

1
Enter global configuration mode.
router#configure terminal
2
Enter interface configuration mode.
router(config)#interface interface
3
Configure the OSPF network type to be used on the interface.
router(config-if)#ip ospf network {broadcast| non-broadcast | point-to-multipoint |point-to-multipoint nonbroadcast | point-to-point}

If the OSPF network type selected does not support dynamic neighbor discovery continue with steps 4-5.

4
Enter router configuration mode.
router(config-if)#router ospf process-id
5
Configure a static OSPF neighbor.
router(config-router)#neighbor ip-address

OSPF Advanced Configuration Examples

This section goes over two different examples to show the commands discussed above.

OSPF Stub Configuration Examples

The first example will show the configuration of an OSPF stub area; in this example area 50 does not require the advertisement of external networks.
Figure 1 OSPF Stub Example Topology
To configure area 50 as a stub, following the steps shown in Table 5, it must be configured on all internal area 50 OSPF devices as well as on router ABR:

Table 5 Area 50 Stub configuration

1
Enter global configuration mode.
router#configure terminal
2
Enter EIGRP router configuration mode.
router(config)#router ospf 10
3
Configure area 50 as a stub area.
router(config-router)#area 50 stub

OSPF Network Type Configuration Example

The second example will go over the steps that are required when configuring OSPF over a frame relay network. It is important to note that this is one way to configure OSPF over frame-relay and is only shown as an example and not as the ‘best’ solution. The network shown in Figure 2 will be used for this example.
Figure 2 OSPF Network Type Example Topology
To configure the frame relay interface between OSPF devices R1 and R2 the following configuration would be used.

Table 6 Frame Relay Interface Configuration

1
Enter global configuration mode.
router#configure terminal
2
Enter interface configuration mode.
router(config)#interface s1/0
3
Configure the interface to use the OSPF NBMA network type (this is the default for physical frame-relay interfaces shown for example).
router(config-if)#ip ospf network nonbroadcast
4
Enter OSPF router configuration mode.
router(config-if)#router ospf 10

Steps 1 through 4 would be configured on both R1 and R2.

5
Configure the neighbors for OSPF (NBMA does not support dynamic neighbor discovery) on R1.
router(config-router)#neighbor 172.16.1.2
5
Configure the neighbors for OSPF on R2.
router(config-router)#neighbor 172.16.1.1

Summary

The configuration of an advanced OSPF implementation can become quite complex; the purpose of this article was to discuss some of the commands that are used in these advanced configurations and how they would be configured in a sample environment. Hopefully the article has been able to bring these features and their configuration in focus a little better and will enable some additional understanding when testing them on IOS.

Connecting Multiple OSPF Areas

An OSPF area is defined as a logical grouping of routers by a network administrator. OSPF routers in any area share the same topological view (also known as the OSPF database) of the network. The core reason that OSPF is configured in multiple areas is to reduce routing table sizes, which in turn reduces the topological database and CPU/memory requirements on a router.
OSPF is not just configured in one large area, so all routers share the same topological database. The use of multiple areas ensures that the flooding and database management required in large OSPF networks is reduced within each area so that the process of flooding the full database and maintaining full network connectivity does not consume a large portion of the CPU processing power. Every time a network change occurs, the CPU on a router is interrupted and a new OSPF tree is calculated. Running the shortest path first (SPF) algorithm itself is not CPU intensive, but sending and flooding the network with new topological information is extremely CPU intensive.
Routing tables become very large even with only 50 routers. The OSPF database is exchanged every 30 minutes in full, and if this database is too large, every time the exchange occurs, the amount of bandwidth used over the network increases, which can cause severe delays in sending user-based traffic because convergence times increase.
Considering the demands on CPU and memory along with reduced IP routing tables, you should now have a good understanding of why OSPF requires more than one area. In Scenario 3-2 in Chapter 3, you saw how to configure an OSPF network that is partitioned from the backbone. All OSPF areas must be connected to the backbone in case of network failure. When an area cannot reside physically or logically on the backbone, a virtual link is required. For partitioned areas, OSPF treats the area as a separate area, and no routing information flows to the backbone; therefore, you do not have IP connectivity.
Virtual links add a layer of complexity and might cause additional problems when applied to large IP networks. It is best to avoid virtual links in the real world.
When configuring a virtual link, you must be aware of the following design restrictions:
  • Virtual links must be configured between two area border routers (ABRs).
  • The transit area cannot be a stub area.
  • The transit area must have full routing knowledge of both partitioned areas.
Table 4-1 summarizes the four OSPF area types and their functions.

Table 4-1. OSPF Router Types

Router TypeDescription
Internal routerThis router is within a specific area only. Internal router functions include maintaining the OSPF database and forwarding data to other networks. All interfaces on internal routers are in the same area.
Area border router (ABR)ABRs are responsible for connecting two or more areas. An ABR contains the full topological database for each area it is connected to and sends this information to other areas.
Autonomous system boundary router (ASBR)ASBRs connect to the outside world or perform some form of redistribution into OSPF.
Backbone routerBackbone routers are connected to area 0, which is also represented as area 0.0.0.0. Backbone routers can be internal routers or ASBRs.
Figure 4-1 displays a typical OSPF area assignment and the function of these routers.
04fig01.gif
Figure 4-1 Typical Area Assignment and Routers
In Figure 4-1, the routers residing in the backbone (area 0) are called backbone routers. A backbone router connecting to another area can also be an ABR. Routers that connect to, for example, the Internet and redistribute external IP routing tables from such protocols as Border Gateway Protocol (BGP) are termed autonomous system boundary routers (ASBRs). So, you can have a backbone router perform ASBR functions as well as ABR functions.
Each router, depending on its function, sends out a link-state advertisement (LSA). An LSA is a packet used by such routing protocols as OSPF (that is, link-state routing protocols) to send information to neighboring routers describing networks and path costs.
OSPF supports a number of LSA types as well as three other area types: a stub area, a totally stubby area, and a not-so-stubby area (NSSA). These additional areas provide even more functionality in OSPF. Before covering these new areas in detail, this section first goes over the link-state advertisement types and when to use them in an OSPF environment.
The OSPF standard defines a number of LSAs types. Unlike distance vector protocols (for example, RIP), OSPF does not actually send its routing table to other routers. Instead, OSPF sends the LSA database and derives the IP routing table from LSAs. Table 4-2 describes the six most common LSAs and their functions.

Table 4-2. Six Common Supported LSA Types on Cisco IOS Routers

LSA Packet TypeNameFunction
1Router link advertisementsDescribes the state and cost of the router's own interfaces.
2Network link advertisementsUsed on multiaccess networks. These are originated by the designated router (DR).
3Summary link advertisements (ABRs)Originated by ABRs only. This LSA type sends out information into the autonomous system (AS) but outside of the area (interarea routes).
4Summary link advertisements (ASBRs)Originated by ASBRs describing IP networks external to the AS.
5Autonomous system (AS) external link advertisementsAn LSA sent to a router that connects to the Internet, for example. An advertisement sent from ABR to the ASBR.
6Not-so-stubby areas (NSSA)An advertisement bound to an NSSA area.
A stub area is defined as an area that contains a single exit point from the area. A stub in the English dictionary means a dead end, and that is exactly what it means in OSPF. Areas that reside on the edge of the network with no exit point except one path can be termed a stub area. Stubs come in three types.
Table 4-3 summarizes the functions of these new areas, called stubby areas, total stubby areas, and not-so-stubby areas. Take important note of the LSA type allowed or not allowed to fully appreciate the value of a stub area.

Table 4-3. Additional Area Types

Area TypeFunction
Stub areaThis area does not accept LSA types 4 and 5, which are summary links and external link advertisements, respectively. The only way to achieve a route to unknown destinations is, thereby, a default route injected by the ABR.
Totally stubby areaThis area blocks LSA types 3, 4, and 5. Although similar to a stub area, a totally stubby area blocks LSAs of type 3 as well. This solution is Cisco-proprietary and is used to further reduce a topological database.
Not-so-stubby areaThis area is used primarily for connections to an ISP. This area is designed to allow LSAs of type 7 only. All advertised routes can be flooded through the NSSA but are blocked by the ABR. Basically, a type 7 LSA (if the P bit is set to one) will be convert to a type 5 LSA and flooded throughout the rest of the network. If the P bit is set to zero, no translation takes place. Type 4 or 5 LSAs are not permitted. This advertisement will not be propagated to the rest of the network. Typically used to provide a default route.
The only way to appreciate these new areas is to configure them and view the OSPF database. The scenarios that follow cover stub, totally stubby, and not-so-stubby areas in more detail.
Table 4-4 summarizes the LSA types by area and indicates which LSAs are permitted or disallowed in certain areas.

Table 4-4. LSA Types and Area Restrictions

 LSA Type Permitted?
Area1/23/467
NSSAYesYesNoYes
Totally stubbyYesNoNoNo
StubYesYesNoNo

VLSM and Summarization with OSPF

OSPF supports a number of features. The two main features that interest most network designers are that it supports VLSM and provides the ability to summarize networks.
When an LSA packet or routing update is received or sent, the packet includes the following information:
  • LSA type
  • Router ID (unique IP address, no other router can share the same router ID)
  • Subnet mask
  • Attached router
  • Metric
Because the subnet mask is carried along with the update, OSPF can support VLSM. Without a mechanism that sends the subnet mask, there can be no support for VLSM. Routing Information Protocol (RIPv1) and Interior Gateway Routing Protocol (IGRP), for example, do not carry the subnet mask when they send out updates.
Summarization occurs using the LSA type 4 packet or by the ASBR.
You configure OSPF in two ways to summarize networks using Cisco IOS routers:
  • Interarea summarization creating type 3 or 4 LSAs
  • External summarization with type 5 LSAs
Consider an OSPF network containing two routers across an Ethernet segment. Figure 4-2 displays this two-router topology with the routers named R1 and R2.
04fig02.gif
Figure 4-2 Sample Network for Summarization Example
R2 is sending R1 15 OSPF routes ranging from 131.109.1.0 to 131.109.15.0. Instead of populating R1's routing table with 15 IP route entries, you can use summarization. Example 4-1 displays R1's routing table.

Example 4-1. R1's OSPF Routing Table

R1>show ip route ospf
     131.109.0.0/24 is subnetted, 14 subnets
O IA    131.109.14.0 [110/11] via 131.108.2.2, 00:00:48, Ethernet0/0
O IA    131.109.15.0 [110/11] via 131.108.2.2, 00:00:48, Ethernet0/0
O IA    131.109.12.0 [110/11] via 131.108.2.2, 00:00:48, Ethernet0/0
O IA    131.109.13.0 [110/11] via 131.108.2.2, 00:00:48, Ethernet0/0
O IA    131.109.10.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.11.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.8.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.9.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.6.0 [110/11] via 131.108.2.2, 00:00:00, Ethernet0/0
O IA    131.109.7.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.4.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.5.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.2.0 [110/11] via 131.108.2.2, 00:01:08, Ethernet0/0
O IA    131.109.3.0 [110/11] via 131.108.2.2, 00:00:58, Ethernet0/0
O IA    131.109.1.0 [110/11] via 131.108.2.2, 00:02:54, Ethernet0/0
The remote networks are indicated by O IA, which indicates interarea routes. Intra-area routes are indicated by O.
Example 4-1 displays an IP routing table telling you that R2 is in area 0 and another area (ABR); hence, R2 can perform interarea summarization. Because the networks 1 to 15 are contiguous, you can configure R2 to mask the networks by masking the first 15 networks with the IOS area area ID range address mask command. Example 4-2 displays the summary applied to R2 under the OSPF router process ID of 1.

Example 4-2. Summary of R2

R2(config)#router ospf 1
R2(config-router)#area 1 range 131.109.0.0 255.255.240.0
Example 4-3 displays R1's routing table now. Remember that previously there were 15 IP routing entries.

Example 4-3. OSPF Route Table on R1 After Summarization

R1#sh ip route ospf
     131.109.0.0/20 is subnetted, 1 subnets
O IA    131.109.0.0 [110/11] via 131.108.2.2, 00:02:33, Ethernet0/0
R1#
By using OSPF summarization techniques, you can summarize a simple network with 15 IP networks by using 1 IP routing entry.
In OSPF, you can also externally summarize IP routes by using the summary ip-address mask command.
OSPF summarization examples are included among the five scenarios in this chapter.

OSPF over Multiarea NBMA

OSPF over a multiple-area NBMA network presents some challenges to a network designer as you discovered in Chapter 3.
Typically, in a large NBMA environment, the backbone (area 0) assignment encompasses the NBMA connections themselves, because all remote or edge sites need to transit the NBMA network. The same commands that applied in Chapter 3 are used in large NBMA environments.
To summarize the command set used in large NBMA environments, the following commands and steps are required to configure OSPF in a multiarea OSPF Network:
  • The network command enables OSPF across interfaces.
  • Summarization enables networks to reduce IP routing table sizes by using area range on ABRs and the summary address subnet mask command for an ASBR.
  • Any stubby configurations to reduce memory and CPU requirements.
  • Any virtual links that may be required.
  • Any command that manipulates the OSPF cost metrics for equal costs path load balancing.
Next, this chapter describes another common link-state routing protocol used in large IP routing environments, namely Intermediate System-to-Intermediate System (IS-IS).