---
title: Downstream OSPF adjacencies across a Nexus NXOS vPC
description: Enable Layer 3 peer-router on Nexus vPC to stabilize OSPF adjacencies, prevent TTL decrement, and fix flapping in multi-hop environments.
---

[![looking-point_LogoWhite _ Presidio-1](https://www.lookingpoint.com/hubfs/looking-point_LogoWhite%20_%20Presidio-1.svg) ![LOOKINGPOINT](https://www.lookingpoint.com/hs-fs/hubfs/Theme%20Oct%202019/images/logo@mobile.png?width=444&height=86&name=logo@mobile.png) ](https://www-lookingpoint-com.sandbox.hs-sites.com/-temporary-slug-c10ae2f5-f23e-43f2-8214-f73884fb09ae)

- [Solutions](https://www.lookingpoint.com) 
    - [Collaboration](https://www.lookingpoint.com/it-solutions-collaboration)
    - [Security ](https://www.lookingpoint.com/it-solutions-security)
    - [Networking ](https://www.lookingpoint.com/it-solutions-networking)
    - [Data Center ](https://www.lookingpoint.com/data-center)
    - [Cloud](https://www.lookingpoint.com/cloud)
    - [Managed Services](https://www.lookingpoint.com/it-support-services)
    - [Lifecycle Management](https://www.lookingpoint.com/lifecycle-management-acela)
- [Services](https://www.lookingpoint.com/en/solutions-services) 
    - [Assess and Design ](https://www.lookingpoint.com/assess-and-design-it-solutions)
    - [Deployment](https://www.lookingpoint.com/deployment-it-services-solutions)
    - [Support](https://www.lookingpoint.com/it-support-services)
    - [Wireless Surveys Assessments](https://www.lookingpoint.com/en-us/wireless-surveys-assessments)
    - [Project Management ](https://www.lookingpoint.com/project-management)
    - [Integration Center](https://www.lookingpoint.com/integration-services)
    - [Lifecycle Support](https://www.lookingpoint.com/it-lifecycle-support)
    - [Locations Serviced](https://www.lookingpoint.com/it-consulting-san-francisco-bay-area)
    - [Customer Success](https://www.lookingpoint.com/services-customer-success)
- [Partners](https://www.lookingpoint.com/partner)
- [Blog](https://www.lookingpoint.com/blog)

- [Solutions](https://www.lookingpoint.com) 
    - [Collaboration](https://www.lookingpoint.com/it-solutions-collaboration)
    - [Security ](https://www.lookingpoint.com/it-solutions-security)
    - [Networking ](https://www.lookingpoint.com/it-solutions-networking)
    - [Data Center ](https://www.lookingpoint.com/data-center)
    - [Cloud](https://www.lookingpoint.com/cloud)
    - [Managed Services](https://www.lookingpoint.com/it-support-services)
- [Services](https://www.lookingpoint.com/en/solutions-services) 
    - [Assess and Design](https://www.lookingpoint.com/assess-and-design-it-solutions)
    - [Deployment](https://www.lookingpoint.com/deployment-it-services-solutions)
    - [Support](https://www.lookingpoint.com/it-support-services)
    - [Wireless Survey Assessment](https://www.lookingpoint.com/en-us/wireless-surveys-assessments)
    - [Project Management ](https://www.lookingpoint.com/project-management)
    - [Lifecycle Management](https://www.lookingpoint.com/lifecycle-management-acela)
    - [Integration Center](https://www.lookingpoint.com/integration-services)
    - [Locations Serviced](https://www.lookingpoint.com/it-consulting-san-francisco-bay-area)
    - [Customer Success](https://www.lookingpoint.com/services-customer-success)
- [Partners](https://www.lookingpoint.com/partner)
- [Blog](https://www.lookingpoint.com/blog)
- [+1 925-566-3480](tel:+1%20925-566-3480)
- [DO NOT SHARE OR SELL MY PERSONAL INFORMATION](https://na1.hs-data-privacy.com/request/TrvvEe3VpnlESmYolHn3xw)

- [![phone@2x](https://www.lookingpoint.com/hubfs/Theme%20Oct%202019/fonts/phone@2x.png) +1 925-566-3480 ](tel:+19255663480)
- [![user@2x](https://www.lookingpoint.com/hubfs/Theme%20Oct%202019/fonts/user@2x.png) Acela Portal ](https://my.lookingpoint.com/)
- [Free Consultation](https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc#get-free-popup)

 Let’s Connect

[Home](https://www.lookingpoint.com/) [Blog](https://www.lookingpoint.com/blog) Downstream OSPF adjacencies across a Nexus NXOS vPC

# Blog

 May  29

Downstream OSPF adjacencies across a Nexus NXOS vPC

 Posted by [Craig Grant](https://www.lookingpoint.com/blog/author/craig-grant)

[**0](https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc#comments-listing)

** Share

- [**](https://www.facebook.com/sharer/sharer.php?u=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc&title=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC&picture=&description=Enable%20Layer%203%20peer-router%20on%20Nexus%20vPC%20to%20stabilize%20OSPF%20adjacencies,%20prevent%20TTL%20decrement,%20and%20fix%20flapping%20in%20multi-hop%20environments.)
- [**](https://twitter.com/intent/tweet?source=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc&text=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC)
- [**](https://plus.google.com/share?url=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc)
- [**](http://www.linkedin.com/shareArticle?mini=true&url=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc&title=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC&summary=Enable%20Layer%203%20peer-router%20on%20Nexus%20vPC%20to%20stabilize%20OSPF%20adjacencies,%20prevent%20TTL%20decrement,%20and%20fix%20flapping%20in%20multi-hop%20environments.)
- [**](mailto:?subject=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC&body=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC%20https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc)

[IT services](https://www.lookingpoint.com/blog/topic/it-services) [IT consulting](https://www.lookingpoint.com/blog/topic/it-consulting) [it security](https://www.lookingpoint.com/blog/topic/it-security) [OSPF](https://www.lookingpoint.com/blog/topic/ospf) [IT Solutions](https://www.lookingpoint.com/blog/topic/it-solutions) [TTL](https://www.lookingpoint.com/blog/topic/ttl) [vPC peer-gateway](https://www.lookingpoint.com/blog/topic/vpc-peer-gateway) [downstream](https://www.lookingpoint.com/blog/topic/downstream) [layer3 peer-router](https://www.lookingpoint.com/blog/topic/layer3-peer-router) [Nexus NXOS vPC](https://www.lookingpoint.com/blog/topic/nexus-nxos-vpc)

OSPF is mostly used between a Core switch and downstream OSPF enabled devices like distribution switches, firewalls, etc. If the downstream device is connected via link aggregation to a Nexus vPC pair and vPC peer-gateway is configured, you will encounter OSPF adjacency flaps. This will not be noticed unless the OSPF adjacencies are monitored or debugged, so most engineers are not even aware that there is an underlying routing issue.

Example basic topology:

 

![Downstream OSPF adjacencies across a Nexus NXOS vPC](https://www.lookingpoint.com/hs-fs/hubfs/image-png-Aug-02-2024-10-02-18-3061-PM.png?width=500&height=524&name=image-png-Aug-02-2024-10-02-18-3061-PM.png)

 

In the attached example, Switch A is connected via a PortChannel to the Nexus vPC. An OSPF adjacency will form between Switch A and Switch B, as well as Switch A and Switch C via SVI vlan 100, which is by design.

The problem arises when Switch A can also reach Switch B via Switch C across the vPC peer link. OSPF by default has a TTL of 1 which prevents devices more than 1 hop for establishing an adjacency. OSPF TTL’s are decremented each time an IP packet is forwarded by a switch so the OSPF packets initiated from Switch A will never be received by Switch B via Switch C causing flapping messages.

Nexus NX-OS introduced an enhancement to address this.

“layer3 peer-router” needs to be configured on the vPC pair. “layer3 peer-router” prevents the OSPF ttl from decrementing and therefore stabilizing the OSPF adjacencies.

Configuration Example:

vpc domain 1

peer-keepalive destination x.x.x.2 source x.x.x.x.1 vrf vpc-keepalive

**peer-gateway**

**layer3 peer-router**

** **

**NB** “peer-gateway” needs to be configured before layer3 peer-router**

 

 

In conclusion, while OSPF is a widely used protocol for establishing adjacencies between core switches and downstream devices like distribution switches and firewalls, it can encounter issues when used with a Nexus vPC pair configured with peer-gateway. This configuration can lead to OSPF adjacency flaps that often go unnoticed without careful monitoring. The underlying issue arises due to the default OSPF TTL of 1, which prevents packets from traversing more than one hop. This problem can be mitigated by enabling the "layer3 peer-router" feature on the vPC pair, which prevents TTL decrement and stabilizes OSPF adjacencies. Proper configuration, as demonstrated in the example, ensures reliable OSPF operation in such network topologies.

 

LookingPoint offers multiple IT services if you’re interested. Want more information, give us a call! Please reach out to us at [sales@lookingpoint.com](mailto:sales@lookingpoint.com) and we’ll be happy to help!

[![Contact Us](https://no-cache.hubspot.com/cta/default/2215854/7814218f-8d49-4d01-9a8c-095c00c0b08d.png)](https://cta-redirect.hubspot.com/cta/redirect/2215854/7814218f-8d49-4d01-9a8c-095c00c0b08d)

 Written By:

Ryan Alibrando, Managed Services Team Lead

 SHARE:

- [**](https://www.facebook.com/sharer/sharer.php?u=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc&title=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC&picture=&description=Enable%20Layer%203%20peer-router%20on%20Nexus%20vPC%20to%20stabilize%20OSPF%20adjacencies,%20prevent%20TTL%20decrement,%20and%20fix%20flapping%20in%20multi-hop%20environments.)
- [**](https://twitter.com/intent/tweet?source=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc&text=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC)
- [**](https://plus.google.com/share?url=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc)
- [**](http://www.linkedin.com/shareArticle?mini=true&url=https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc&title=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC&summary=Enable%20Layer%203%20peer-router%20on%20Nexus%20vPC%20to%20stabilize%20OSPF%20adjacencies,%20prevent%20TTL%20decrement,%20and%20fix%20flapping%20in%20multi-hop%20environments.)
- [**](mailto:?subject=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC&body=Downstream%20OSPF%20adjacencies%20across%20a%20Nexus%20NXOS%20vPC%20https://www.lookingpoint.com/blog/downstream-ospf-adjacencies-across-a-nexus-nxos-vpc)

### Topics

- [cisco](https://www.lookingpoint.com/blog/topic/cisco)
- [security](https://www.lookingpoint.com/blog/topic/security)
- [cybersecurity](https://www.lookingpoint.com/blog/topic/cybersecurity)
- [Cisco ISE](https://www.lookingpoint.com/blog/topic/cisco-ise)
- [collaboration](https://www.lookingpoint.com/blog/topic/collaboration)
- [ISE](https://www.lookingpoint.com/blog/topic/ise)
- [webex](https://www.lookingpoint.com/blog/topic/webex)
- [IT Solutions](https://www.lookingpoint.com/blog/topic/it-solutions)
- [cisco webex](https://www.lookingpoint.com/blog/topic/cisco-webex)
- [SD-WAN](https://www.lookingpoint.com/blog/topic/sd-wan)

### Latest Tweets **

### subscribe to our blog

## Get New Unique Posts

![looking-point_LogoWhite _ Presidio-1](https://www.lookingpoint.com/hubfs/looking-point_LogoWhite%20_%20Presidio-1.svg)

 391 Taylor Blvd. Suite 120 Pleasant Hill, California 94523

[Call Us +1 925-566-3480](tel:+19255663480)

[sales@lookingpoint.com](mailto:sales@lookingpoint.com)

- [**](https://www.facebook.com/lookingpoint?fref=ts)
- [**](https://twitter.com/lookingpoint)
- [**](https://www.linkedin.com/company/lookingpoint)
- [**](https://www.instagram.com/lookingpoint/)

 SOLUTIONS

- [Collaboration](https://www.lookingpoint.com/it-solutions-collaboration)
- [ Security](https://www.lookingpoint.com/it-solutions-security)
- [Networking ](https://www.lookingpoint.com/it-solutions-networking)
- [Cloud](https://www.lookingpoint.com/cloud)
- [Data Center ](https://www.lookingpoint.com/data-center)
- [Project Management ](https://www.lookingpoint.com/project-management)
- [Lifecycle Management](https://www.lookingpoint.com/lifecycle-management-acela)
- [Wireless Surveys Assessments](https://www.lookingpoint.com/en-us/wireless-surveys-assessments)

 MANAGED SERVICES

- [Assess and Design](https://www.lookingpoint.com/assess-and-design-it-solutions)
- [Deployment](https://www.lookingpoint.com/deployment-it-services-solutions)
- [Support](https://www.lookingpoint.com/it-support-services)
- [Integration Center](https://www.lookingpoint.com/integration-services)
- [Lifecycle Support](https://www.lookingpoint.com/it-lifecycle-support)
- [Locations Serviced](https://www.lookingpoint.com/it-consulting-san-francisco-bay-area)
- [Customer Success](https://www.lookingpoint.com/services-customer-success)

 COMPANY

- [Contact Us](https://www.lookingpoint.com/contact-us)
- [Career](https://www.lookingpoint.com/career)
- [About Us](https://www.lookingpoint.com/about-us)
- [ FAQ](https://www.lookingpoint.com/faq)
- [ Partners](https://www.lookingpoint.com/partner)
- [Blog](https://www.lookingpoint.com/blog)
- [Privacy Policy](https://www.lookingpoint.com/privacy-policy)
- [DO NOT SELL OR SHARE MY PERSONAL INFORMATION](https://na1.hs-data-privacy.com/request/TrvvEe3VpnlESmYolHn3xw)

 GET IN TOUCH

 Join our mailing list to stay up to date and get notices about our new releases!

 Looking Point Inc. 2026

 Cookie Settings