The (Unofficial) CCNP-SP Study Guide
  • About
    • About the Author
    • About This Study Guide
  • MPLS
    • LDP
      • LDP Transport Address
      • LDP Conditional Advertisement
      • LDP Authentication
      • LDP/IGP Sync
      • LDP Session Protection
    • MPLS-TE
      • MPLS-TE Basics, Pt. 1 (TED)
      • MPLS-TE Basics, Pt.2 (RSVP)
      • MPLS-TE Basics, Pt.3 (CSPF)
      • MPLS-TE Basics, Pt.4 (Routing)
      • MPLS-TE Fast Reroute (FRR)
      • MPLS-TE with OSPF
    • Unified MPLS
    • Segment Routing
      • Introduction, Theory Pt.1
      • Introduction, Lab (OSPF) Pt.2
      • Introduction, Lab (ISIS) Pt. 3
      • Multi-Area/Level Segment Routing
      • Segment Routing using BGP
      • Migrating LDP to SR
      • LDP/SR Interworking
      • TI-LFA Pt. 1 (Theory)
      • TI-LFA Pt. 2 (Implementation)
      • TI-LFA Pt. 3 (Node and SRLG Protection)
      • SR-TE Pt. 1 (Overview)
      • SR-TE Pt. 2 (Creating an SR-TE Policy)
      • SR-TE Pt. 3 (Using a PCE)
      • SR-TE Pt. 4 (Automated Steering)
      • SR-TE Pt. 5 (On-Demand Nexthop)
      • SR-TE Pt. 6 (Flex Algo)
    • MPLS OAM
      • Classic Traceroute Behavior in MPLS Networks
      • LSP Ping
      • LSP Traceroute
  • Routing
    • BGP
      • BGP Synchronization
      • BGP Load Sharing (Multipath)
      • An Intuitive Look at Path Attributes
      • AS Path Prepending on XE and XR
      • RPL
    • BGP Security
      • BGP TTL Security, Pt. 1
      • BGP TTL Security, Pt. 2 (IOS-XE)
      • BGP TTL Security, Pt. 3 (IOS-XR)
      • BGP MD5 Authentication
      • BGP Maximum Prefixes
      • BGP RFD (Route Flap Dampening)
      • RTBH
      • Flowspec
      • BGPsec
    • L3VPN
      • An In-Depth Look at RD and RT, Pt. 1
      • An In-Depth Look at RD and RT, Pt. 2
      • An In-Depth Look at RD and RT, Pt. 3
      • An In-Depth Look at RD and RT, Pt. 4
      • Inter-AS L3VPN Pt. 1, Overview
      • Inter-AS L3VPN Pt. 2, Option A
      • Inter-AS L3VPN Pt. 3, Option B
      • Inter-AS L3VPN Pt. 4, Option C
      • CSC (Carrier Supporting Carrier)
      • PE NAT
    • OSPF
      • Type 7 to Type 5 Translation
      • OSPF Authentication
      • Troubleshooting OSPF Adjacencies
      • OSPFv3 LSA Types
      • OSPFv3 LSAs Example (Single Area)
    • ISIS
      • The Potential for Asymmetric Routing with Multi-Area ISIS
      • Interarea Routing is Distance-Vector
      • Basic ISIS - LSPDB
      • Multitopology
      • What is the role of CLNS and CLNP in ISIS?
      • Troubleshooting ISIS Adjacencies
    • IPv6 Transition
      • Overview
      • NAT64
      • 6to4
      • 6RD (IPv6 Rapid Deployment)
      • DS Lite (Dual Stack Lite)
      • MAP (Mapping of Address and Port)
      • Tunneling IPv6 Dynamic Routing Protocols over IPv4
    • Multicast
      • Introduction
      • IP and MAC Addressing
      • Tree Formation and Packet Forwarding
      • IGMP
      • PIM-DM (Dense Mode)
      • PIM-SM (Sparse Mode)
      • PIM-SM SPT Switchover
      • PIM-SM Tunnel Interfaces
      • PIM DR and the Assert Message
      • PIM-SM RP Discovery
      • PIM-BiDir
      • PIM-SSM (Source-Specific Multicast)
      • Interdomain Multicast (PIM-SM)
      • IPv6 Multicast
      • mVPN Introduction
      • mVPN Profile 0
      • mVPN Profile 1
      • Multicast Routing on IOS-XR
  • L2VPN & Ethernet
    • IOS-XE Ethernet Services
      • Service Instances
      • E-Line
      • E-LAN (VPLS)
      • E-Tree
      • E-Access
      • VPLS with BGP Autodiscovery
      • Martini/Kompella Circuits
    • EVPN
      • Introduction to EVPN
      • Learning EVPN VXLAN First
      • E-Line (EVPN VPWS)
      • E-Line (EVPN VPWS) on IOS-XR
      • E-Line (EVPN VPWS) Multi-Homed
      • E-LAN (EVPN Single-Homed)
    • Carrier Ethernet
      • 802.1ah (MAC-in-MAC)
      • 802.3ah (Ethernet OAM)
      • 802.1ag (CFM)
      • Cisco REP (Resilient Ethernet Protocol)
      • ITU G.8032 ERPS (Ethernet Ring Protection Switching)
  • Security
    • CoPP (Control Plane Policing)
    • LPTS (Local Packet Transport Services)
  • Misc
    • QoS
      • QoS Introduction (Part 1)
      • QoS Tools Overview and QoS Models (Part 2)
      • QoS Classification and Marking (Part 3)
      • QoS Queuing/Congestion Management (Part 4)
      • QoS Shaping and Policing (Part 5)
      • QoS for IPv6
      • MPLS QoS Basics
      • MPLS QoS Modes
      • MPLS TE QoS (DS-TE)
      • MPLS TE CBTS/PBTS
    • Automation and Assurance
      • NSO
      • NSO Command Cheat Sheet
      • Intro to YANG/NETCONF
      • YANG In-Depth
      • NETCONF In-Depth
      • RESTCONF
      • Model-Driven Telemetry
      • Automation Tool Comparison
      • Netflow
      • SNMP
    • Virtualization
      • NFV (Network Function Virtualization)
      • OpenStack
    • Transport
      • xPON
      • SONET/SDH
      • WDM
      • 4G and 5G RAN
    • High Availability (HA)
      • NSF/GR
      • NSR
      • NSF/NSR Whitepapers
      • BFD
      • Link Aggregation on IOS-XE
      • Link Aggregation on IOS-XR
    • IOS Software Overview
  • Labs
    • Lab Challenges
      • How to Use These Labs
      • Basic LDP
      • Advanced LDP
      • BGP Security
      • Unified MPLS
      • BGP Fundamentals
      • Ethernet Services
      • L3VPN Extranet
      • Multicast
      • Inter-area OSPF
      • ISIS
      • MPLS-TE
      • Control Plane Policing
      • QoS
