OSPF with Multi Area Adjacency Configuration Example

Similar documents
LAB 9: Configure BGP Confederation

OSPF Virtual Links: Transit capability

Chapter 4 Lab 4-2, Redistribution Between EIGRP and OSPF

IPv6 Routing: OSPFv3

The following questions are designed to test your understanding of this chapter s

OSPF Virtual Link. Contents. Prerequisites. Document ID: Requirements. Components Used

Chapter 1 Lab 1-1, Single-Area OSPF Link Costs and Interface Priorities

Chapter 4 Lab 4-2, Controlling Routing Updates. Topology. Objectives. CCNPv7 ROUTE

OSPFv2 Cryptographic Authentication

OSPF, MTU and LSA Packing Tech Note

Configuration and Management of Networks

Lab 4: Routing using OSPF

Lab- Configuring Basic Single-Area OSPFv2

Sample Configuration for OSPFv3

Config. Router# show ip ospf

Area Command in Interface Mode for OSPFv2

Introduction to OSPF

Symbols. Numerics I N D E X

Chapter 3 Lab 3-1, Single-Area OSPF Link Costs and Interface Priorities

Introduction to OSPF

Example for OSPF and RIP Configuration

OSPF Sham-Link Support for MPLS VPN

OSPFv3 Address Families

Ch. 5 Maintaining and Troubleshooting Routing Solutions. Net412- Network troubleshooting

Configuring OSPF. Cisco s OSPF Implementation

Table of Contents 1 OSPF Configuration 1-1

Easy Virtual Network Configuration Example

OSPFv3 Address Families

OSPFv3 Address Families

Introduction to OSPF

OSPF. About OSPF. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.4 1

scope scope {global vrf vrf-name} no scope {global vrf vrf-name} Syntax Description

CCNA 3 (v v6.0) Chapter 6 Exam Answers % Full

Troubleshooting Cisco Express Forwarding Routing Loops

Contents. Introduction. Prerequisites. Requirements

Chapter 3 Lab 3-2, Multi-Area OSPF with Stub Areas and Authentication

OSPFv2 Local RIB. Finding Feature Information

Chapter 3 Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area

Contents. Introduction. Prerequisites. Requirements. Components Used

Chapter 4 Lab 4-1, Redistribution Between EIGRP and OSPF. Topology. Objectives. CCNPv7 ROUTE

4A Alcatel-Lucent. Alcatel-Lucent Interior Routing Protocols and High Availability

Troubleshooting LSP Failure in MPLS VPN

CCNA 3 (v v6.0) Chapter 10 Exam Answers % Full

OSPF. OSPF processs can be enabled on 2 levels

REDDIG II Computer Networking Training

Cabrillo College. Rick Graziani, Instructor

Lab - Configuring Basic Single-Area OSPFv2

Configuration and Management of Networks

Chapter 5: Maintaining and Troubleshooting Routing Solutions

OSPF External path selection: External Type- 2 (E2) VS NSSA Type-2 (N2)

CCNA 3 (v v6.0) Chapter 6 Exam Answers % Full

CCIE R&Sv5 Mock Lab 1 Mohamed Jaziri 3xCCIE P a g e 1

Chapter 3 Lab 3-3, OSPF Virtual Links and Area Summarization

BSCI. Section 5. Intermediate System-to- Intermediate System (IS-IS)

Lab - Configuring Multi-area OSPFv2

2001, Cisco Systems, Inc. All rights reserved.

OSPF Commands on Cisco IOS XR Software

Networkers 2001, Australia

OSPF Commands. adjacency stagger, page 7. authentication-key (OSPF), page 14

TDC 363 Introduction to LANs

Configuring Networking Protocols

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

CCIE R&S Lab Workbook Volume I Version 5.0

Which of the following describe the process identifier that is used to run OSPF on a router? (Choose two)

Lab - Configuring Multi-area OSPFv3 Topology

CCNA Semester 2 labs. Part 2 of 2 Labs for chapters 8 11

FSOS IPv6 Routing Command Line Reference

OSPF Commands on Cisco ASR 9000 Series Router

Routing IPV6. Copyright Cisco Academy. Yannis Xydas

OSPF. Unless otherwise noted, OSPF refers to OSPFv2 throughout this document.

Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of opaque LSAs 40 Configuring OSPF to

Initial Configurations for OSPF over a Point to Point Link

Configuring Redundant Routing on the VPN 3000 Concentrator

Chapter 16 OSPF Version 3 Commands

