# OSPF Next Hop IP Address with different Network Types

**URL:** https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922
**Category:** Lessons Discussion
**Created:** [December 22, 2016, 1:06am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922 "2016-12-22T01:06:49Z")
**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 22, 2016, 1:06am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/1 "2016-12-22T01:06:49Z")

</div>

This topic is to discuss the following lesson:

> **[OSPF Next Hop IP with different Network Types](https://networklessons.com/ospf/ospf-next-hop-ip-address-with-different-network-types)**
>
> OSPF has different next hop IP addresses depending on the network type that you use. In this lesson I'll show you the difference.

---

<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 1, 2014, 11:39pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/2 "2014-08-01T23:39:50Z")

</div>

Excellent lesson 🙂

---

<div class="post-metadata">

### Author: ![hussien.samer](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/hussien.samer/32/2096_2.png) [@hussien.samer](https://forum.networklessons.com/u/hussien.samer)
#### Post date: [September 4, 2015, 1:33pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/3 "2015-09-04T13:33:27Z")

</div>

Hi Rene,

If we use distance vector routing protocol the next hop ip address will be the hub router in both of broadcast & non-broadcast network types ? that’s right ? or I’am wrong ?

---

<div class="post-metadata">

### Author: ![hussien.samer](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/hussien.samer/32/2096_2.png) [@hussien.samer](https://forum.networklessons.com/u/hussien.samer)
#### Post date: [September 4, 2015, 1:57pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/4 "2015-09-04T13:57:25Z")

</div>

Hi Rene,

If we use OSPF non-broadcast network type we need to configure spoke router to become OSPF neighbors as well as create additional frame-relay maps ? that’s right ? please correct me if I wrong ?

---

<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 4, 2015, 1:59pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/5 "2015-09-04T13:59:26Z")

</div>

Hi Hussein,

As long as the spoke routers are neighbors with the hub then the spokes will be able to learn all prefixes. The only problem is that with the broadcast and non-broadcast network types, the spoke won’t know how to reach the next hop of another spoke…that’s what you need the frame-relay maps for.

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: [September 4, 2015, 2:02pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/6 "2015-09-04T14:02:06Z")

</div>

Hi Hussein,

Routing protocols like EIGRP or RIP don’t have the broadcast and non-broadcast network types that OSPF has. By default they use multicast and if you use the neighbor command they switch to unicast traffic only, that’s it.

The next hop will be the Hub router though, you can see see an example here:

> **[EIGRP over Frame-Relay](https://networklessons.com/eigrp/eigrp-over-frame-relay)**
>
> This lesson explains how to run EIGRP over frame-relay multipoint and point-to-point networks.

Rene

---

<div class="post-metadata">

### Author: ![hussien.samer](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/hussien.samer/32/2096_2.png) [@hussien.samer](https://forum.networklessons.com/u/hussien.samer)
#### Post date: [September 4, 2015, 2:14pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/7 "2015-09-04T14:14:39Z")

</div>

So how can the spoke router reach other with one hop if they did not have PVC ?

---

<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 4, 2015, 2:18pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/8 "2015-09-04T14:18:47Z")

</div>

What do you mean exactly Hussein?

---

<div class="post-metadata">

### Author: ![hussien.samer](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/hussien.samer/32/2096_2.png) [@hussien.samer](https://forum.networklessons.com/u/hussien.samer)
#### Post date: [September 4, 2015, 4:59pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/9 "2015-09-04T16:59:21Z")

</div>

when I said broadcast & non-broadcast network types I mean if the connection of frame relay was multipoint the network can be broadcast or non-broadcast, so if it was broadcast there is no problem else we have to configure static neighbors, and my question was what is the next hop IP address in in both cases ( broadcast & non-broadcast ), and depending on what you said, I understand that you mean in distance vector routing protocol if we use multicast or unicast the next hop IP address will be always the hub router ? that’s right ?

---

<div class="post-metadata">

### Author: ![hussien.samer](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/hussien.samer/32/2096_2.png) [@hussien.samer](https://forum.networklessons.com/u/hussien.samer)
#### Post date: [September 4, 2015, 5:01pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/10 "2015-09-04T17:01:50Z")

</div>

We have only 2 PVCs :-  
1 – between hub & spoke 1.  
2 – between nub & spoke 2.  
that mean if spoke 1 wants to reach spoke 2 he must go through the hub router ? right ?  
My question is if the OSPF network type was “broadcast” or “non-broadcast” the next hop will be the router advertising the network so how the spoke routers can reach each other if there is no PVC between them ? do you mean if we create the frame-relay maps we also create PVC between spoke routers ?

---

<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, 8:51pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/11 "2015-09-06T20:51:13Z")

</div>

Hi Hussein,

