# How to configure OSPF Virtual Link

**URL:** https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942
**Category:** Lessons Discussion
**Created:** [December 24, 2016, 6:15pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942 "2016-12-24T18:15:50Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 24, 2016, 6:15pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/1 "2016-12-24T18:15:50Z")

</div>

This topic is to discuss the following lesson:

> **[How to configure OSPF Virtual Link](https://networklessons.com/ospf/how-to-configure-ospf-virtual-link)**
>
> OSPF Virtual Links can fix a broken backbone area or connect areas to the backbone area. In this lesson, I'll show you how to configure both.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [August 14, 2013, 7:17pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/2 "2013-08-14T19:17:00Z")

</div>

Rene ! this is really grt !

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 3, 2013, 10:42am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/3 "2013-11-03T10:42:06Z")

</div>

Hi, thank you very much for this very easy to understand explanation. Great job rene.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [November 11, 2013, 10:01am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/4 "2013-11-11T10:01:43Z")

</div>

Glad to hear you like it!

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [December 21, 2013, 10:08pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/5 "2013-12-21T22:08:29Z")

</div>

Is it possible to build a virtual link over frame-relay link ? for example in the diagram above if the router in between was a frame-relay switch

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [January 14, 2014, 7:01pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/6 "2014-01-14T19:01:47Z")

</div>

Hi Jurati,

Yes this is possible, when your OSPF neighbor adjacency is working over the frame relay link you should be able to configure a virtual link.

Rene

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [January 21, 2014, 7:57pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/7 "2014-01-21T19:57:46Z")

</div>

Hi Rene , according to OSPF " RID is highest IP of loopback interface or software interfaces which are active when OSPF routers start up ,in absence of software/loopback interfaces RID is the highest IP of the active interfaces when OSPF starts "

in this example RID for router Nancy is 1.1.1.1 since it’s the loopback interface for that area

How come RID for router Susan is 192.168.23.3 , for router Susan It’s RID should be of it’s loopback interface 3.3.3.1

here why does router selects RID as 192168.23.3 since loopback interface is also present in that area .

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [January 23, 2014, 9:15pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/8 "2014-01-23T21:15:39Z")

</div>

Hi Nitin,

What you say is correct. The thing with the OSPF router ID however is that it’s non preemptive which means that once it has selected an ID, it will not change it unless you reboot the router or reset the OSPF process. In this example, I probably configure OSPF before adding some of the loopback interfaces. Hope that helps.

Rene

---

<div class="post-metadata">

### Author: ![njrusmc](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/4af34b/32.png) [@njrusmc](https://forum.networklessons.com/u/njrusmc)
#### Post date: [February 14, 2014, 2:22pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/9 "2014-02-14T14:22:25Z")

</div>

Another bit of information: OSPF VLs cannot be constructed if the interface from which the VL would recurse, on either end, is unnumbered. In the first example the Nancy Fa0/0 and Donna Fa0/0 would have to have real IP addresses on them. However, OSPF VLs can transit unnumbered interfaces if those links are in the middle of the area. If area 1 were much larger, and some of the intermediary links were unnumbered, that would work fine. Reason is because although OSPF VLs behave like demand circuits, initially they send unicast hellos between exit interfaces and this must have a real IP address.

---

<div class="post-metadata">

### Author: ![prince20020](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/p/4491bb/32.png) [@prince20020](https://forum.networklessons.com/u/prince20020)
#### Post date: [February 28, 2014, 10:22am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/10 "2014-02-28T10:22:06Z")

</div>

Hi Rene,

I configured Discontiguous area 0 for virtual links,by default if we enable loopback interface on the router,it takes loop back interface., i.e 3.3.3.1 as the router ID and one more thing with lab,i get error message like mismatch in the area ID,before I configure a virtual link between router Nancy and Susan.

This lab dint work the way its show in the figure.Need your help in this rene.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [September 5, 2014, 5:15pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/11 "2014-09-05T17:15:02Z")

</div>

Hi Rene  
Is it possible for VL’s to be used over different AS? In your example, instead of OSPF area 1, could there be a network running i.e. EIGRP (Nancy and Donna would be ASBR’s), so OSPF area 2 would be directly connected to OSPF area 0 passing through a different AS? If for any reason areas 0 and 2 should belong to the same AS (let’s say after consolidation of two companies, one running only OSPF and the other running both EIGRP and OSPF), could we use VL’s instead of redistribution?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [September 9, 2014, 7:47pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/12 "2014-09-09T19:47:08Z")

</div>

Hi Apostolis,

The virtual link is a OSPF-only feature. Also keep in mind that it doesn’t work with AS numbers, only EIGRP (and BGP) work with AS numbers.

You could make it work with a GRE tunnel though. If you run EIGRP on the 192.168.12.0 /24 instead of OSPF then you can create a GRE tunnel between Nancy / Donna and connect the two distance OSPF areas with that.

Rene

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [September 11, 2014, 12:39pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/13 "2014-09-11T12:39:51Z")

</div>

Is possible to use virtual links within the same area?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [September 11, 2014, 1:01pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/14 "2014-09-11T13:01:57Z")

</div>

You probably could configure a virtual link between two routers in the same area but there’s no point in doing so 🙂

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [September 19, 2014, 4:49am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/15 "2014-09-19T04:49:09Z")

</div>

Rene

Is it possible for a virtual link to transit two areas?

For instance, there are areas 0, 1, 2, and 3.

How to create a virtual link that connects area 1 and area 3 together?

Thank you for your detailed explanation!

Lee

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [September 19, 2014, 5:45pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/16 "2014-09-19T17:45:30Z")

</div>

Hi Lee,

It’s possible but you have to do it in steps.

First create a virtual link between Area 0 and Area 1 so you can reach Area 2. Then you can configure another one from Area 2 to Area 3.

Rene

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [October 18, 2014, 10:00am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/17 "2014-10-18T10:00:23Z")

</div>

Hi Rene  
Thank You Very Much…

---

<div class="post-metadata">

### Author: ![johnfrades](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@johnfrades](https://forum.networklessons.com/u/johnfrades)
#### Post date: [September 5, 2015, 4:05pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/18 "2015-09-05T16:05:53Z")

</div>

Rene, why is the Age set to DoNotAge? is there any reason why? thank you

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [September 6, 2015, 4:51pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/19 "2015-09-06T16:51:07Z")

</div>

Hi John,

Good question, the only other option where you can set the DNA bit is the “on demand circuit”. This can be used for (WAN) links where you pay for a certain amount of bytes of per minute/second. You don’t want to refresh LSAs on these links since they will keep the link up.

I guess that’s why they also decided to set the DNA bit for the virtual link in case you have links like this.

Rene

---

<div class="post-metadata">

### Author: ![suvra.mitra](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@suvra.mitra](https://forum.networklessons.com/u/suvra.mitra)
#### Post date: [January 2, 2016, 2:53am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942/20 "2016-01-02T02:53:43Z")

</div>

Hi Rene,

one thing I don’t understand is that once the virtual link is configured between Area 0 and Area 1, we seem to lose visibility of how the O IA routes were learnt from Area 2.

That is, when we do “sh ip ospf dat” there doesn’t seem to be anything showing Area 2..

It seems strange that we lose where the routes are coming from.

Thanks.

[Next page](https://forum.networklessons.com/t/how-to-configure-ospf-virtual-link/942.md?page=2)