LAB8: OSPF IPv4. OSPF: Virtual Link. Disclaimer

Routing Protocols. Technology Description BGP CHAPTER

OSPF SNMP ifindex Value for Interface ID in Data Fields

This document is not restricted to specific software and hardware versions.

The information in this document is based on Cisco IOS Software Release 15.4 version.

Troubleshooting Routing Solutions

IP Routing Tecnologie e Protocolli per Internet II rev 1

Configuring OSPF. Finding Feature Information. Contents

Link State. 1 Flooding of link-state information. 5 Routing Table. 3 SPF Algorithm. 2 Building a Topological Database. 4 SPF Tree

FiberstoreOS IP Routing Configuration Guide

OSPF Commands. Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols IP2R-61

OSPFv3 Commands. address-family (OSPFv3), page 4. authentication (OSPFv3), page 7

Chapter 8 Configuring OSPF

FSOS IP Routing Configuration Guide

FiberstoreOS V3.3 IPv6 Routing Command Line Reference

FiberstoreOS. IPv6 Routing Command Line Reference

Vanguard Managed Solutions

MPLS VPN Multipath Support for Inter-AS VPNs

Logging neighbor state changes 38 Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of

Introduction to OSPF OSPF. Link State Routing. Link State. Fast Convergence. Low Bandwidth Utilisation

OSPF DR and BDR Elections

FiberstoreOS IP Routing Configuration Guide

Routing Protocol - IS-IS

CIS 83 LAB 2 - Single Area OSPF Rich Simms September 12, Objective. Scenario. Topology

MPLS VPN--Inter-AS Option AB

Operation Manual OSPF. Table of Contents

Transcription:

OSPF with Multi Area Adjacency Configuration Example Document ID: 118879 Contributed by Narra Naukwal, Cisco TAC Engineer. Mar 31, 2015 Contents Introduction Prerequisites Requirements Components Used Background Information Configure Network Diagram Initial Configurations R1 R2 R3 R4 R5 Default Behavior Multi Area Adjacency Configuration Verify Troubleshoot Introduction This document describes how to configure the Open Shortest Path First (OSPF) link state routing protocol for Multi Area Adjacency. Prerequisites Requirements Cisco recomms that you have knowledge of these topics: OSPF Multi Area Adjacency Cisco also recomms that these requirements be met before you attempt the configuration that is described in this document: The OSPF link state routing protocol must be pre configured in the network. Only two OSPF speakers use the interface between which OSPF Multi Area functionality works. Multi Area OSPF only works on Point to Point network types.

Components Used The information in this document is based on Multi Area OSPF. The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command. Background Information The OSPF link state routing protocol uses the concept of Areas, which are sub domains within the OSPF domain. A router within an Area maintains the complete topology information of that Area. By default, an interface can only belong to one OSPF Area. This can not only cause sub optimal routing in the network, but it can also lead to other issues if the network is not designed correctly. When Multi Area Adjacency is configured on an interface, the OSPF speakers form more than one Adjacency (ADJ) over that link. The Multi Area interface is a logical, point to point interface over which the ADJ is formed. This document describes a scenario where Multi Area OSPF ADJ can be used in order to work around a problem and meet the network requirements. Configure Network Diagram In this network diagram, a network/ospf domain is used. The system requires that traffic from Router 5 (R5) to R1 (10.1.1.1) always passes through R3. Assume that R3 is a Firewall in the network through which all of the traffic should be routed, or that the link between R3 and R4 has more bandwidth than the link between R2 and R4. In either case, the system requires that the traffic must flow through R3 when it passes from R5 to R1 (10.1.1.1/32 prefix).

Initial Configurations This section describes the initial configurations for R1 through R5. R1 interface Ethernet0/0 ip address 192.168.12.1 255.255.255.0 interface Loopback0 ip address 10.1.1.1 255.255.255.255 ip route 0.0.0.0 0.0.0.0 192.168.12.2 R2 interface Ethernet0/0 ip address 192.168.12.2 255.255.255.0 ip address 192.168.23.2 255.255.255.0 ip ospf 1 area 0 ip address 192.168.24.2 255.255.255.0 interface Loopback0 ip address 10.2.2.2 255.255.255.255 ip route 10.1.1.1 255.255.255.255 192.168.12.1 router ospf 1 router id 0.0.0.2 redistribute static metric type 1 subnets R3 interface Ethernet0/0 ip address 192.168.34.3 255.255.255.0