With a hub and spoke topology we only have two PVCs so spoke-to-spoke traffic always has to go through the hub. When you use broadcast or non-broadcast, each spoke will see the next hop IP address of another spoke for updates that they advertise.

In this case, you just create a frame-relay map on each spoke with the DLCI number of the local spoke and the IP address of the remote spoke. The IP packet will be sent to the hub which forwards it to the correct spoke, that’s it.

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: [September 6, 2015, 8:55pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/12 "2015-09-06T20:55:26Z")

</div>

Ah ok I see, yes you are right. With OSPF the next hop changes depending on which OSPF network type you use.

When you use RIP or EIGRP, the next hop will be the hub, doesn’t matter if you use unicast or multicast for the neighbor adjacencies.

---

<div class="post-metadata">

### Author: ![wdavis84](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/w/7ba0ec/32.png) [@wdavis84](https://forum.networklessons.com/u/wdavis84)
#### Post date: [January 2, 2016, 4:55am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/13 "2016-01-02T04:55:55Z")

</div>

Good Explanation.

Davis

---

<div class="post-metadata">

### Author: ![dmissai](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@dmissai](https://forum.networklessons.com/u/dmissai)
#### Post date: [January 17, 2016, 10:44am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/14 "2016-01-17T10:44:27Z")

</div>

Good Day Rene,

Thank You again for Brilliant explanation. Now I have a challenge to on my lab environment to configure the switch which will connect between HUB and Spoke1 and 2 as frame relay. is it possible to get clarification on that step by step with picture example if possible.

Thank You again.

---

<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 18, 2016, 2:39pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/15 "2016-01-18T14:39:12Z")

</div>

Hi Dani,

Take a look here, it’s a step-by-step walkthrough how to configure a router as frame-relay switch:

> **[Cisco Frame-relay Switch Configuration](https://networklessons.com/frame-relay/cisco-frame-relay-switch-configuration)**
>
> This lesson explains how to configure frame-relay switching on a Cisco IOS router.

Rene

---

<div class="post-metadata">

### Author: ![sales2161](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/sales2161/32/1432_2.png) [@sales2161](https://forum.networklessons.com/u/sales2161)
#### Post date: [February 14, 2019, 1:37pm UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/16 "2019-02-14T13:37:30Z")

</div>

Hi Rene,

This is by the far the most explanation for CCNP.  
My question is why do we have to elect DR/BDR on Non Broadcast network? I thought DR/BDR are only needed on broadcast networks?

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [February 15, 2019, 9:25am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/17 "2019-02-15T09:25:28Z")

</div>

Hello sales2161

Specifically, a DR/BDR are needed in a multiaccess network. Now some multiaccess networks support broadcast and some do not. Ethernet is a multiaccess network that supports broadcast while Frame-Relay can be configured as a multiaccess network, but does not support broadcast.  
Because EIGRP uses broadcast and multicast communication to allow routers to exchange information, the type of network must be known so that it can be configured to function correctly even if broadcast/multicast functionalities are not available.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![haniyeh.maghsoudi](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/haniyeh.maghsoudi/32/1887_2.png) [@haniyeh.maghsoudi](https://forum.networklessons.com/u/haniyeh.maghsoudi)
#### Post date: [August 24, 2019, 2:02am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/18 "2019-08-24T02:02:53Z")

</div>

You make it so easy! That’s awesome, thanks Rene!

---

<div class="post-metadata">

### Author: ![cpj\_68](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@cpj\_68](https://forum.networklessons.com/u/cpj_68)
#### Post date: [May 12, 2020, 5:05am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/19 "2020-05-12T05:05:08Z")

</div>

Thanks for the detailed explanation.  
After learning the configurations for different types OSPF networks, I’m now wondering under what kind of scenarios would we apply for each network?

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [May 13, 2020, 6:06am UTC](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922/20 "2020-05-13T06:06:45Z")

</div>

Hello Po

These OSPF network types have been developed based on the requirements of real life networking scenarios. Broadcast is the network type that is used by Ethernet, and is the default for OSPF. All other network types were created primarily to accommodate a very prevalent WAN technology during the 90s and the beginning of the 2000s, [Frame-Relay](https://networklessons.com/frame-relay).

Because frame-relay is unable to accommodate multicast and broadcast communication, something that is necessary for OSPF to function, ways had to be devised to allow OSPF to operate with frame-relay. This was the **primary motivation** for introducing these network types.

Now depending on the way in which the frame-relay topology is implemented, a slightly different OSPF network type needs to be chosen. You can see these differences in the various OSPF network type lessons.

I hope this has been helpful!

Laz

[Next page](https://forum.networklessons.com/t/ospf-next-hop-ip-address-with-different-network-types/922.md?page=2)
