1474
Junos ® OS Routing Protocols Configuration Guide Release 11.4 Published: 2011-11-08 Copyright © 2011, Juniper Networks, Inc.

Junos OS Routing Protocols Configuration Guide - Juniper Networks

  • Upload
    others

  • View
    31

  • Download
    0

Embed Size (px)

Citation preview

Routing Protocols Configuration GuideJuniper Networks, Inc. 1194 North Mathilda Avenue Sunnyvale, California 94089 USA 408-745-2000 www.juniper.net
This product includes the Envoy SNMP Engine, developed by Epilogue Technology, an Integrated Systems Company. Copyright © 1986-1997, Epilogue Technology Corporation. All rights reserved. This program and its documentation were developed at private expense, and no part of them is in the public domain.
This product includes memory allocation software developed by Mark Moraes, copyright © 1988, 1989, 1993, University of Toronto.
This product includes FreeBSD software developed by the University of California, Berkeley, and its contributors. All of the documentation and software included in the 4.4BSD and 4.4BSD-Lite Releases is copyrighted by the Regents of the University of California. Copyright © 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994. The Regents of the University of California. All rights reserved.
GateD software copyright © 1995, the Regents of the University. All rights reserved. Gate Daemon was originated and developed through release 3.0 by Cornell University and its collaborators. Gated is based on Kirton’s EGP, UC Berkeley’s routing daemon (routed), and DCN’s HELLO routing protocol. Development of Gated has been supported in part by the National Science Foundation. Portions of the GateD software copyright © 1988, Regents of the University of California. All rights reserved. Portions of the GateD software copyright © 1991, D. L. S. Associates.
This product includes software developed by Maker Communications, Inc., copyright © 1996, 1997, Maker Communications, Inc.
Juniper Networks, Junos, Steel-Belted Radius, NetScreen, and ScreenOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. The Juniper Networks Logo, the Junos logo, and JunosE are trademarks of Juniper Networks, Inc. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the right to change, modify, transfer, or otherwise revise this publication without notice.
Products made or sold by Juniper Networks or components thereof might be covered by one or more of the following patents that are owned by or licensed to Juniper Networks: U.S. Patent Nos. 5,473,599, 5,905,725, 5,909,440, 6,192,051, 6,333,650, 6,359,479, 6,406,312, 6,429,706, 6,459,579, 6,493,347, 6,538,518, 6,538,899, 6,552,918, 6,567,902, 6,578,186, and 6,590,785.
Junos®OS Routing Protocols Configuration Guide
Release 11.4 Copyright © 2011, Juniper Networks, Inc. All rights reserved.
Revision History October 2011—R1 Junos OS 11.4
The information in this document is current as of the date listed in the revision history.
YEAR 2000 NOTICE
Juniper Networks hardware and software products are Year 2000 compliant. Junos OS has no known time-related limitations through the year 2038. However, the NTP application is known to have some difficulty in the year 2036.
ENDUSER LICENSE AGREEMENT
The Juniper Networks product that is the subject of this technical documentation consists of (or is intended for use with) Juniper Networks software. Use of such software is subject to the terms and conditions of the End User License Agreement (“EULA”) posted at
http://www.juniper.net/support/eula.html. By downloading, installing or using such software, you agree to the terms and conditions of that EULA.
Copyright © 2011, Juniper Networks, Inc.ii
Chapter 2 Complete Routing and Routing Protocol Configuration Statements . . . . . . 17
Part 2 Protocol-Independent Routing Properties
Chapter 3 Protocol-Independent Routing Properties Overview . . . . . . . . . . . . . . . . . . . 49
Chapter 4 Configuring Routing Tables and Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Chapter 5 Configuring Other Protocol-Independent Routing Properties . . . . . . . . . . . 119
Chapter 6 Summary of Protocol-Independent Routing Properties Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Part 3 Routing Instances
Chapter 9 Summary of Routing Instances Configuration Statements . . . . . . . . . . . . 291
Part 4 Multitopology Routing
Chapter 12 Summary of Multitopology Routing Configuration Statements . . . . . . . . 325
Part 5 Interior Gateway Protocols
Chapter 13 Introduction to IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Chapter 14 IS-IS Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
Chapter 15 Summary of IS-IS Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . 433
Chapter 16 Introduction to OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
Chapter 17 OSPF Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
Chapter 18 Summary of OSPF Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . 749
Chapter 19 Introduction to RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835
Chapter 20 RIP Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839
Chapter 21 Summary of RIP Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . 867
Chapter 22 Introduction to RIPng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893
iiiCopyright © 2011, Juniper Networks, Inc.
Chapter 23 RIPng Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895
Chapter 24 Summary of RIPng Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . 905
Chapter 25 Introduction to ICMP Router Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921
Chapter 26 ICMP Router Discovery Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . 923
Chapter 27 Summary of ICMP Router Discovery Configuration Statements . . . . . . . . 927
Chapter 28 Introduction to Neighbor Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939
Chapter 29 Neighbor Discovery Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . 941
Chapter 30 Summary of Neighbor Discovery Router Advertisement Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 949
Chapter 31 Secure Neighbor Discovery Configuration Guidelines . . . . . . . . . . . . . . . . . 961
Chapter 32 Summary of Secure Neighbor Discovery Configuration Statements . . . . 965
Part 6 BGP
Chapter 35 Summary of BGP Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . 1293
Part 7 Indexes
Copyright © 2011, Juniper Networks, Inc.iv
Junos OS 11.4 Routing Protocols Configuration Guide
Table of Contents
Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxviii
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxviii
Merging a Full Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxix
Merging a Snippet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xl
Part 1 Overview
Routing Databases Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Routing Protocol Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Junos Routing Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Route Preferences Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Multiple Active Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Equal-Cost Paths and Load Sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
IPv6 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Chapter 2 Complete Routing and Routing Protocol Configuration Statements . . . . . . 17
[edit logical-systems] Hierarchy Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
[edit protocols] Hierarchy Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
[edit routing-instances] Hierarchy Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
[edit routing-options] Hierarchy Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Part 2 Protocol-Independent Routing Properties
Chapter 3 Protocol-Independent Routing Properties Overview . . . . . . . . . . . . . . . . . . . 49
[edit routing-options] Hierarchy Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Common Routing Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Minimum Protocol-Independent Routing Properties Configuration . . . . . . . . . . . 57
Chapter 4 Configuring Routing Tables and Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Creating Routing Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Configuring Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Configuring the Next Hop for Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Configuring an Independent Preference for Static Routes . . . . . . . . . . . . . . . . . . . 64
Example: Configuring Independent Preferences for an IPv4 Static Route . . . 66
Example: Configuring Independent Preferences for an IPv6 Static Route . . . 66
Example: Configuring Independent Preferences for an Unnumbered Ethernet
Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Specifying an LSP as the Next Hop for Static Routes . . . . . . . . . . . . . . . . . . . . . . 68
Installing Static Routes into More than One Routing Table . . . . . . . . . . . . . . . . . . 69
Examples: Installing a Static Route into More than One Routing Table . . . . . 69
Configuring CLNS Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Example: Configuring a Static CLNS Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Configuring Static Route Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Configuring a Metric Value for Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Configuring a Preference Value for Static Routes . . . . . . . . . . . . . . . . . . . . . . 74
Associating BGP Communities with Static Routes . . . . . . . . . . . . . . . . . . . . . 75
Associating AS Paths with Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Configuring an OSPF Tag String for Static Routes . . . . . . . . . . . . . . . . . . . . . . 77
Controlling Temporary Installation of Static Routes in the Forwarding
Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Controlling Retention of Static Routes in the Forwarding Table . . . . . . . . . . . 78
Controlling Retention of Inactive Static Routes in the Routing and Forwarding
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Controlling Readvertisement of Static Routes . . . . . . . . . . . . . . . . . . . . . . . . 80
Controlling Resolution of Static Routes to Prefixes That Are Not Directly
Connected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Overview of BFD Authentication for Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . 87
BFD Authentication Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Security Authentication Keychains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Junos OS 11.4 Routing Protocols Configuration Guide
Strict Versus Loose Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Configuring BFD Authentication for Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . 89
Configuring the BFD Authentication Parameters . . . . . . . . . . . . . . . . . . . . . . 89
Viewing Authentication Information for BFD Sessions . . . . . . . . . . . . . . . . . . 91
Configuring Default Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Examples: Configuring Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Configuring Aggregate Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Configuring Aggregate Route Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Configuring a Metric Value for Aggregate Routes . . . . . . . . . . . . . . . . . . . . . . 98
Configuring a Preference Value for Aggregate Routes . . . . . . . . . . . . . . . . . . 98
Configuring the Next Hop for Aggregate Routes . . . . . . . . . . . . . . . . . . . . . . . 98
Associating BGP Communities with Aggregate Routes . . . . . . . . . . . . . . . . . 99
Associating AS Paths with Aggregate Routes . . . . . . . . . . . . . . . . . . . . . . . . 100
Including AS Numbers in Aggregate Route Paths . . . . . . . . . . . . . . . . . . . . . . 101
Configuring an OSPF Tag String for Aggregate Routes . . . . . . . . . . . . . . . . . . 101
Controlling Retention of Inactive Aggregate Routes in the Routing and
Forwarding Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Advertising Aggregate Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Configuring Generated Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Configuring Generated Route Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Configuring a Metric Value for Generated Routes . . . . . . . . . . . . . . . . . . . . . 106
Configuring a Preference Value for Generated Routes . . . . . . . . . . . . . . . . . 106
Configuring the Next Hop for Generated Routes . . . . . . . . . . . . . . . . . . . . . . 106
Associating BGP Communities with Generated Routes . . . . . . . . . . . . . . . . . 107
Associating AS Paths with Generated Routes . . . . . . . . . . . . . . . . . . . . . . . . 108
Configuring an OSPF Tag String for Generated Routes . . . . . . . . . . . . . . . . . 109
Including AS Numbers in Generated Route Paths . . . . . . . . . . . . . . . . . . . . . 109
Controlling Retention of Inactive Generated Routes in the Routing and
Forwarding Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Configuring Martian Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Adding Martian Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Deleting Martian Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Configuring Flow Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Validating Flow Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Later . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
viiCopyright © 2011, Juniper Networks, Inc.
Table of Contents
Configuring AS Numbers for BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Examples: Configuring AS Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Configuring Router Identifiers for BGP and OSPF . . . . . . . . . . . . . . . . . . . . . . . . . 122
Configuring AS Confederation Members . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Configuring Route Recording for Flow Aggregation . . . . . . . . . . . . . . . . . . . . . . . . 123
Creating Routing Table Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Examples: Creating Routing Table Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Configuring How Interface Routes Are Imported into Routing Tables . . . . . . . . . 125
Configuring Multicast Scoping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Enabling Multicast Forwarding Without PIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Configuring Additional Source-Specific Multicast Groups . . . . . . . . . . . . . . . . . . 127
Configuring Multicast Forwarding Cache Limits . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Configuring Per-Packet Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Examples: Configuring Per-Packet Load Balancing . . . . . . . . . . . . . . . . . . . . 130
Configuring Unicast Reverse-Path-Forwarding Check . . . . . . . . . . . . . . . . . . . . . . 131
Example: Configuring Unicast RPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Configuring Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Configuring Route Distinguishers for VRF and Layer 2 VPN Instances . . . . . . . . . 133
Configuring Dynamic GRE Tunnels for VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Configuring System Logging for the Routing Protocol Process . . . . . . . . . . . . . . . 135
Examples: Configuring System Logging for the Routing Protocol Process . . 135
Configuring Route Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Tracing Global Routing Protocol Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Examples: Tracing Global Routing Protocol Operations . . . . . . . . . . . . . . . . 139
Disabling Distributed Periodic Packet Management on the Packet Forwarding
Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Enabling Source Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Creating Policies to Control Label Allocation and Substitution for MPLS Ingress
and AS Border Routers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Chapter 6 Summary of Protocol-Independent Routing Properties Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
access-internal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
active . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
aggregate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
as-path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
auto-export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
autonomous-system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
bfd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
bfd-liveness-detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
brief . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
confederation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Junos OS 11.4 Routing Protocols Configuration Guide
destination-networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
discard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
dynamic-tunnels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
export-rib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
fate-sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
forwarding-cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
forwarding-table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
full . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
generate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
graceful-restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
import-policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
import-rib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
independent-domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
indirect-next-hop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
instance-export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
instance-import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
interface (Multicast Scoping) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
metric (Qualified Next Hop on Static Route) . . . . . . . . . . . . . . . . . . . . . . . . . 193
multicast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Table of Contents
preference (Access) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Routing Instances Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Complete Routing Instances Configuration Statements . . . . . . . . . . . . . . . . . . . 240
Routing Instances Minimum Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Minimum Routing-Instance Configuration for BGP . . . . . . . . . . . . . . . . . . . . 244
Minimum Routing-Instance Configuration for IS-IS . . . . . . . . . . . . . . . . . . . 245
Minimum Routing-Instance Configuration for Layer 2 VPNs . . . . . . . . . . . . 245
Minimum Routing-Instance Configuration for LDP . . . . . . . . . . . . . . . . . . . . 246
Minimum Routing-Instance Configuration for MSDP . . . . . . . . . . . . . . . . . . 246
Minimum Routing-Instance Configuration for Multiprotocol BGP-Based
Multicast VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Copyright © 2011, Juniper Networks, Inc.x
Junos OS 11.4 Routing Protocols Configuration Guide
Minimum Routing-Instance Configuration for OSPFv3 . . . . . . . . . . . . . . . . . 248
Minimum Routing-Instance Configuration for PIM . . . . . . . . . . . . . . . . . . . . 248
Minimum Routing-Instance Configuration for RIP . . . . . . . . . . . . . . . . . . . . 249
Minimum Routing-Instance Configuration for VPLS . . . . . . . . . . . . . . . . . . . 249
Configuring Multiple Instances of BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
Example: Configuring Multiple Instances of BGP . . . . . . . . . . . . . . . . . . . . . 250
Configuring Multiple Instances of IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Example: Configuring Multiple Routing Instances of IS-IS . . . . . . . . . . . . . . 252
Configuring Multiple Instances of LDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Configuring Multiple Instances of MSDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Example: Configuring Multiple Routing Instances of OSPF . . . . . . . . . . . . . . . . . 256
Configuring Multiple Instances of PIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Configuring Multiple Instances of RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Configuring Routing Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Configuring VRF Routing Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Configuring Non-VPN VRF Routing Instances . . . . . . . . . . . . . . . . . . . . . . . . 268
Configuring VPLS Routing Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Configuring Route Distinguishers for Routing Instances . . . . . . . . . . . . . . . . . . . 269
Configuring Filter-Based Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Configuring Class-of-Service-Based Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . 272
Configuring Policy-Based Export for Routing Instances . . . . . . . . . . . . . . . . . . . . 274
Example: Configuring Policy-Based Export for an Overlapping VPN . . . . . . 274
Example: Configuring Policy-Based Export for a Nonforwarding Instance . . 276
Example: Exporting Specific Routes from One Routing Table Into Another Routing
Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
Configuring VRF Targets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Configuring Independent AS Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Chapter 9 Summary of Routing Instances Configuration Statements . . . . . . . . . . . . 291
access-profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
instance-type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
instance-role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
no-vrf-advertise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
ping-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
qualified-bum-pruning-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
route-distinguisher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
routing-instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
routing-options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
vrf-export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
vrf-import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
Table of Contents
Multitopology Routing Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Routing Protocol Support for Multitopology Routing . . . . . . . . . . . . . . . . . . . 310
Filter-Based Forwarding Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Multitopology Routing Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Configuring Topologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Configuring Topologies and SPF Options for MT-OSPF . . . . . . . . . . . . . . . . 314
Configuring a Prefix Export Limit for MT-OSPF . . . . . . . . . . . . . . . . . . . . . . . 316
Configuring a Topology to Appear Overloaded . . . . . . . . . . . . . . . . . . . . . . . 316
Configuring Interface Properties for MT-OSPF . . . . . . . . . . . . . . . . . . . . . . . 316
Disabling MT-OSPF on OSPF Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Disabling MT-OSPF on Virtual Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Advertising MPLS Label-Switched Paths into MT-OSPF . . . . . . . . . . . . . . . 318
Configuring Other MT-OSPF Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Configuring Multitopology Routing in Static Routes . . . . . . . . . . . . . . . . . . . . . . . 320
Configuring Multitopology Routing in BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
BGP Route Resolution in Multitopology Routing . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Configuring Filter-Based Forwarding for Multitopology Routing . . . . . . . . . . . . . . 321
Chapter 12 Summary of Multitopology Routing Configuration Statements . . . . . . . . 325
community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
rib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
topologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Chapter 13 Introduction to IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
IS-IS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
IS-IS Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
IS-IS IGP Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Junos OS 11.4 Routing Protocols Configuration Guide
IS-IS Extensions to Support Route Tagging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
IS-IS Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
Configuring IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Overview of Hitless Authentication Key Rollover for IS-IS . . . . . . . . . . . . . . 349
Example: Configuring Hitless Authentication Key Rollover for IS-IS . . . . . . 350
Configuring of Interface-Specific IS-IS Properties . . . . . . . . . . . . . . . . . . . . . . . . 355
Configuring BFD for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
Overview of Configuring BFD for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
Example: Configuring BFD for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Overview of BFD Authentication for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
BFD Authentication Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
Security Authentication Keychains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
Configuring BFD Authentication for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
Configuring BFD Authentication Parameters . . . . . . . . . . . . . . . . . . . . . . . . 366
Viewing Authentication Information for BFD Sessions . . . . . . . . . . . . . . . . . 367
Enabling Packet Checksum on IS-IS Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . 369
Configuring the Transmission Frequency for CSNP Packets on IS-IS
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
Configuring the Transmission Frequency for Link-State PDUs on IS-IS
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
Configuring IS-IS Multicast Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
IS-IS Multicast Topologies Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Example: Configuring IS-IS Multicast Topology . . . . . . . . . . . . . . . . . . . . . . . 372
Configuring IS-IS IPv6 Unicast Topologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Configuring Point-to-Point Interfaces for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Configuring Levels on IS-IS Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Disabling IS-IS at a Level on IS-IS Interfaces . . . . . . . . . . . . . . . . . . . . . . . . 389
Example: Disabling IS-IS at a Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Advertising Interface Addresses Without Running IS-IS . . . . . . . . . . . . . . . . 389
Configuring Authentication for IS-IS Hello Packets . . . . . . . . . . . . . . . . . . . 390
Configuring the Transmission Frequency for IS-IS Hello Packets . . . . . . . . 390
Configuring the Delay Before IS-IS Neighbors Mark the Routing Device as
Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Configuring the IS-IS Metric Value Used for Traffic Engineering . . . . . . . . . . 391
Configuring the Designated Router Priority for IS-IS . . . . . . . . . . . . . . . . . . . 391
Advertising Interface Addresses Without Running IS-IS . . . . . . . . . . . . . . . . 392
Configuring the Reference Bandwidth Used in IS-IS Metric Calculations . . . . . . 392
Limiting the Number of Advertised IS-IS Areas . . . . . . . . . . . . . . . . . . . . . . . . . . 393
Enabling Wide IS-IS Metrics for Traffic Engineering . . . . . . . . . . . . . . . . . . . . . . . 393
Configuring Preference Values for IS-IS Routes . . . . . . . . . . . . . . . . . . . . . . . . . . 393
xiiiCopyright © 2011, Juniper Networks, Inc.
Table of Contents
Configuring Link-State PDU Lifetime for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Advertising Label-Switched Paths into IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Configuring IS-IS to Make Routing Devices Appear Overloaded . . . . . . . . . . . . . 395
Configuring SPF Options for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Configuring Graceful Restart for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
Configuring IS-IS for Multipoint Network Clouds . . . . . . . . . . . . . . . . . . . . . . . . . 398
Configuring IS-IS Traffic Engineering Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Configuring IS-IS to Use IGP Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Configuring IS-IS to Ignore the Metric of RSVP Label-Switched Paths . . . . 399
Disabling IS-IS Support for Traffic Engineering . . . . . . . . . . . . . . . . . . . . . . 400
Installing IPv4 Routes into the Multicast Routing Table . . . . . . . . . . . . . . . . 400
Configuring IS-IS to Use Protocol Preference to Determine the Traffic
Engineering Database Credibility Value . . . . . . . . . . . . . . . . . . . . . . . . . 400
Enabling Authentication for IS-IS Without Network-Wide Deployment . . . . . . . 401
Configuring Quicker Advertisement of IS-IS Adjacency State Changes . . . . . . . . 401
Enabling Padding of IS-IS Hello Packets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
Configuring CLNS for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
Example: Configuring CLNS for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
Disabling IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
Applying Policies to Routes Exported to IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Examples: Configuring IS-IS Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . 406
Installing a Default Route to the Nearest Routing Device That Operates at Both
IS-IS Levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
Configuring Link Protection for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
Configuring Node-Link Protection for IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
Excluding an IS-IS Interface as a Backup for Protected Interfaces . . . . . . . . 412
Configuring RSVP Label-Switched Paths as Backup Paths for IS-IS . . . . . . 412
Using Operational Mode Commands to Monitor Protected IS-IS Routes . . . 413
Example: Configuring Node-Link Protection for IS-IS Routes . . . . . . . . . . . . 413
Disabling Adjacency Down and Neighbor Down Notification in IS-IS and
OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
Examples: Tracing IS-IS Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
Example: Configuring IS-IS on Logical Systems Within the Same Router . . . . . . 419
Example: Configuring an IS-IS Default Route Policy on Logical Systems . . . . . . 428
Chapter 15 Summary of IS-IS Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . 433
authentication-key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
authentication-key-chain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
authentication-type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
bfd-liveness-detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
checksum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
clns-routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
Junos OS 11.4 Routing Protocols Configuration Guide
csnp-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
Table of Contents
OSPF Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494
OSPF Routing Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
OSPF Three-Way Handshake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496
OSPF Version 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
Supported OSPF and OSPFv3 Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504
Copyright © 2011, Juniper Networks, Inc.xvi
Junos OS 11.4 Routing Protocols Configuration Guide
Chapter 17 OSPF Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
OSPF Configuration Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508
OSPF Designated Router Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509
Example: Configuring an OSPF Router Identifier . . . . . . . . . . . . . . . . . . . . . . 510
Example: Controlling OSPF Designated Router Election . . . . . . . . . . . . . . . . 511
Examples: Configuring OSPF Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512
Understanding OSPF Areas and Backbone Areas . . . . . . . . . . . . . . . . . . . . . 513
Example: Configuring a Single-Area OSPF Network . . . . . . . . . . . . . . . . . . . 514
Example: Configuring a Multiarea OSPF Network . . . . . . . . . . . . . . . . . . . . . 516
Example: Configuring OSPF Virtual Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Examples: Configuring OSPF Stub and Not-So-Stubby Areas . . . . . . . . . . . . . . 522
Understanding OSPF Stub Areas, Totally Stubby Areas, and Not-So-Stubby
Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
Example: Configuring OSPF Not-So-Stubby Areas . . . . . . . . . . . . . . . . . . . 528
Example: Configuring OSPF Multiarea Adjacency . . . . . . . . . . . . . . . . . . . . . . . . 533
Multiarea Adjacency for OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533
Example: Configuring Multiarea Adjacency for OSPF . . . . . . . . . . . . . . . . . . 534
Example: Disabling OSPFv2 Compatibility with RFC 1583 . . . . . . . . . . . . . . . . . . 538
OSPFv2 Compatibility with RFC 1583 Overview . . . . . . . . . . . . . . . . . . . . . . 538
Example: Disabling OSPFv2 Compatibility with RFC 1583 . . . . . . . . . . . . . . 538
Examples: Configuring OSPF Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539
About OSPF Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541
Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543
Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Example: Configuring a Passive OSPF Interface . . . . . . . . . . . . . . . . . . . . . . 550
Example: Configuring OSPFv2 Peer interfaces . . . . . . . . . . . . . . . . . . . . . . . 552
Example: Configuring Multiple Address Families for OSPFv3 . . . . . . . . . . . . . . . 554
Understanding Multiple Address Families for OSPFv3 . . . . . . . . . . . . . . . . . 554
Example: Configuring Multiple Address Families for OSPFv3 . . . . . . . . . . . . 554
Examples: Configuring OSPF Route Summarization . . . . . . . . . . . . . . . . . . . . . . 558
Understanding OSPF Route Summarization . . . . . . . . . . . . . . . . . . . . . . . . . 558
Example: Summarizing Ranges of Routes in OSPF Link-State
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
Example: Limiting the Number of Prefixes Exported to OSPF . . . . . . . . . . . 563
Configuring OSPF Refresh and Flooding Reduction in Stable Topologies . . 565
Examples: Configuring OSPF Traffic Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566
Understanding OSPF Traffic Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566
Controlling the Cost of Individual OSPF Network Segments . . . . . . . . . 567
Dynamically Adjusting OSPF Interface Metrics Based on Bandwidth . . 567
xviiCopyright © 2011, Juniper Networks, Inc.
Table of Contents
Example: Controlling the Cost of Individual OSPF Network Segments . . . . 568
Example: Dynamically Adjusting OSPF Interface Metrics Based on
Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
OSPF Overload Function Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
Example: Configuring OSPF to Make Routing Devices Appear
Overloaded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
Understanding the SPF Algorithm Options for OSPF . . . . . . . . . . . . . . . . . . 580
Example: Configuring SPF Algorithm Options for OSPF . . . . . . . . . . . . . . . 580
Example: Configuring Synchronization Between LDP and IGPs . . . . . . . . . . . . . 583
Synchronization Between LDP and IGPs Overview . . . . . . . . . . . . . . . . . . . . 583
Example: Configuring Synchronization Between LDP and IGPs . . . . . . . . . . 583
Examples: Configuring OSPF Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Understanding OSPFv2 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Understanding OSPFv3 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Example: Configuring Simple Authentication for OSPFv2 Exchanges . . . . . 588
Example: Configuring MD5 Authentication for OSPFv2 Exchanges . . . . . . . 590
Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface . . 592
Example: Configuring IPsec Authentication for an OSPF Interface . . . . . . . 595
Example: Configuring OSPF Routing Instances . . . . . . . . . . . . . . . . . . . . . . . . . . 601
Introduction to Routing Instances for OSPF . . . . . . . . . . . . . . . . . . . . . . . . . 601
Minimum Routing-Instance Configuration for OSPFv2 . . . . . . . . . . . . . 601
Minimum Routing-Instance Configuration for OSPFv3 . . . . . . . . . . . . . 602
Multiple Routing Instances of OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
Configuring OSPF Routing Table Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
Example: Configuring Multiple Routing Instances of OSPF . . . . . . . . . . . . . 603
Example: Configuring OSPF Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
OSPF Timers Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
Example: Configuring BFD for OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 615
BFD for OSPF Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 615
Example: Configuring BFD for OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
Example: Configuring BFD Authentication for OSPF . . . . . . . . . . . . . . . . . . . . . . . 621
BFD Authentication for OSPF Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621
BFD Authentication Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
Security Authentication Keychains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623
Configuring BFD Authentication for OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . 623
Configuring BFD Authentication Parameters . . . . . . . . . . . . . . . . . . . . . 623
Viewing Authentication Information for BFD Sessions . . . . . . . . . . . . . 625
Copyright © 2011, Juniper Networks, Inc.xviii
Junos OS 11.4 Routing Protocols Configuration Guide
Examples: Configuring Graceful Restart for OSPF . . . . . . . . . . . . . . . . . . . . . . . . 626
Graceful Restart for OSPF Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626
Helper Mode for Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627
Planned and Unplanned Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . 628
Example: Configuring Graceful Restart for OSPF . . . . . . . . . . . . . . . . . . . . . 628
Example: Configuring the Helper Capability Mode for OSPFv2 Graceful
Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
Example: Disabling Strict LSA Checking for OSPF Graceful Restart . . . . . . 639
Examples: Configuring Loop-Free Alternate Routes for OSPF . . . . . . . . . . . . . . . 641
Loop-Free Alternate Routes for OSPF Overview . . . . . . . . . . . . . . . . . . . . . . 642
Configuring Link Protection for OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 643
Configuring Node-Link Protection for OSPF . . . . . . . . . . . . . . . . . . . . . . . . . 644
Excluding an OSPF Interface as a Backup for a Protected Interface . . . . . . 645
Configuring Backup SPF Options for Protected OSPF Interfaces . . . . . . . . 645
Configuring RSVP Label-Switched Paths as Backup Paths for OSPF . . . . . 647
Examples: Configuring OSPF Traffic Engineering . . . . . . . . . . . . . . . . . . . . . . . . . 648
OSPF Support for Traffic Engineering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
Example: Enabling OSPF Traffic Engineering Support . . . . . . . . . . . . . . . . . 650
Example: Configuring the Traffic Engineering Metric for a Specific OSPF
Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
OSPF Passive Traffic Engineering Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
Example: Configuring OSPF Passive Traffic Engineering Mode . . . . . . . . . . 656
Example: Advertising Label-Switched Paths into OSPFv2 . . . . . . . . . . . . . . . . . 659
Advertising Label-Switched Paths into OSPFv2 . . . . . . . . . . . . . . . . . . . . . . 659
Example: Advertising Label-Switched Paths into OSPFv2 . . . . . . . . . . . . . . 659
Example: Configuring OSPFv2 Sham Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670
OSPFv2 Sham Links Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670
Example: Configuring OSPFv2 Sham Links . . . . . . . . . . . . . . . . . . . . . . . . . . 671
Example: Configuring OSPF Database Protection . . . . . . . . . . . . . . . . . . . . . . . . 677
OSPF Database Protection Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677
Configuring OSPF Database Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678
Examples: Configuring OSPF Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679
Understanding OSPF Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679
Routing Policy Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 680
Routing Policy Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681
Example: Injecting OSPF Routes into the BGP Routing Table . . . . . . . . . . . . 681
Example: Redistributing Static Routes into OSPF . . . . . . . . . . . . . . . . . . . . 684
Example: Configuring an OSPF Import Policy . . . . . . . . . . . . . . . . . . . . . . . . 687
Example: Configuring a Route Filter Policy to Specify Priority for Prefixes
Learned Through OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 691
Import and Export Policies for Network Summaries Overview . . . . . . . . . . 695
Example: Configuring an OSPF Export Policy for Network Summaries . . . . 695
Example: Configuring an OSPF Import Policy for Network Summaries . . . . 704
xixCopyright © 2011, Juniper Networks, Inc.
Table of Contents
OSPF Support for Logical Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712
Introduction to Logical Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712
OSPF and Logical Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712
Example: Configuring OSPF on Logical Systems Within the Same
Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 713
Example: Configuring a Conditional OSPF Default Route Policy on Logical
Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719
Example: Configuring an OSPF Default Route Policy on Logical Systems . . 725
Example: Configuring an OSPF Import Policy on Logical Systems . . . . . . . . 730
Example: Configuring OSPF Trace Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 737
Tracing OSPF Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 738
Example: Tracing OSPF Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 739
Verifying an OSPF Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744
Verifying OSPF-Enabled Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744
Verifying OSPF Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 745
Verifying Reachability of All Hosts in an OSPF Network . . . . . . . . . . . . . . . . 747
Chapter 18 Summary of OSPF Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . 749
area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 750
area-range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 751
authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 752
backup-spf-options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753
bandwidth-based-metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 754
bfd-liveness-detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756
database-protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 760
dead-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762
default-lsa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763
default-metric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 764
demand-circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 765
disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 766
Junos OS 11.4 Routing Protocols Configuration Guide
label-switched-path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 784
ldp-synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
link-protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 786
lsp-metric-into-summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 787
md5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 788
metric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 789
metric-type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791
neighbor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792
network-summary-export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793
network-summary-import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794
no-domain-vpn-tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794
no-eligible-backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795
no-interface-state-traps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
no-neighbor-down-notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
no-nssa-abr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797
no-rfc-1583 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798
no-summaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798
node-link-protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799
nssa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 800
ospf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801
ospf3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802
overload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803
passive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
peer-interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806
poll-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807
preference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
prefix-export-limit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809
priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
realm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811
reference-bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 812
retransmit-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 813
rib-group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 814
route-type-community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815
secondary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815
sham-link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816
sham-link-remote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816
shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
simple-password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 818
spf-options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 819
stub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
summaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822
te-metric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
traceoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 824
traffic-engineering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 827
transit-delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
transmit-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 832
type-7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833
Table of Contents
RIP Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835
Configuring RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839
Configuring Authentication for RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 843
Configuring BFD for RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 844
Overview of BFD Authentication for RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 846
BFD Authentication Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 847
Security Authentication Keychains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 848
Configuring BFD Authentication for RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 848
Configuring BFD Authentication Parameters . . . . . . . . . . . . . . . . . . . . . . . . 849
Viewing Authentication Information for BFD Sessions . . . . . . . . . . . . . . . . . 850
Accepting RIP Packets with Nonzero Values in Reserved Fields . . . . . . . . . . . . . . 851
Applying Policies to RIP Routes Imported from Neighbors . . . . . . . . . . . . . . . . . 852
Configuring the Number of Route Entries in RIP Update Messages . . . . . . . . . . 852
Configuring the Metric Value Added to Imported RIP Routes . . . . . . . . . . . . . . . 852
Configuring RIP Update Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853
Configuring Routing Table Groups for RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853
Configuring RIP Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853
Applying Policies to Routes Exported by RIP . . . . . . . . . . . . . . . . . . . . . . . . . 855
Configuring the Default Preference Value for RIP . . . . . . . . . . . . . . . . . . . . . 855
Configuring the Metric for Routes Exported by RIP . . . . . . . . . . . . . . . . . . . . 856
Configuring Graceful Restart for RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 856
Disabling Strict Address Checking for RIP Messages . . . . . . . . . . . . . . . . . . . . . . 857
RIP Demand Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 857
Timers Used by RIP Demand Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . 859
Example: Configuring RIP Demand Circuits . . . . . . . . . . . . . . . . . . . . . . . . . 860
Tracing RIP Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863
Example: Tracing RIP Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864
Example: Configuring RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864
any-sender . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867
authentication-key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 868
authentication-type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 869
bfd-liveness-detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 870
check-zero . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 872
Junos OS 11.4 Routing Protocols Configuration Guide
demand-circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 873
export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 874
graceful-restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 875
group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876
holddown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878
import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 879
max-retrans-time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 880
message-size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881
metric-in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882
metric-out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883
neighbor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 884
no-check-zero . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885
preference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885
receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886
rib-group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887
rip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887
route-timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889
traceoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890
update-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892
RIPng Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893
Configuring RIPng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895
Applying Policies to RIPng Routes Imported from Neighbors . . . . . . . . . . . . . . . 897
Configuring the Metric Value Added to Imported RIPng Routes . . . . . . . . . . . . . 898
Configuring RIPng Update Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898
Configuring RIPng Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898
Applying Policies to Routes Exported by RIPng . . . . . . . . . . . . . . . . . . . . . . 900
Configuring the Default Preference Value for RIPng . . . . . . . . . . . . . . . . . . . 900
Configuring the Metric for Routes Exported by RIPng . . . . . . . . . . . . . . . . . 900
Configuring Graceful Restart for RIPng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 901
Tracing RIPng Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 901
Example: Configuring RIPng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902
export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
graceful-restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 906
group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
holddown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
Table of Contents
ICMP Router Discovery Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921
Operation of a Router Discovery Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921
Router Advertisement Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 922
Chapter 26 ICMP Router Discovery Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . 923
Configuring ICMP Router Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 923
Minimum ICMP Router Discovery Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 924
Configuring the Addresses Included in ICMP Router Advertisements . . . . . . . . . 924
Configuring the Frequency of ICMP Router Advertisements . . . . . . . . . . . . . . . . 925
Modifying the Lifetime in ICMP Router Advertisements . . . . . . . . . . . . . . . . . . . . 925
Tracing ICMP Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 925
Example: Tracing ICMP Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 926
Chapter 27 Summary of ICMP Router Discovery Configuration Statements . . . . . . . . 927
address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 927
advertise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928
broadcast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928
disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929
ignore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929
ineligible . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929
interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 930
lifetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 931
max-advertisement-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 932
min-advertisement-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933
multicast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 934
priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 935
router-discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 935
traceoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 936
Neighbor Discovery Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939
Junos OS 11.4 Routing Protocols Configuration Guide
Chapter 29 Neighbor Discovery Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . 941
Configuring Neighbor Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 941
Configuring an Interface to Send Neighbor Discovery Advertisements . . . . . . . . 942
Configuring the Hop Count in Outgoing Neighbor Discovery Packets . . . . . . . . . 943
Configuring the Lifetime for the Default Neighbor Discovery Router . . . . . . . . . . 943
Configuring the MTU Option for Neighbor Discovery Advertisements . . . . . . . . 943
Enabling Stateful Autoconfiguration with Neighbor Discovery . . . . . . . . . . . . . . 944
Configuring the Frequency of Neighbor Discovery Advertisements . . . . . . . . . . 945
Configuring the Delay Before Neighbor-Discovery Neighbors Mark the Router as
Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946
Setting the Prefix for Stateless Address Autoconfiguration . . . . . . . . . . . . . 946
Configuring the Preferred Lifetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947
Configuring the Valid Lifetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947
Tracing Neighbor Discovery Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947
Chapter 30 Summary of Neighbor Discovery Router Advertisement Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 949
autonomous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 949
current-hop-limit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 950
default-lifetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 950
interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 951
link-mtu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 952
managed-configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 952
max-advertisement-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953
min-advertisement-interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953
no-autonomous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954
no-managed-configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954
no-on-link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954
no-other-stateful-configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954
on-link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954
other-stateful-configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 955
preferred-lifetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 955
prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 956
reachable-time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 956
retransmit-timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 957
router-advertisement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 957
traceoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 958
valid-lifetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959
Table of Contents
Secure Neighbor Discovery Configuration Overview . . . . . . . . . . . . . . . . . . . . . . . 961
Configuring Secure Neighbor Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 961
Enabling Secure Neighbor Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 962
Configuring Cryptographically Generated Addresses for Secure Neighbor
Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 962
Specifying the RSA Key Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 963
Configuring Timestamps for Secure Neighbor Discovery . . . . . . . . . . . . . . . . . . . 963
Tracing Secure Neighbor Discovery Protocol Traffic . . . . . . . . . . . . . . . . . . . . . . 964
Chapter 32 Summary of Secure Neighbor Discovery Configuration Statements . . . . 965
cryptographic-address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 965
key-length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 966
key-pair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 966
neighbor-discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 967
secure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 968
security-level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 969
timestamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 970
traceoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 971
Understanding BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 976
Autonomous Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 976
BGP Routes Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 977
BGP Messages Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 978
Example: Configuring External BGP Point-to-Point Peer Sessions . . . . . . . 983
Example: Configuring External BGP on Logical Systems with IPv6
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 990
Understanding BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1000
Autonomous Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1000
Example: Configuring Internal BGP Peer Sessions . . . . . . . . . . . . . . . . . . . . 1001
Example: Configuring Internal BGP Peering Sessions on Logical Systems . . 1012
Copyright © 2011, Juniper Networks, Inc.xxvi
Junos OS 11.4 Routing Protocols Configuration Guide
Example: Preventing BGP Session Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1022
Understanding BGP Session Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1022
Example: Preventing BGP Session Flaps When VPN Families Are
Configured . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023
Understanding Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1029
Example: Injecting OSPF Routes into the BGP Routing Table . . . . . . . . . . . 1029
Example: Configuring BGP Route Reflectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033
Understanding BGP Route Reflectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033
Example: Configuring a Route Reflector . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1035
Example: Configuring BGP Confederations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1049
Understanding BGP Confederations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1049
Example: Configuring BGP Route Authentication . . . . . . . . . . . . . . . . . . . . . . . . 1056
Understanding Route Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057
Understanding IPsec for BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1063
Example: Using IPsec to Protect BGP Traffic . . . . . . . . . . . . . . . . . . . . . . . . 1064
Examples: Configuring BGP MED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1067
Understanding the MED Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1067
Example: Configuring the MED Attribute Directly . . . . . . . . . . . . . . . . . . . . 1069
Example: Configuring the MED Using Route Filters . . . . . . . . . . . . . . . . . . . 1082
Example: Configuring the MED Using Communities . . . . . . . . . . . . . . . . . . 1095
Example: Associating the MED Path Attribute with the IGP Metric and
Delaying MED Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1095
Understanding BGP Multihop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1105
Examples: Configuring BGP Multipath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114
Understanding BGP Multipath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1115
Example: Configuring Single-Hop EBGP Peers to Accept Remote Next
Hops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1119
Example: Configuring the Local Preference Value for BGP Routes . . . . . . . . 1131
Example: Configuring BGP Route Preference (Administrative Distance) . . . . . . 1143
Understanding Route Preference Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1143
Example: Configuring the Preference Value for BGP Routes . . . . . . . . . . . . 1145
Example: Configuring BGP Path Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1150
Understanding BGP Path Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1150
Example: Ignoring the AS Path Attribute When Selecting the Best Path . . . 1153
Examples: Configuring BGP Local AS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1160
Understanding the BGP Local AS Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . 1161
Example: Configuring a Local AS for EBGP Sessions . . . . . . . . . . . . . . . . . . 1164
Example: Configuring a Private Local AS for EBGP Sessions . . . . . . . . . . . . 1174
xxviiCopyright © 2011, Juniper Networks, Inc.
Table of Contents
Understanding Private AS Number Removal from AS Paths . . . . . . . . . . . . 1180
Example: Removing Private AS Numbers from AS Paths . . . . . . . . . . . . . . . 1181
Example: Configuring BGP Flap Damping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1186
Understanding Damping Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1186
Understanding Multiprotocol BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1190
Limiting the Number of Prefixes Received on a BGP Peer Session . . . . 1193
Limiting the Number of Prefixes Accepted on a BGP Peer Session . . . 1194
Configuring BGP Routing Table Groups . . . . . . . . . . . . . . . . . . . . . . . . . 1195
Resolving Routes to PE Routing Devices Located in Other ASs . . . . . . 1195
Allowing Labeled and Unlabeled Routes . . . . . . . . . . . . . . . . . . . . . . . . 1195
Example: Configuring IPv6 BGP Routes over IPv4 Transport . . . . . . . . . . . . 1196
Example: Enabling BGP to Carry Flow-Specification Routes . . . . . . . . . . . 1202
Enabling Layer 2 VPN and VPLS Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . 1215
Example: Configuring B