ip address 192.168.23.3 255.255.255.0 ip ospf 1 area 0 interface Loopback0 ip address 10.3.3.3 255.255.255.255 router ospf 1 router id 0.0.0.3 R4 interface Ethernet0/0 ip address 192.168.34.4 255.255.255.0 ip address 192.168.45.4 255.255.255.0 ip address 192.168.24.4 255.255.255.0 interface Loopback0 ip address 10.4.4.4 255.255.255.255 router ospf 1 router id 0.0.0.4 R5 ip address 192.168.45.5 255.255.255.0 interface Loopback0 ip address 10.5.5.5 255.255.255.255

router ospf 1 router id 0.0.0.5 Default Behavior With the previous configurations in place, this section describes the default router behaviors. Here is trace from R5 to 10.1.1.1. Notice that the traffic passes through R2, not R3: R5#traceroute 10.1.1.1 Type escape sequence to abort. Tracing the route to 10.1.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.45.4 6 msec 6 msec 6 msec <<< R4 2 192.168.24.2 6 msec 6 msec 8 msec <<< R2 3 192.168.12.1 8 msec * 3 msec <<< R1 In this network, the router R4 must make the decision and should route the traffic to R3, not to R2 directly, as per the system requirement. Here is an example of the routing table on R4: R4#show ip route 10.1.1.1 Routing entry for 10.1.1.1/32 Known via "ospf 1", distance 110, metric 30, type extern 1 Last update from 192.168.24.2 on Ethernet0/2, 00:14:33 ago Routing Descriptor Blocks: * 192.168.24.2, from 0.0.0.2, 00:14:33 ago, via Ethernet0/2 <<< Towards R2 Route metric is 30, traffic share count is 1 A metric of 30 is associated with this route for prefix 10.1.1.1/32. This is due to a default metric of 20 that is used by the Autonomous System Boundary Router (ASBR) (R2) and a cost of 10 on the interface Eth0/2 on R4. The path from R4 to the 10.1.1.1/32 prefix via R3 is longer. Here, the cost for Interface Ethernet 0/2 on R4 (the path towards R2) is altered in order to verify whether it changes the behavior: ip address 192.168.24.4 255.255.255.0 ip ospf cost 100 Here is the trace from R5 and the show ip route command output from R4: R5#traceroute 10.1.1.1 Type escape sequence to abort. Tracing the route to 10.1.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.45.4 4 msec 9 msec 8 msec <<< R4 2 192.168.24.2 8 msec 9 msec 10 msec <<< R2 3 192.168.12.1 10 msec * 5 msec <<< R1 R4#show ip route 10.1.1.1 Routing entry for 10.1.1.1/32 Known via "ospf 1", distance 110, metric 120, type extern 1

Last update from 192.168.24.2 on Ethernet0/2, 00:01:50 ago Routing Descriptor Blocks: * 192.168.24.2, from 0.0.0.2, 00:01:50 ago, via Ethernet0/2 Route metric is 120, traffic share count is 1 As the trace shows, the traffic from R5 takes the same path, and traffic does not flow via R3. Also, as shown in the output of the show ip route 10.1.1.1 command on R4, the cost of 100 that was added on R4 (Interface Ethernet 0/2) takes effect and the cost of the route to the prefix is 120 (opposed to 30). However, the path still did not change and the requirement for traffic to flow across R3 is not yet met. In order to determine the cause of this behavior, here is the R4 show ip ospf border routers command output (the cost on the R4 Interface Ethernet 0/2 is still set to 100): R4#show ip ospf border routers OSPF Router with ID (0.0.0.4) (Process ID 1) Base Topology (MTID 0) Internal Router Routing Table Codes: i Intra area route, I Inter area route i 0.0.0.2 [100] via 192.168.24.2, Ethernet0/2, ABR/ASBR, Area 99, SPF 3 i 0.0.0.3 [10] via 192.168.34.3, Ethernet0/0, ABR, Area 99, SPF 3 On R4, you can see that there are two Area Border Routers (ABRs) (0.0.0.2, which is R2, and 0.0.0.3, which is R3) and that R2 is the ASBR. This output also shows the Intra Area (i) information for the ASBR. Now, the Interface Ethernet 0/2 is shut down on R4 in order to determine whether the traffic flows via R3 and in order to see how the show ip ospf border routers command output appears: ip address 192.168.24.4 255.255.255.0 ip ospf cost 100 shutdown Here is the trace from R5 and the show ip route command output from R4: R5#traceroute 10.1.1.1 Type escape sequence to abort. Tracing the route to 10.1.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.45.4 7 msec 7 msec 8 msec <<< R4 2 192.168.34.3 9 msec 8 msec 8 msec <<< R3 3 192.168.23.2 9 msec 9 msec 7 msec <<< R2 4 192.168.12.1 8 msec * 4 msec <<< R1 R4#show ip route 10.1.1.1 Routing entry for 10.1.1.1/32 Known via "ospf 1", distance 110, metric 40, type extern 1 <<< Metric 40 Last update from 192.168.34.3 on Ethernet0/0, 00:01:46 ago <<< Traffic to R2 Routing Descriptor Blocks: * 192.168.34.3, from 0.0.0.2, 00:01:46 ago, via Ethernet0/0 Route metric is 40, traffic share count is 1 As shown, when Interface Ethernet 0/2 is shut down on R4, traffic passes through R3. Also, the cost that is associated with the route towards R3 is only 40, while the cost towards 10.1.1.1/32 via R2 was 120. The OSPF protocol still prefers to route the traffic via R2 instead of R3, even though the cost to reach 10.1.1.1/32 is lower via R3.