Powered by GitBook
On this page
  1. Labs
  2. Lab Challenges

Inter-area OSPF

PreviousMulticastNextISIS

Last updated 2 years ago

Lab file

Startup configs

In this lab you will configure various features of inter-area OSPF routing. IP addressing, the underlying OSPF configuration, and BGP are all pre-configured. All transit links follow the forumla 10.X.Y.X/24. I’ve left them off the diagram to make it cleaner.

  1. Configure XR10 and R11 so that they inject a default route into OSPF, but only under certain conditions:

    • R11 should only inject a default route if it knows a default route via its eBGP peer, ISP2

    • XR10 should only inject a default route if it knows 12.12.12.12/32 via eBGP

      • (I cannot find a good way to match the 0/0 from eBGP and not iBGP in XR10)

  2. Configure area 3 so that the external routes can be injected, but summaries and externals are hidden. Then redistribute eBGP into OSPF on R3.

  3. R1 cannot ping R4 at 4.100.0.1. Why not? Fix this so that any router can ping R4’s Lo1.

  4. Configure area 1 so that R1 will not see the E2 route for 4.100.0.0/24

  5. Configure area 2 so that you achieve the output below on R2. R2 will not need to redistrbute externals into OSPF.

    R2#show ip route ospf | be Gateway
    Gateway of last resort is 10.2.6.6 to network 0.0.0.0
    
    O*IA  0.0.0.0/0 [110/2] via 10.2.6.6, 00:00:19, GigabitEthernet1

  6. Achieve the following output on R8. Only configure ABRs or ASBRs.

    R8#show ip route 1.100.0.0 255.255.0.0 longer-prefixes | beg Gateway
    Gateway of last resort is 10.8.9.9 to network 0.0.0.0
    
          1.0.0.0/24 is subnetted, 2 subnets
    O IA     1.100.1.0 [110/3] via 10.5.8.5, 00:12:18, GigabitEthernet2
    O IA     1.100.2.0 [110/3] via 10.5.8.5, 00:12:18, GigabitEthernet2
    
    
    R8#show ip route 2.100.0.0 255.255.0.0 longer-prefixes | beg Gateway
    Gateway of last resort is 10.8.9.9 to network 0.0.0.0
    
          2.0.0.0/23 is subnetted, 1 subnets
    O IA     2.100.0.0 [110/3] via 10.6.8.6, 00:01:25, GigabitEthernet3
    
    R8#show ip route 4.100.0.0 255.255.0.0 longer-prefixes | beg Gateway
    Gateway of last resort is 10.8.9.9 to network 0.0.0.0
    
          4.0.0.0/22 is subnetted, 1 subnets
    O E2     4.100.0.0 [110/1] via 10.7.8.7, 00:00:02, GigabitEthernet4

