Showing posts with label OSPF. Show all posts
Showing posts with label OSPF. Show all posts

Saturday, 24 January 2026

Route Map Redistribution and configuration

 

Why use a route map for redistribution?


Without a route-map, you redistribute everything. That's often a bad idea. You might leak routes you shouldn't, cause routing loops, or create security risks. By default, all the routes are redistributed with the metric and metric-type defined when we configure redistribution. When we want to assign different metrics, metric-type or security, we use a route-map. 

 The simple idea of using a route map in redistribution 

  • Filter: only redistribute specific prefixes
  • Modify: change metrics, tag, or route types during the exchange 
  • Control: apply logic with permit or deny statements 


 Let's see the configuration:-

Topology:-


Goal: 

  • Configure the topology as per the diagram
  • Configure the IP addresses as per the topology
  • Configure OSPF as per the topology in area 0
  • Configure RIPv2 on router 3 and advertise loopbacks interfaces
  • Configure ACL permit 192.168.31.0 192.168.32.0 192.168.33.0
  • Configure route map set metric 2000 for 192.168.31.0
  • Configure route map set metric 1000 and metric-type 1
  • Redistribute RIPv2 into OSPF with a route-map 


R1(config)#interface serial 5/0
R1(config-if)#ip address 12.1.1.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit

R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 10.1.1.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#no keepalive
R1(config-if)#exit

R1(config)#interface loopback 1
R1(config-if)#ip address 192.168.11.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 2
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 3
R1(config-if)#ip address 192.168.13.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 4
R1(config-if)#ip address 192.168.14.1 255.255.255.0
R1(config-if)#exit
R2(config)#interface serial 5/0
R2(config-if)#ip address 12.1.1.2 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit

R2(config)#interface serial 5/1
R2(config-if)#ip address 23.1.1.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet 0/0
R2(config-if)#ip address 20.1.1.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#no keepalive
R2(config-if)#exit

R2(config)#interface loopback 1
R2(config-if)#ip address 192.168.21.1 255.255.255.0
R2(config-if)#exit
R2(config)#interface loopback 2
R2(config-if)#ip address 192.168.22.1 255.255.255.0
R2(config-if)#exit
R2(config)#interface loopback 3
R2(config-if)#ip address 192.168.23.1 255.255.255.0
R2(config-if)#exit
R2(config)#interface loopback 4
R2(config-if)#ip address 192.168.24.1 255.255.255.0
R2(config-if)#exit


R3(config)#interface fastethernet 0/0
R3(config-if)#ip address 30.1.1.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#no keepalive
R3(config-if)#exit

R3(config)#interface serial 5/1
R3(config-if)#ip address 23.1.1.2 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit

R3(config)#interface loopback 1
R3(config-if)#ip address 192.168.31.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 2
R3(config-if)#ip address 192.168.32.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 3
R3(config-if)#ip address 192.168.33.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 4
R3(config-if)#ip address 192.168.34.1 255.255.255.0
R3(config-if)#exit


R1(config)#router ospf 1
R1(config-router)#router-id 10.1.1.1
R1(config-router)#network 0.0.0.0 0.0.0.0 area 0
R1(config-router)#exit

*Jan 24 11:24:24.267: %OSPF-5-ADJCHG: Process 1, Nbr 20.1.1.1 on Serial5/0 from LOADING to FULL, Loading Done

R2(config)#router ospf 1
R2(config-router)#router-id 20.1.1.1
R2(config-router)#network 12.0.0.0 0.255.255.255 area 0
R2(config-router)#network 23.0.0.0 0.255.255.255 area 0
R2(config-router)#network 20.0.0.0 0.255.255.255 area 0
R2(config-router)#network 192.168.21.0 255.0.0.0 area 0
R2(config-router)#network 192.168.22.0 255.0.0.0 area 0
R2(config-router)#network 192.168.23.0 255.0.0.0 area 0
R2(config-router)#network 192.168.24.0 255.0.0.0 area 0
R2(config-router)#exit