Here is the output of show ip ospf border routers once again on R4: R4#show ip ospf border routers OSPF Router with ID (0.0.0.4) (Process ID 1) Base Topology (MTID 0) Internal Router Routing Table Codes: i Intra area route, I Inter area route I 0.0.0.2 [20] via 192.168.34.3, Ethernet0/0, ASBR, Area 99, SPF 4 i 0.0.0.3 [10] via 192.168.34.3, Ethernet0/0, ABR, Area 99, SPF 4 The information that is required in order to reach the ASBR is the Inter Area information. However, the Intra Area information that details how to reach ASBR is preferred over Inter Area information irrespective of the OSPF cost that is associated with the two paths. For this reason, the path via R3 was not preferred, even though the cost via R3 is lower. Here, the Interface Ethernet 0/2 is brought back up on R4: no shutdown The trace from R5 indicates that routing actions return to those previously observed (traffic does not flow via R3): R5#traceroute 10.1.1.1 Type escape sequence to abort. Tracing the route to 10.1.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.45.4 6 msec 7 msec 7 msec <<< R4 2 192.168.24.2 7 msec 8 msec 7 msec <<< R2 3 192.168.12.1 8 msec * 12 msec <<< R1 There are various ways that you can resolve this issue (this list is not exhaustive): Change the Area between R2 and R3 to 90, and then modify the cost. Add another link between R2 and R3 and configure it to be in Area 99. Use Multi Area ADJ. Refer to the next section in order to see the way in which Multi Area OSPF ADJ works and how it can solve this issue at hand. Multi Area Adjacency Configuration As previously mentioned, Multi Area ADJ can be used in order to form multiple point to point logical adjacencies over a single link. The requirement is that there must be only two OSPF speakers on the link, and in a broadcast network, you must manually change the OSPF network type to Point to Point on the link. This feature allows a single physical link to be shared by multiple Areas and creates an Intra Area path in each of the Areas that share the link. In order to meet this requirement, you must configure OSPF Multi Area ADJ between R2 and R3 over link Ethernet 0/1, which is currently only in Area 0.

Here is the configuration for R2: ip address 192.168.23.2 255.255.255.0 ip ospf multi area 99 ip ospf 1 area 0 Here is the configuration for R3: ip address 192.168.23.3 255.255.255.0 ip ospf multi area 99 ip ospf 1 area 0 The OSPF ADJ comes up over the Virtual Link: %OSPF 5 ADJCHG: Process 1, Nbr 0.0.0.2 on OSPF_MA0 from LOADING to FULL, Loading Done %OSPF 5 ADJCHG: Process 1, Nbr 0.0.0.3 on OSPF_MA0 from LOADING to FULL, Loading Done Here is the newly formed ADJ: R2#show ip ospf neighbor 0.0.0.3 <Snip> Neighbor 0.0.0.3, interface address 192.168.23.3 In the area 99 via interface OSPF_MA0 Neighbor priority is 0, State is FULL, 6 state changes DR is 0.0.0.0 BDR is 0.0.0.0 Options is 0x12 in Hello (E bit, L bit) Options is 0x52 in DBD (E bit, L bit, O bit) LLS Options is 0x1 (LR) Dead timer due in 00:00:39 Neighbor is up for 00:03:01 Index 2/3, retransmission queue length 0, number of retransmission 0 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 0, maximum is 0 Last retransmission scan time is 0 msec, maximum is 0 msec R3#show ip ospf neighbor 0.0.0.2 <Snip> Neighbor 0.0.0.2, interface address 192.168.23.2 In the area 99 via interface OSPF_MA0 Neighbor priority is 0, State is FULL, 6 state changes DR is 0.0.0.0 BDR is 0.0.0.0 Options is 0x12 in Hello (E bit, L bit) Options is 0x52 in DBD (E bit, L bit, O bit) LLS Options is 0x1 (LR) Dead timer due in 00:00:39 Neighbor is up for 00:01:41 Index 2/3, retransmission queue length 0, number of retransmission 0 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0 Last retransmission scan length is 0, maximum is 0 Last retransmission scan time is 0 msec, maximum is 0 msec

