Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "AS Path Manipulation in Junos OS - Introducing as-path-replace"
subtitle: "An HPE Juniper Networking Techpost"
author: "Moshiko Nayman"
date: "2026-11-02"
subject: "TECHPOST"
keywords: ["BGP"]
lang: "en"
number-sections: true
toc: true
---

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
rights: "© 2026 Juniper/HPE Networking"
css: "../../../rendering/custom_epub.css"

header-includes:
- \usepackage{etoolbox}
- \preto{\section}{\clearpage}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
geometry: margin=2cm
titlepage: true
titlepage-text-color: "FFFFFF"
titlepage-rule-color: "FFFFFF"
titlepage-rule-height: 0
titlepage-background: "../../../rendering/background.pdf"
# Optional back cover (full-page image, same as titlepage-background).
# Uncomment once rendering/backcover.pdf exists:
backpage-background: "../../../rendering/backcover.pdf"

logo-width: 30mm

header-left: "\\thetitle"
header-center: "\\leftmark"
header-right: "\\theauthor"

footer-left: "\\leftmark"
footer-center: "Page \\thepage"
footer-right: "\\leftmark"

lof: true
lot: true
toc-own-page: true
lof-own-page: true
lot-own-page: true

footnotes-pretty: true
link-citations: true
link-headers: true
colorlinks: true
---
11 changes: 11 additions & 0 deletions docs/articles/menu/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ hide:

<div class="card-grid">

<a class="card" href="../../as-path-manipulation-in-junos-os---introducing-as-path-replace/article" data-date="2026-11-02" data-category="Routing">
<img src="../../as-path-manipulation-in-junos-os---introducing-as-path-replace/images/logo.png" class="card-icon" alt="AS Path Manipulation in Junos OS - Introducing as-path-replace">
<div class="card-text">
<div class="card-category">Routing</div>
<div class="card-title">AS Path Manipulation in Junos OS - Introducing as-path-replace</div>
<div class="card-description">Junos OS 25.4R1 adds as-path-replace, a routing policy action for rewriting the BGP AS_PATH. The action takes the AS numbers to look for, or the keyword private to cover every private AS number, and replaces each match with the session&#x27;s local AS. Operators can use it to keep private AS numbers out of the default-free zone, retire an AS number after an acquisition, or even out path lengths for load sharing. Junos already has several ways to change the AS_PATH, each built for a narrower case. Prepending is a policy action on import and export, but it can only add to the path. as-override and remove-private also change numbers already in the path, but they have narrower scopes: they apply to every route advertised to a peer, replacing the peer&#x27;s AS with the local AS (as-override) or removing private AS numbers (remove-private). as-path-replace is the first action that lets you select specific AS numbers to rewrite, replacing each match with the session&#x27;s local AS, for the routes a policy term selects, on import as well as export. That flexibility matters because routers use the AS_PATH to detect loops and compare paths, so rewriting it changes how other networks treat the route.</div>
<div class="card-subtitle">By Moshiko Nayman</div>
</div>
</a>


<a class="card" href="../../preserving-the-nexthop-hierarchy/article" data-date="2026-10-21" data-category="Routing">
<img src="../../preserving-the-nexthop-hierarchy/images/logo.png" class="card-icon" alt="Preserving the Nexthop Hierarchy">
<div class="card-text">
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ nav:
- Migrating Colored Resolution from inetcolor to Classful Transport: articles/migrating-colored-resolution-from-inetcolor-to-ct/article.md
- AI-Driven Brownfield Migration to Juniper Routing Director: articles/ai-driven-brownfield-migration-to-jrd/article.md
- Preserving the Nexthop Hierarchy: articles/preserving-the-nexthop-hierarchy/article.md
- AS Path Manipulation in Junos OS - Introducing as-path-replace: articles/as-path-manipulation-in-junos-os---introducing-as-path-replace/article.md
- Multicast Routing:
- Under Construction: build.md
- Scale and Convergence Tests:
Expand Down
Loading