*Jan 24 11:24:24.167: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.1 on Serial5/0 from LOADING to FULL, Loading Done

R3(config)#router ospf 1
R3(config-router)#router-id 30.1.1.1
R3(config-router)#network 23.0.0.0 0.255.255.255 area 0
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R3(config-router)#exit

*Jan 24 11:35:25.335: %OSPF-5-ADJCHG: Process 1, Nbr 20.1.1.1 on Serial5/1 from LOADING to FULL, Loading Done

R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 192.168.31.0
R3(config-router)#network 192.168.32.0
R3(config-router)#network 192.168.33.0
R3(config-router)#network 192.168.34.0
R3(config-router)#exit

R3(config)#access-list 10 permit 192.168.31.0 255.0.0.0
R3(config)#access-list 20 permit 192.168.32.0 255.0.0.0
R3(config)#access-list 30 permit 192.168.33.0 255.0.0.0


R3#show access-lists
Standard IP access list 10
    10 permit 0.168.31.0, wildcard bits 255.0.0.0 (1 match)
Standard IP access list 20
    10 permit 0.168.32.0, wildcard bits 255.0.0.0 (1 match)
Standard IP access list 30
    10 permit 0.168.33.0, wildcard bits 255.0.0.0

R3(config)#route-map OSPF permit 10
R3(config-route-map)#match ip address 10
R3(config-route-map)#set metric 2000
R3(config-route-map)#exit

R3(config)#route-map OSPF permit 20
R3(config-route-map)#match ip address 20
R3(config-route-map)#set metric 1000
R3(config-route-map)#set metric-type type-1
R3(config-route-map)#exit

R3(config)#route-map OSPF permit 30
R3(config-route-map)#exit

R3(config)#router ospf 1
R3(config-router)#redistribute rip subnets route-map OSPF
R3(config-router)#exit
R3(config)#end

R3#show route-map OSPF
route-map OSPF, permit, sequence 10
  Match clauses:
    ip address (access-lists): 10
  Set clauses:
    metric 2000

  Policy routing matches: 0 packets, 0 bytes
route-map OSPF, permit, sequence 20
  Match clauses:
    ip address (access-lists): 20
  Set clauses:
    metric 1000
    metric-type type-1

  Policy routing matches: 0 packets, 0 bytes
route-map OSPF, permit, sequence 30
  Match clauses:
  Set clauses:
  Policy routing matches: 0 packets, 0 bytes


R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.12.0/24 is directly connected, Loopback2
C    192.168.13.0/24 is directly connected, Loopback3
C    192.168.14.0/24 is directly connected, Loopback4
O E2 192.168.31.0/24 [110/2000] via 12.1.1.2, 00:46:06, Serial5/0
     192.168.24.0/32 is subnetted, 1 subnets
O       192.168.24.1 [110/65] via 12.1.1.2, 00:46:06, Serial5/0
O    20.0.0.0/8 [110/65] via 12.1.1.2, 00:46:06, Serial5/0
O    23.0.0.0/8 [110/128] via 12.1.1.2, 00:46:06, Serial5/0
C    192.168.11.0/24 is directly connected, Loopback1
     192.168.21.0/32 is subnetted, 1 subnets
O       192.168.21.1 [110/65] via 12.1.1.2, 00:46:06, Serial5/0
C    10.0.0.0/8 is directly connected, FastEthernet0/0
     192.168.23.0/32 is subnetted, 1 subnets
O       192.168.23.1 [110/65] via 12.1.1.2, 00:46:07, Serial5/0
     192.168.22.0/32 is subnetted, 1 subnets