Verify In order to verify whether your configuration works properly, enter the show ip ospf border routers command on R4: R4#show ip ospf border routers OSPF Router with ID (0.0.0.4) (Process ID 1) Base Topology (MTID 0) Internal Router Routing Table Codes: i Intra area route, I Inter area route i 0.0.0.3 [10] via 192.168.34.3, Ethernet0/0, ABR, Area 99, SPF 10 i 0.0.0.2 [20] via 192.168.34.3, Ethernet0/0, ABR/ASBR, Area 99, SPF 10 As shown, the Intra Area information that is used in order to route traffic to R2 (0.0.0.2)/ASBR is via R3. This should resolve the previously mentioned problem. Here is the trace from R5: R5#traceroute 10.1.1.1 Type escape sequence to abort. Tracing the route to 10.1.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.45.4 8 msec 9 msec 8 msec <<< R4 2 192.168.34.3 8 msec 8 msec 8 msec <<< R3 3 192.168.23.2 7 msec 8 msec 8 msec <<< R2 4 192.168.12.1 8 msec * 4 msec <<< R1 As shown, the traffic from R5 that is destined to 10.1.1.1 properly flows via R3, and the system requirement is met. Enter the show ip ospf neighbor command on R2, R3, and R4 in order to verify whether the ADJs are established: R2#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 0.0.0.3 0 FULL/ 00:00:39 192.168.23.3 Ethernet0/1 0.0.0.4 0 FULL/ 00:00:37 192.168.24.4 Ethernet0/2 0.0.0.3 0 FULL/ 00:00:33 192.168.23.3 OSPF_MA0 R3#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 0.0.0.2 0 FULL/ 00:00:34 192.168.23.2 Ethernet0/1 0.0.0.2 0 FULL/ 00:00:35 192.168.23.2 OSPF_MA0 0.0.0.4 0 FULL/ 00:00:39 192.168.34.4 Ethernet0/0 R4#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 0.0.0.2 0 FULL/ 00:00:32 192.168.24.2 Ethernet0/2 0.0.0.5 0 FULL/ 00:00:32 192.168.45.5 Ethernet0/1 0.0.0.3 0 FULL/ 00:00:35 192.168.34.3 Ethernet0/0 Note: In these outputs, the Ethernet0/1 Interface entries indicate the ADJ over Area 0, and the OSPF_MA0 Interface entries indicate the Multi Area ADJ over Area 99. The R4 Interface Ethernet 0/2 still has a cost of 100, and the path via R3 is preferred on R4. If this cost is removed, then R4 routes traffic directly to R2 as before.

Here is the configuration and the show ip route command output on R4 with the IP OSPF cost of 100 still configured on R4 Interface Ethernet 0/2: ip address 192.168.24.4 255.255.255.0 ip ospf cost 100 R4#show ip route 10.1.1.1 Routing entry for 10.1.1.1/32 Known via "ospf 1", distance 110, metric 40, type extern 1 Last update from 192.168.34.3 on Ethernet0/0, 00:28:45 ago Routing Descriptor Blocks: * 192.168.34.3, from 0.0.0.2, 00:28:45 ago, via Ethernet0/0 Route metric is 40, traffic share count is 1 Here is the configuration and the show ip route command output on R4 when you remove the cost: ip address 192.168.24.4 255.255.255.0 R4#show ip route 10.1.1.1 Routing entry for 10.1.1.1/32 Known via "ospf 1", distance 110, metric 30, type extern 1 Last update from 192.168.24.2 on Ethernet0/2, 00:00:13 ago Routing Descriptor Blocks: * 192.168.24.2, from 0.0.0.2, 00:00:13 ago, via Ethernet0/2 <<< Route changed back to R2 Route metric is 30, traffic share count is 1 Troubleshoot There is currently no specific troubleshooting information available for this configuration. Updated: Mar 31, 2015 Document ID: 118879