Answers

  1. On R11, create a route-map that matches a prefix-list permitting only 0/0, and a next-hop of the eBGP peer (using an ACL). Under ospf, originate default-information refrencing this route-map. On XR10, I did the same procedure except I used a route-policy with if rib-has-route 12.12.12.12/32. You cannot use a route-policy matching on destination or next-hop and attach it to default-information originate under OSPF.

  2. On R3 add area 3 nssa under OSPF. On the ABRs (R6 and XR7) add area 3 nssa no-summary. When using nssa, the no-summary keyword filters Type 3 LSAs, and also adds a default route automatically into the area. Without no-summary, you must also use area # nssa default-information originate if you wish for the ABRs to inject a default route. The no-summary keyword makes the area Totally NSSA. On R3, redistribute BGP into OSPF. This creates a Type 7 LSA. The ABRs translate this into a Type 5 LSA that is flooded throughout the entire OSPF domain. However, only the ABR with the heighest router ID injects the Type 5 into the backbone. In this case it is XR7. R6 will only inject a Type 5 if XR7 goes down.

  3. You have multiple options for achieving this. You could create a static 0/0 route on R4 pointing to R3. You could inject a 0/0 into BGP on R3 and advertise the 0/0 to the neighbor, R4. You could also redistribute OSPF into BGP on R3. If you redistribute OSPF you still have to make sure you have default-information originate under BGP so that the 0/0 from OSPF will be injected into BGP.

  4. Configure area 1 as stub. This hides externals but allows summaries into the area. The ABR automatically injects a default route into the stub area as an inter-area route. In our case, we previously had the default as an E2 route. This is changed to an IA route now.

  5. Configure area 2 as totally stub. To do this, you configure R2 for area 2 stub and the ABR(s), in this case R6, as area 2 stub no-summary. The ABR will automatically inject an IA 0/0 route.

  6. On R8, 1.100.0.0/24 and 1.100.3.0/24 are missing. On XR5, filter these two prefixes from injection into the backbone by using area 1 range 1.100.X.0/24 not-advertise. On R8, 2.100.0.0/23 is aggregated from the two prefixes on Lo1 of R2. On R6, summarize these using area 2 range 2.100.0.0 255.255.254.0. On R8, 4.100.0.0/24 has become aggregated to 4.100.0.0/22. This is an NSSA external so you have two options to achieve this. You can configure a summary-address on R3, or you can configure a summary-prefix on XR7. (If you configure the summary-address on R6, it isn’t advertised because XR7 has a higher RID). Both commands achieve the same functionality - they aggregate/summarize or filter External routes. The summary-prefix command syntax is used on IOS-XR.

78KB
Challenge - Inter-area OSPF.yaml
31KB
inter-area_ospf_initial_configs.zip
archive