O       192.168.22.1 [110/65] via 12.1.1.2, 00:46:07, Serial5/0
O E2 192.168.34.0/24 [110/20] via 12.1.1.2, 00:46:07, Serial5/0
C    12.0.0.0/8 is directly connected, Serial5/0
O E1 192.168.32.0/24 [110/1128] via 12.1.1.2, 00:46:07, Serial5/0
O E2 192.168.33.0/24 [110/20] via 12.1.1.2, 00:46:07, Serial5/0
O    30.0.0.0/8 [110/129] via 12.1.1.2, 00:46:07, Serial5/0



IF YOU LIKE THIS BLOG, PLEASE VISIT MY YOUTUBE CHANNEL 

Sunday, 27 July 2025

OSPF DR and BDR Explained: The Hidden Heroes of Network Efficiency.

In the world of networking, OSPF (Open Shortest Path First) is one of the most widely used dynamic routing protocols. But did you know that behind the scenes, two special routers —the **Designated Router (DR)** and **Backup Designated Router (BDR)** — work tirelessly to keep your network running smoothly?




In this blog post, we’ll uncover:

 

  • 1.      What do DR and BDR do for our network?
  • 2.      How do they get elected, and why is this election important?
  • 3.      What are the Common mistakes in OSPF configuration?
  • 4.      What are the best practices for optimizing DR/BDR selection?

 

Let's dive in-à

·        Why do we need DR and BDR?

Ø  Imagine a conference room where everyone is shouting updates at the same time--- chaos, right? That’s what happens in an OSPF multi-access network (Ethernet) without a DR and BDR.

 

·        The problem: toooo many LSAs*

Ø  Every OSPF router floods Link-State Advertisements (LSAs) to announce network changes. In a large network, this creates excessive traffic and inefficiency.

 

·        The Solution: DR and BDR to the Rescue**

>Designated Router DR -> becomes the central hub for LSA distribution.

> BDR Backup DR->  standby to take over if the DR fails.

> All the other routers (***DROTHERs***) only talk to the DR and BDR, reducing unnecessary chatter.

 

Ø  Result: A cleaner, more efficient OSPF network**

 

·        How does the DR and BDR election work?

Ø  Not every router gets to be the DR- there’s a strict election process.

Ø  Only routers in ** multi-access networks*** (Ethernet, Frame Relay) elect a DR/BDR.

Ø  Point-to-point links (like PPP) don’t need DR/BDR.

 

 

·        What are the Election Rules?

Ø  OSPF Priority (0-255)

Ø  Default - ***1***

Ø  If OSPF priority is 0, it means the router is ineligible to be elected

Ø  If the priorities are equal, the router with the highest RID wins

Ø  Router ID is chosen from—manually configured RID, the highest loopback IP, highest active physical IP.

 

 

·        The surprising Truth: Elections are non-preemptive.

Ø  Once elected, the DR/BDR OSPF routers stay in power unless they fail.

Ø  A new router with a higher priority won't take over the current DR BDR. Unless the current DR/BDR fails.

 

·        Common DR/BDR configuration mistakes.

Ø  Ignoring priority setting > if all routers have default priority 1, the highest router ID wins, which may not be optimal. FIX – manually set priorities on critical routers.

Ø  Adding a new high-priority router won’t change the DR unless the current one fails. FIX restart OSPF on the interface if needed.

Ø  If router IDs are unstable, for example, if they're based on a physical interface, DR election can be unpredictable. FIX always set a STATIC router ID in OSPF configuration.

 

·        Best practice for DR/BDR optimization.

Ø  Set priority 100 on the routers you want as DR/BDR, and set priority 0 on routers that should never become DR.

Ø  Avoid DR on low power routers- the DR does extra work, do not make a weak router the DR.

Ø  Use the loopback interface for router-ID.

 

 Let's see the configuration=>https://www.youtube.com/@internetworkss

Topology:-


  • Configure the topology as per the diagram
  • Configure the IP addresses as per the topology 
  • Configure OSPF 1 and advertise directly connected interfaces 
  • Configure router 1 DR, router 2, and router 3 Drothers 
  • Configure Router 4 as backup DR
  • VERIFY THE CONFIGURATIONS.

