<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p" -->

---
title: Advertise Default Route in BGP « BGP Labs | daily.dev
description: A hands-on BGP lab exercise covering how to advertise a default route to a customer router (X1) instead of the full BGP table. The lab walks through...
canonical: https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Advertise Default Route in BGP « BGP Labs | daily.dev
og:description: A hands-on BGP lab exercise covering how to advertise a default route to a customer router (X1) instead of the full BGP table. The lab walks through...
og:url: https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p
og:image: https://api.daily.dev/og/posts/RInToxG4P.png
og:image:alt: Advertise Default Route in BGP « BGP Labs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Advertise Default Route in BGP « BGP Labs

**[ipSpace.net Blog](https://daily.dev/sources/ipspace)** · 6 min read · 0 upvotes · 0 comments

## Summary

A hands-on BGP lab exercise covering how to advertise a default route to a customer router (X1) instead of the full BGP table. The lab walks through configuring the `neighbor default-originate` command on R1, applying outbound route filters to suppress all other prefixes, and verifying the result using `netlab validate` or manual BGP table inspection on X1 and R2. Key nuances include the difference between implementations that advertise the default route unconditionally versus only when it exists in the local BGP table, and how to use `default-originate always` for the latter case.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.ipspace.net/2024/03/bgp-labs-default-route>

## Questions this post answers

### How do I advertise a default route to a BGP neighbor instead of the full routing table?

Use the `neighbor default-originate` command within the address-family configuration on the advertising router. Some BGP implementations send the default route unconditionally; others only advertise it if a default route exists in the local BGP table. For the latter case, use `default-originate always` to force advertisement even when no default route is locally present. Pair this with an outbound prefix filter to suppress all other prefixes to that neighbor.

_Engineers tuning BGP policy between ISP and customer routers find the edge cases around this on daily.dev._

### What is the difference between neighbor default-originate and default-originate always in BGP?

`neighbor default-originate` advertises a default route (0.0.0.0/0) to a specific BGP neighbor, but some implementations only do so if a default route is already present in the local BGP table. `default-originate always` forces the advertisement regardless of whether a default route exists locally, which is necessary when the advertising router itself has no default route but still needs to send one to a downstream neighbor.

_Tracking BGP implementation quirks across vendors is easier when network engineers share findings on daily.dev._

## Similar posts on daily.dev

- [Crazy Delay: IOS XR OSPFv2 Default Route Origination « ipSpace.net blog](https://daily.dev/posts/crazy-delay-ios-xr-ospfv2-default-route-origination-ipspace-net-blog-t8dnomhiq) · ipSpace.net Blog · 0 upvotes · 0 comments
- [Exposing OpenShift networks using BGP](https://daily.dev/posts/exposing-openshift-networks-using-bgp-avwlypif7) · Red Hat Developer · 0 upvotes · 0 comments
- [Using ip route to configure two nodes](https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk) · Medium · 0 upvotes · 0 comments

---

Tags: [#networking](https://daily.dev/tags/networking), [#bgp](https://daily.dev/tags/bgp)

[View this post on daily.dev](https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Advertise Default Route in BGP « BGP Labs","url":"https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p"},"datePublished":"2026-08-11T08:55:11.786Z","dateModified":"2026-08-11T09:25:07.694Z","description":"A hands-on BGP lab exercise covering how to advertise a default route to a customer router (X1) instead of the full BGP table. The lab walks through...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"ipSpace.net Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ipSpace.net Blog","logo":"https://media.daily.dev/image/upload/s--xS7E82MT--/f_auto,q_auto/v1786438303/logos/ipspace?_a=BAMAMicg0","url":"https://daily.dev/sources/ipspace"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"networking,bgp","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ipSpace.net Blog","item":"https://daily.dev/sources/ipspace"},{"@type":"ListItem","position":3,"name":"Advertise Default Route in BGP « BGP Labs"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/advertise-default-route-in-bgp-bgp-labs-rintoxg4p#faq","mainEntity":[{"@type":"Question","name":"How do I advertise a default route to a BGP neighbor instead of the full routing table?","acceptedAnswer":{"@type":"Answer","text":"Use the `neighbor default-originate` command within the address-family configuration on the advertising router. Some BGP implementations send the default route unconditionally; others only advertise it if a default route exists in the local BGP table. For the latter case, use `default-originate always` to force advertisement even when no default route is locally present. Pair this with an outbound prefix filter to suppress all other prefixes to that neighbor. Engineers tuning BGP policy between ISP and customer routers find the edge cases around this on daily.dev."}},{"@type":"Question","name":"What is the difference between neighbor default-originate and default-originate always in BGP?","acceptedAnswer":{"@type":"Answer","text":"`neighbor default-originate` advertises a default route (0.0.0.0/0) to a specific BGP neighbor, but some implementations only do so if a default route is already present in the local BGP table. `default-originate always` forces the advertisement regardless of whether a default route exists locally, which is necessary when the advertising router itself has no default route but still needs to send one to a downstream neighbor. Tracking BGP implementation quirks across vendors is easier when network engineers share findings on daily.dev."}}]}
```