Friday, 30 May 2025

What is OSPFv2 (Open Shortest Path First version 2) subcommand?

 OSPFv2 (Open Shortest Path First version 2 is a link-state routing protocol designed for IPv4 networks. It is defined in RFC 2328 and is widely used in enterprise and service provider networks due to its efficiency and scalability.





Key Features of OSPFv2:

1. Link-State Protocol:

  • Maintains a complete topological map of the network (LSDB - Link-State Database).
  • Uses the Dijkstra (SPF) algorithm to compute the shortest path to all destinations.

2. Hierarchical Routing (Areas):

  • Divides networks into areas to reduce routing overhead.
  • Backbone Area (Area 0) is mandatory; all other areas must connect to it.

Types of areas:

  • Normal Areas (Standard areas)
  • Stub Areas (Block external routes)
  • Totally Stubby Areas (Block external and inter-area routes)
  • Not-So-Stubby Areas (NSSA) (Allows limited external routes)

Metric (Cost):

  • Calculated based on interface bandwidth (Cost = Reference BW / Interface BW, default Reference BW = 100 Mbps).

Packet Types:

  • Hello (Discover/maintain neighbors)
  • DBD (Database Description) (Exchange LSDB info)
  • LSR (Link-State Request) (Request specific LSA)
  • LSU (Link-State Update) (Send LSA updates)
  • LSAck (Link-State Acknowledgment) (Acknowledge LSUs)

LSA Types (Link-State Advertisements):

  • Type 1 (Router LSA) – Intra-area router info.
  • Type 2 (Network LSA) – Multi-access network info.
  • Type 3 (Summary LSA) – Inter-area routes (ABR-generated).
  • Type 4 (ASBR Summary LSA) – Location of ASBR.
  • Type 5 (External LSA) – Routes from other AS (redistributed).
  • Type 7 (NSSA External LSA) – External routes in NSSA.

Neighbor States:

  • Down → Init → 2-Way → ExStart → Exchange → Loading → Full

Authentication:

Supports plain-text, MD5, and SHA authentication for security.


Let's see the configuration of the OSPFv2 subcommand.


Topology:-



  • Configure the topology as per the diagram
  • Configure the IP addresses as per the topology 
  • Configure OSPFv2 with the subcommand 
  • advertise directly connected routes and loopbacks
  • Make sure all the routes are exchanged 
  • Verify with ping and show commands

Friday, 9 November 2018

OSPF Link State Advertisement (LSA)



OSPF uses an LSDB (link state database) and fills this with LSAs (link state advertisement) LSA holds the topology information and LSA is held in the LSDB. Instead of using 1 LSA packet, OSPF has many different varieties of LSAs.

Here is the list:
  
   LSA Types
                          Description
Type 1
Router LSAs
Type 2
Network LSAs
Type 3 or 4
Summary LSAs
Type 5
Autonomous system external LSAs
Type 6
Multicast OSPF LSAs
Type 7
Defined for not-so-stubby areas
Type 8
External attribute LSAs for
 Border Gateway Protocol (BGP)
Type 9, 10, and 11
Opaque LSAs

LSA Type 1: Router LSA
Type 1 router LSA is generated by internal routers. You can identify the “O” routes in the routing table, Type 1 LSA floods within its area only; does not cross ABR. In the type 1 LSA, you will find a list with all the directly connected links of this router.


LSA Type 2: Network LSA
The network LSA or Type 2 creates for each multi-access network. LSA Type 2 is advertised by the DR of the transit network and floods within its area only, network LSA does not cross ABR. You can identify “0” routes in the routing table. In Type 2 LSA you will find all the routers that are connected to the multi-access network, the DR, and the prefix and subnet mask.


LSA Type 3: Summary LSA
 The summary LSA is created by the ABR to send updates from one area to another area. You can identify is “OIA” routes in the routing table. Summary LSA is used to flood network information subnet in the Origin area and cost but does not topology data.


LSA Type 4: ASBR summary LSA
Type 4 LSA is used to advertise ASBR to all other areas in the autonomous system. ASBR summary LSA includes the router ID of the ASBR in the link-state ID field.


LSA Type 5: External LSA
Type 5 LSA External LSA also known as autonomous system external LSA, AS external LSA created by ASBR for external routes redistributed into OSPF (LSA 5), external LSAs are advertised and owned by the originating ASBR. External LSAs flood through the entire autonomous system, and advertising router ID (ASBR) is unchanged throughout the system. Type 4 LSA is needed to find the ASBR.


LSA-6 Multicast OSPF LSA
Type 6 LSA are used in multicast routing (MOSPF routing protocol) multicast LSA (Cisco routers do not support)

LSA Type 7: NSSA external
Type 7 LSA is created by ASBR inside an NSSA, instead of a type 5 LSA. Type 7 LSA flooded only within its area of origin and converted to Type 5 LSA on an ABR toward another area.
·         N1- metric increases as it is passed through the network
·         N2- metric doesn’t increase  (default)


LSA Type 8: external attribute LSA
External attribute LSA is created by ASBR during BGP to OSPF redistribution to preserve BGP attributes of the redistribution network.

LSA Type 9, 10, 11
·         Used in OSPF and BGP inter-networking




 


 


Instagram

Facebook


Twitter



LINKEDIN








Thursday, 8 November 2018

OSPF Virtual Link


An Open Shortest Path First (OSPF) autonomous system all areas must be physically connected to the backbone area (Area 0). In some cases, if this is not possible, we can use a virtual link to connect to the backbone (Area 0) through a non-backbone area. We can also use the virtual links to connect two parts of a partitioned backbone (Area 0) through a non-backbone area. The area through which we configure the virtual link, known as a transit area, must have full routing information. Remember the transit area cannot be a stub area.







Virtual link must be configuring both sides with the same area ID and the corresponding virtual link OSPF neighbor router ID. Show IP OSPF neighbors command give you the router ID information.

area-id
Is identifier for the OSPF area assigned to the transit area for the virtual link. OSPF area ID can be from 0 to 4294967295 or an IP address.
router-id
Router ID is associated with the virtual link neighbor. Specify as an IP address. The router ID appears in the show IP OSPF neighbors command.



In short: virtual link are used to connect a discontiguous area to area 0, virtual link is a logical connection built between routers, virtual links are recommended for backup or temporary connections


Before we start  BGP configuration check out some important  of BGP CCIE exam topics.


Here are the lists of all OSPF labs and theories CCNA to CCIE.











configuration virtual link:

Topology:


GOAL:

  • Configure interfaces and assigned IP addresses as per the Topology
  • advertise the interfaces using multiple areas defined as per the Topology
  • configure the manual router id (RID) R1-11.1.1.1, R2-22.1.1.1, and R3-33.1.1.1
  • make sure that the loop-back of R1- 11.0.0.0 routes should be seen on all the other routers

R1#show ip interface brief

Interface              IP-Address      OK? Method Status                Protocol
FastEthernet 0/0        10.1.1.1        YES manual up                    up
Serial3/0                   1.1.1.1         YES manual up                    up
Loopback0              11.0.0.1        YES manual up                    up
Loopback1              11.0.1.1        YES manual up                    up
Loopback2              11.0.2.1        YES manual up                    up
Loopback3              11.0.3.1        YES manual up                    up



R2#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
FastEthernet0/0        20.1.1.1        YES manual up                    up
Serial3/0                     1.1.1.2         YES manual up                    up
Serial3/1                     2.2.2.1         YES manual up                    up

R3#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
FastEthernet0/0        30.1.1.1        YES manual up                    up
Serial3/1                    2.2.2.2         YES manual up                    up
Serial3/2                    3.3.3.1         YES manual up                    up


R4#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
FastEthernet0/0        40.1.1.1        YES manual up                    up
Serial3/2                   3.3.3.2         YES manual up                    up
Loopback0              14.0.0.1        YES manual up                    up
Loopback1              14.0.1.1        YES manual up                    up
Loopback2              14.0.2.1        YES manual up                    up
Loopback3              14.0.3.1        YES manual up                    up

R1(config)#router ospf 1
R1(config-router)#router-id 11.1.1.1
R1(config-router)#NETwork 1.0.0.0 0.255.255.255 Area 20
R1(config-router)#NETwork 10.0.0.0 0.255.255.255 Area 20
R1(config-router)#NETwork 11.0.0.0 0.0.0.255 area 10

R2(config)#router ospf 1
R2(config-router)#router-id 22.1.1.1
R2(config-router)#network 1.0.0.0 0.255.255.255 area 20
R2(config-router)#network 2.0.0.0 0.255.255.255 area 20
R2(config-router)#network 20.0.0.0 0.255.255.255 area 20

R3(config)#router ospf 1
R3(config-router)#router-id 33.1.1.1
R3(config-router)#network 2.0.0.0 0.255.255.255 a 20
R3(config-router)#network 3.0.0.0 0.255.255.255 area 0
R3(config-router)#network 30.0.0.0 0.255.255.255 area 20

R4(config)#router ospf 1
R4(config-router)#network 3.0.0.0 0.255.255.255 area 0
R4(config-router)#network 40.0.0.0 0.255.255.255 area 0
R4(config-router)#network 14.0.0.0 0.0.0.255 area  0

R2#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

O IA  3.0.0.0/8 [110/128] via 2.2.2.2, 00:28:48, Serial3/1
O     10.0.0.0/8 [110/65] via 1.1.1.1, 00:31:39, Serial3/0
      14.0.0.0/32 is subnetted, 1 subnets
O IA     14.0.0.1 [110/129] via 2.2.2.2, 00:26:24, Serial3/1
O     30.0.0.0/8 [110/65] via 2.2.2.2, 00:29:55, Serial3/1
O IA  40.0.0.0/8 [110/129] via 2.2.2.2, 00:26:39, Serial3/1


R3#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

O     1.0.0.0/8 [110/128] via 2.2.2.1, 00:29:41, Serial3/1
O     10.0.0.0/8 [110/129] via 2.2.2.1, 00:29:41, Serial3/1
      14.0.0.0/32 is subnetted, 1 subnets
O        14.0.0.1 [110/65] via 3.3.3.2, 00:27:06, Serial3/2
O     20.0.0.0/8 [110/65] via 2.2.2.1, 00:29:41, Serial3/1
O     40.0.0.0/8 [110/65] via 3.3.3.2, 00:27:21, Serial3/2

R4#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

O IA  1.0.0.0/8 [110/192] via 3.3.3.1, 00:28:06, Serial3/2
O IA  2.0.0.0/8 [110/128] via 3.3.3.1, 00:28:06, Serial3/2
O IA  10.0.0.0/8 [110/193] via 3.3.3.1, 00:28:06, Serial3/2
O IA  20.0.0.0/8 [110/129] via 3.3.3.1, 00:28:06, Serial3/2
O IA  30.0.0.0/8 [110/65] via 3.3.3.1, 00:28:06, Serial3/2

No routes from 11.0.0.0 coming in to routing table  of R2, R3, R3, and R4 as it belong to area 10 which in not directly connected to area 0

in order to make sure that the loopback of R1 (11.0.0.0) routes should be seen on all the other routes we need to configure Virtual-link which allows area 10 to area 0 virtually over area 20 virtual area.

R1#show ip protocols
*** IP Routing is NSF aware ***

Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 11.1.1.1
  Number of areas in this router is 2. 2 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    1.0.0.0 0.255.255.255 area 20
    10.0.0.0 0.255.255.255 area 20
    11.0.0.0 0.0.0.255 area 10
  Routing Information Sources:
    Gateway         Distance      Last Update
    22.1.1.1             110      00:37:30
    33.1.1.1             110      00:32:35
  Distance: (default is 110)



R3#show ip protocols
*** IP Routing is NSF aware ***

Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 33.1.1.1
  It is an area border router
  Number of areas in this router is 2. 2 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    2.0.0.0 0.255.255.255 area 20
    3.0.0.0 0.255.255.255 area 0
    30.0.0.0 0.255.255.255 area 20
  Routing Information Sources:
    Gateway         Distance      Last Update
    11.1.1.1             110      00:35:57
    14.0.3.1             110      00:33:22
    22.1.1.1             110      00:35:57
  Distance: (default is 110)

R1(config)#router ospf 1
R1(config-router)#area 20 virtual-link 33.1.1.1

R3(config)#router ospf 1
R3(config-router)#area 20 virtual-link 11.1.1.1

R2#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

O IA  3.0.0.0/8 [110/128] via 2.2.2.2, 00:40:25, Serial3/1
O     10.0.0.0/8 [110/65] via 1.1.1.1, 00:43:16, Serial3/0
      11.0.0.0/32 is subnetted, 1 subnets
O IA     11.0.0.1 [110/65] via 1.1.1.1, 00:02:47, Serial3/0
      14.0.0.0/32 is subnetted, 1 subnets
O IA     14.0.0.1 [110/129] via 2.2.2.2, 00:38:01, Serial3/1
O     30.0.0.0/8 [110/65] via 2.2.2.2, 00:41:32, Serial3/1
O IA  40.0.0.0/8 [110/129] via 2.2.2.2, 00:38:16, Serial3/1


R3#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

O     1.0.0.0/8 [110/128] via 2.2.2.1, 00:41:43, Serial3/1
O     10.0.0.0/8 [110/129] via 2.2.2.1, 00:41:43, Serial3/1
      11.0.0.0/32 is subnetted, 1 subnets
O IA     11.0.0.1 [110/129] via 2.2.2.1, 00:03:18, Serial3/1
      14.0.0.0/32 is subnetted, 1 subnets
O        14.0.0.1 [110/65] via 3.3.3.2, 00:39:08, Serial3/2
O     20.0.0.0/8 [110/65] via 2.2.2.1, 00:41:43, Serial3/1
O     40.0.0.0/8 [110/65] via 3.3.3.2, 00:39:23, Serial3/2

R4#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

O IA  1.0.0.0/8 [110/192] via 3.3.3.1, 00:40:10, Serial3/2
O IA  2.0.0.0/8 [110/128] via 3.3.3.1, 00:40:10, Serial3/2
O IA  10.0.0.0/8 [110/193] via 3.3.3.1, 00:40:10, Serial3/2
      11.0.0.0/32 is subnetted, 1 subnets
O IA     11.0.0.1 [110/193] via 3.3.3.1, 00:03:35, Serial3/2
O IA  20.0.0.0/8 [110/129] via 3.3.3.1, 00:40:10, Serial3/2
O IA  30.0.0.0/8 [110/65] via 3.3.3.1, 00:40:10, Serial3/2


R1#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
33.1.1.1          0   FULL/  -           -        2.2.2.2         OSPF_VL0
22.1.1.1          0   FULL/  -        00:00:32    1.1.1.2         Serial3/0

R1#show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 33.1.1.1 is up
  Run as demand circuit
  DoNotAge LSA allowed.
  Transit area 20, via interface Serial3/0
 Topology-MTID    Cost    Disabled     Shutdown      Topology Name
        0           128       no          no            Base
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
    Adjacency State FULL (Hello suppressed)
    Index 1/2, 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

R4#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/131/172 ms





 


 


Instagram

Facebook


Twitter



LINKEDIN








How to configure ASA Dynamic routing?

  Configuring EIGRP on Cisco ASA: A Quick Lab Guide Setting up EIGRP on a Cisco Adaptive Security Appliance (ASA) is a bit different from do...