Juniper JUNOSE SOFTWARE FOR E SERIES 11.3.X - BGP AND MPLS CONFIGURATION GUIDE 2010-10-12, JUNOSE 11.3 Configuration Manual

JunosE™ Software for E Series™ Broadband Services Routers
BGP and MPLS Configuration Guide
Release
11.3.x
Published: 2010-10-12
Copyright © 2010, Juniper Networks, Inc.
Juniper Networks, Inc. 1194 North Mathilda Avenue Sunnyvale, California 94089 USA 408-745-2000 www.juniper.net
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.
JunosE™ Software for E Series™ Broadband Services Routers BGP and MPLS Configuration Guide
Release 11.3.x Copyright © 2010, Juniper Networks, Inc. All rights reserved. Printed in USA.
Writing: Subash Babu Asokan, Bruce Gillham, Brian Wesley Simmons, Fran Singer, Megha Shaseendran, Krupa Chandrashekar, Namrata Mehta, Pallavi Madhusudhan, Chander Aima, Poornima Goswami, Hema Priya J, Sairam Venugopalan Editing: Benjamin Mann, Alana Calapai Illustration: Brian Wesley Simmons, Nathaniel Woodward Cover Design: Edmonds Design
Revision History October 2010—FRS JunosE 11.3.x
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. The 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.
Copyright © 2010, Juniper Networks, Inc.ii
END USER LICENSE AGREEMENT
READ THIS END USER LICENSE AGREEMENT (“AGREEMENT”) BEFORE DOWNLOADING, INSTALLING, OR USING THE SOFTWARE.
BY DOWNLOADING, INSTALLING, OR USING THE SOFTWARE OR OTHERWISE EXPRESSING YOUR AGREEMENT TO THE TERMS CONTAINED HEREIN, YOU (AS CUSTOMER OR IF YOU ARE NOT THE CUSTOMER, AS A REPRESENTATIVE/AGENT AUTHORIZED TO BIND THE CUSTOMER) CONSENT TO BE BOUND BY THISAGREEMENT. IF YOU DO NOTOR CANNOT AGREE TO THE TERMSCONTAINED HEREIN, THEN (A) DO NOT DOWNLOAD, INSTALL, OR USE THE SOFTWARE, AND (B) YOU MAY CONTACT JUNIPER NETWORKS REGARDING LICENSE TERMS.
1. The Parties. The parties to this Agreement are (i) Juniper Networks, Inc. (if the Customer’s principal office is located in the Americas) or Juniper Networks(Cayman)Limited(if the Customer’s principaloffice is locatedoutside the Americas) (such applicable entity beingreferred to herein as“Juniper”), and (ii)the person ororganizationthat originally purchased from Juniperor an authorized Juniper reseller the applicable license(s) for use of the Software (“Customer”) (collectively, the “Parties”).
2. The Software. In this Agreement, “Software” means the program modules and features of the Juniper or Juniper-supplied software, for which Customer has paid the applicable license or support fees to Juniper or an authorized Juniper reseller, or which was embedded by Juniper in equipment which Customer purchased from Juniper or an authorized Juniper reseller. “Software” also includes updates, upgrades and new releases of such software. “Embedded Software” means Software which Juniper has embedded in or loaded onto the Juniper equipment and any updates, upgrades, additions or replacements which are subsequently embedded in or loaded onto the equipment.
3. License Grant. Subject to payment of the applicablefeesand the limitations andrestrictions set forthherein, Juniper grantsto Customer a non-exclusive and non-transferable license, without right to sublicense, to use the Software, in executable form only, subject to the following use restrictions:
a. Customer shall use Embedded Software solely as embedded in, and for execution on, Juniper equipment originally purchased by Customer from Juniper or an authorized Juniper reseller.
b. Customer shall use the Software on a single hardware chassis having a single processing unit, or as many chassis or processing units for which Customer has paid the applicable license fees; provided, however, with respect to the Steel-Belted Radius or Odyssey Access Client software only, Customer shall use such Software on a single computer containing a single physical random access memory space and containing any number of processors. Use of the Steel-Belted Radius or IMS AAA software on multiple computers or virtual machines (e.g., Solaris zones) requires multiple licenses, regardless of whether such computers or virtualizations are physically contained on a single chassis.
c. Product purchase documents, paper or electronic user documentation, and/or the particular licenses purchased by Customer may specify limitstoCustomer’suse ofthe Software.Such limitsmay restrict use toa maximum number of seats, registeredendpoints, concurrent users, sessions, calls, connections, subscribers, clusters, nodes, realms, devices, links, ports or transactions, or require the purchase of separate licenses to use particular features, functionalities, services, applications, operations, or capabilities, or provide throughput, performance, configuration, bandwidth, interface, processing, temporal, or geographical limits. In addition, such limits may restrict the use of the Software to managing certain kinds of networks or require the Software to be used only in conjunction with other specific Software. Customer’s use of the Software shall be subject to all such limitations and purchase of all applicable licenses.
d. For any trial copy of the Software, Customer’s right to use the Software expires 30 days after download, installation or use of the Software. Customer may operate the Software after the 30-day trial period only if Customer pays for a license to do so. Customer may not extend or create an additional trial period by re-installing the Software after the 30-day trial period.
e. The Global Enterprise Edition of the Steel-Belted Radius software may be used by Customer only to manage access to Customer’s enterprise network. Specifically, service provider customers are expressly prohibited from using the Global Enterprise Edition of the Steel-Belted Radius software to support any commercial network access services.
The foregoing license is not transferable or assignable by Customer. No license is granted herein to any user who did not originally purchase the applicable license(s) for the Software from Juniper or an authorized Juniper reseller.
4. Use Prohibitions. Notwithstanding the foregoing, the license provided herein does not permit the Customer to, and Customer agrees not to and shall not: (a) modify, unbundle, reverse engineer, or create derivative works based on the Software; (b) make unauthorized copies of the Software (except as necessary for backup purposes); (c) rent, sell, transfer, or grant any rights in and to any copy of the Software,in anyform, to anythird party; (d)removeany proprietary notices, labels,or marks on or in any copyof the Software or anyproduct in which the Software is embedded; (e) distribute any copy of the Software to any third party, including as may be embedded in Juniper equipment sold in thesecondhandmarket;(f) use any‘locked’ orkey-restricted feature,function, service, application,operation,or capability without first purchasing the applicable license(s) and obtaining a valid key from Juniper, even if such feature, function, service, application, operation, or capability is enabled without a key; (g) distribute any key for the Software provided by Juniper to any third party; (h) use the
iiiCopyright © 2010, Juniper Networks, Inc.
Software in any manner that extends or is broader than the uses purchased by Customer from Juniper or an authorized Juniper reseller; (i) use Embedded Software on non-Juniper equipment; (j) use Embedded Software (or make it available for use) on Juniper equipment that the Customer did not originally purchase from Juniper or an authorized Juniper reseller; (k) disclose the results of testing or benchmarking of the Software to any third party without the prior written consent of Juniper; or (l) use the Software in any manner other than as expressly provided herein.
5. Audit. Customer shall maintain accurate records as necessary to verify compliance with this Agreement. Upon request by Juniper, Customer shall furnish such records to Juniper and certify its compliance with this Agreement.
6. Confidentiality. The Parties agree that aspects of the Software and associated documentation are the confidential property of Juniper. As such, Customer shall exercise all reasonable commercialefforts to maintain the Software and associated documentation in confidence, which at a minimum includes restrictingaccess to the Software to Customer employees and contractors havinga need to use the Software for Customer’s internal business purposes.
7. Ownership. Juniper and Juniper’s licensors, respectively, retain ownership of all right, title, and interest (including copyright) in and to the Software, associated documentation, and all copies of the Software. Nothing in this Agreement constitutes a transfer or conveyance of any right, title, or interest in the Software or associated documentation, or a sale of the Software, associated documentation, or copies of the Software.
8. Warranty, Limitation of Liability, Disclaimer of Warranty. The warranty applicable to the Software shall be as set forth in the warranty statementthataccompaniesthe Software (the “Warranty Statement”). Nothing inthis Agreement shallgive rise to anyobligation tosupport the Software. Support services may be purchased separately. Any such support shall be governed by a separate, written support services agreement. TO THE MAXIMUM EXTENT PERMITTED BY LAW, JUNIPER SHALL NOT BE LIABLE FOR ANY LOST PROFITS, LOSS OF DATA, OR COSTS ORPROCUREMENT OFSUBSTITUTE GOODSOR SERVICES,OR FORANYSPECIAL,INDIRECT, ORCONSEQUENTIALDAMAGES ARISING OUTOF THIS AGREEMENT,THE SOFTWARE,OR ANY JUNIPEROR JUNIPER-SUPPLIED SOFTWARE. IN NOEVENT SHALL JUNIPER BE LIABLE FOR DAMAGES ARISING FROM UNAUTHORIZED OR IMPROPER USE OF ANY JUNIPER OR JUNIPER-SUPPLIED SOFTWARE. EXCEPT AS EXPRESSLY PROVIDED IN THE WARRANTY STATEMENT TO THE EXTENT PERMITTED BY LAW, JUNIPER DISCLAIMS ANY AND ALL WARRANTIES IN AND TO THE SOFTWARE (WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE), INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. IN NO EVENT DOES JUNIPER WARRANT THAT THE SOFTWARE, OR ANY EQUIPMENT OR NETWORK RUNNING THE SOFTWARE, WILL OPERATE WITHOUT ERROR OR INTERRUPTION, OR WILL BE FREE OF VULNERABILITY TO INTRUSION OR ATTACK. In no event shall Juniper’s or its suppliers’ or licensors’ liability to Customer, whether in contract, tort (including negligence), breach of warranty, or otherwise, exceed the price paid by Customer for the Software that gave rise to the claim, or if the Software is embedded in another Juniper product, the price paid by Customer for such other product. Customer acknowledges and agrees that Juniper has set its prices and entered into this Agreement in reliance upon the disclaimers of warranty and the limitations of liability set forth herein, that the same reflect an allocation of risk between the Parties (including the risk that a contract remedy may fail of its essential purpose and cause consequential loss), and that the same form an essential basis of the bargain between the Parties.
9. Termination. Any breach of this Agreement or failure by Customer to pay any applicable fees due shall result in automatic termination of the license granted herein. Upon such termination, Customer shall destroy or return to Juniper all copies of the Software and related documentation in Customer’s possession or control.
10. Taxes. All license fees payable under this agreement are exclusive of tax. Customer shall be responsible for paying Taxes arising from the purchase of the license, or importation or use of the Software. If applicable, valid exemption documentation for each taxing jurisdiction shall be provided to Juniper prior to invoicing, and Customer shall promptly notify Juniper if their exemption is revoked or modified. All payments made by Customer shall be net of any applicable withholding tax. Customer will provide reasonable assistance to Juniper in connection with such withholding taxes by promptly: providing Juniper with valid tax receipts and other required documentation showing Customer’s payment of any withholding taxes; completing appropriate applications that would reduce the amount of withholding tax to be paid; and notifying and assisting Juniper in any audit or tax proceeding related to transactions hereunder. Customer shall comply with all applicable tax laws and regulations, and Customer will promptly pay or reimburse Juniper for all costs and damages related to any liability incurred by Juniper as a result of Customer’s non-compliance or delay with its responsibilities herein. Customer’s obligations under this Section shall survive termination or expiration of this Agreement.
11. Export. Customer agrees to comply with all applicable export laws and restrictions and regulations of any United States and any applicable foreign agency or authority, and not to export or re-export the Software or any direct product thereof in violation of any such restrictions, laws or regulations, or without all necessary approvals. Customer shall be liable for any such violations. The version of the Software supplied to Customer may contain encryption or other capabilities restricting Customer’s ability to export the Software without an export license.
Copyright © 2010, Juniper Networks, Inc.iv
12. Commercial Computer Software. The Software is “commercial computer software” and is provided with restricted rights. Use, duplication, or disclosure by the United States government is subject to restrictions set forth in this Agreement and as provided in DFARS
227.7201 through 227.7202-4, FAR 12.212, FAR 27.405(b)(2), FAR 52.227-19, or FAR 52.227-14(ALT III) as applicable.
13. Interface Information. To the extent required by applicable law, and at Customer's written request, Juniper shall provide Customer with the interface information needed to achieve interoperability between the Software and another independently created program, on payment of applicable fee, if any. Customer shall observe strict obligations of confidentiality with respect to such information and shall use such information in compliance with any applicable terms and conditions upon which Juniper makes such information available.
14. Third Party Software. Any licensor of Juniper whose software is embeddedin the Software and any supplier of Juniper whose products or technology are embedded in (or services are accessed by) the Software shall be a third party beneficiary with respect to this Agreement, and such licensor or vendor shallhave theright to enforce this Agreement in its own nameas if it were Juniper. In addition, certain third party software may be provided with the Software and is subject to the accompanying license(s), if any, of its respective owner(s). To the extent portions of the Software are distributed under and subject to open source licenses obligating Juniper to make the source code for such portions publicly available (such as the GNU General Public License (“GPL”) or the GNU Library General Public License (“LGPL”)), Juniper will make such source code portions (including Juniper modifications, as appropriate) available upon request for a period of up to three years from the date of distribution. Such request can be made in writing to Juniper Networks, Inc., 1194 N. Mathilda Ave., Sunnyvale, CA 94089, ATTN: General Counsel. You may obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html, and a copy of the LGPL
at http://www.gnu.org/licenses/lgpl.html .
15. Miscellaneous. This Agreement shall be governed by the laws of the State of California without reference to its conflicts of laws principles. The provisions of the U.N. Convention for the International Sale of Goods shall not apply to this Agreement. For any disputes arising under this Agreement, the Parties hereby consent to the personal and exclusive jurisdiction of, and venue in, the state and federal courts within Santa Clara County, California. This Agreement constitutes the entire and sole agreement between Juniper and the Customer with respect to the Software, and supersedes all prior and contemporaneous agreements relating to the Software, whether oral or written (including any inconsistent terms contained in a purchase order), except that the terms of a separate written agreement executed by an authorized Juniper representative and Customer shall govern to the extent such terms are inconsistent or conflict with terms contained herein. No modification to this Agreement nor any waiver of any rights hereunder shall be effective unless expressly assented to in writing by the party to be charged. If any portion of this Agreement is held invalid, the Parties agree that such invalidity shall not affect the validity of the remainder of this Agreement. This Agreement and associated documentation has been written in the English language, and the Parties agree that the English version will govern. (For Canada: Les parties aux présentés confirment leur volonté que cette convention de même que tous les documents y compris tout avis qui s'y rattaché, soient redigés en langue anglaise. (Translation: The parties confirm that this Agreement and all related documentation is and will be in the English language)).
vCopyright © 2010, Juniper Networks, Inc.
Copyright © 2010, Juniper Networks, Inc.vi
Abbreviated Table of Contents
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Part 1 Border Gateway Protocol
Chapter 1 Configuring BGP Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 2 Monitoring BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Part 2 Multiprotocol Layer Switching
Chapter 3 MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Chapter 4 Configuring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Chapter 5 Monitoring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Chapter 6 Configuring BGP-MPLS Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
Chapter 7 Monitoring BGP/MPLS VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
Part 3 Layer 2 Services Over MPLS
Chapter 8 Layer 2 Services over MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513
Chapter 9 Configuring Layer 2 Services over MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
Chapter 10 Monitoring Layer 2 Services over MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
Part 4 Virtual Private LAN Service
Chapter 11 VPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
Chapter 12 Configuring VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
Chapter 13 Monitoring VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
Part 5 Virtual Private Wire Service
Chapter 14 VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
Chapter 15 Configuring VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Chapter 16 Monitoring VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671
Part 6 Index
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 691
viiCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Copyright © 2010, Juniper Networks, Inc.viii
Table of Contents
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
E Series and JunosE Documentation and Release Notes . . . . . . . . . . . . . . . . . . xxxiii
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
E Series and JunosE Text and Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Obtaining Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxv
Documentation Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxv
Requesting Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxv
Self-Help Online Tools and Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvi
Opening a Case with JTAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvi
Part 1 Border Gateway Protocol
Chapter 1 Configuring BGP Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Conventions in This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Autonomous Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
BGP Speaker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
BGP Peers and Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
BGP Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
IBGP and EBGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Interior Gateway Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
BGP Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
BGP Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Routing Information Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Prefixes and CIDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Path Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Transit and Nontransit Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
IPv6 BGP Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Exchange of IPv6 Routing Information over TCP IPv4 . . . . . . . . . . . . . . . 13
Exchange of IPv6 Routing Information over TCP IPv6 . . . . . . . . . . . . . . . 14
Link-Local Next Hops in MP-BGP Packets . . . . . . . . . . . . . . . . . . . . . . . . 14
Platform Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Before You Configure BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Basic Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Enabling BGP Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Understanding BGP Command Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Inheritance of Configuration Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Limitations on Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
ixCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Setting the BGP Identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Configuring Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Configuring BGP Peer Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Setting the Peer Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Assigning a Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Logging Neighbor State Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Specifying a Source Address for a BGP Session . . . . . . . . . . . . . . . . . . . . . . . 30
Specifying Peers That Are Not Directly Connected . . . . . . . . . . . . . . . . . . . . . 32
Specifying a Single-Hop Connection for IBGP Peers . . . . . . . . . . . . . . . . . . . . 34
Controlling the Number of Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Removing Private AS Numbers from Updates . . . . . . . . . . . . . . . . . . . . . . . . . 35
Checking AS Path Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Enabling MD5 Authentication on a TCP Connection . . . . . . . . . . . . . . . . . . . . 37
Setting the Maximum Size of Update Messages . . . . . . . . . . . . . . . . . . . . . . . 38
Setting Automatic Fallover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Setting Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Automatic Summarization of Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Administrative Shutdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Configuring BGP for Overload Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Enabling Route Storage in Adj-RIBs-Out Tables . . . . . . . . . . . . . . . . . . . . . . . 41
Configuring the Address Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Enabling Lenient Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Configuring Promiscuous Peers and Dynamic Peering . . . . . . . . . . . . . . . . . . 47
Configuring Passive Peers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Advertising Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Prefixes Originating in an AS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Advertising Best Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Redistributing Routes into BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Redistributing Routes from BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Configuring a Default Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Setting the Minimum Interval Between Routing Updates . . . . . . . . . . . . . . . . 58
Aggregating Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Advertising Inactive Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Verifying an AS Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Advertising IPv4 Routes Between IPv6 BGP Peers . . . . . . . . . . . . . . . . . . . . . 63
Advertising Routes Conditionally . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Configuring BGP Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Types of BGP Route Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Applying Table Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Access Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Effects of Changing Outbound Policies . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Advertising Default Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Redistributing Default Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Setting a Static Default Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Advertising a Route Only When Another Route is Present . . . . . . . . . . . . 65
Advertising a Route Only When Another Route is Absent . . . . . . . . . . . . 67
Advertising a Default Route Only When Another Route Is Present . . . . . 68
Filtering Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Filtering AS Paths with a Filter List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Copyright © 2010, Juniper Networks, Inc.x
Table of Contents
Filtering AS Paths with a Route Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Configuring the Community Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Community Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Resetting a BGP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Changing Policies Without Disruption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Soft Reconfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Route-Refresh Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Cooperative Route Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Configuring Route Flap Dampening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Global Route Flap Dampening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Policy-Based Route Flap Dampening . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Policy Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Selecting the Best Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
BGP Path Decision Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Configuring Next-Hop Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Next Hops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Next-Hop-Self . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Assigning a Weight to a Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Using the neighbor weight Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Using a Route Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Using an AS-Path Access List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Configuring the Local-Pref Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Using the bgp default local-preference Command . . . . . . . . . . . . . . . . . 113
Using a Route Map to Set the Local Preference . . . . . . . . . . . . . . . . . . . . 114
Understanding the Origin Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Understanding the AS-Path Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Configuring a Local AS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Configuring the MED Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Missing MED Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Comparing MED Values Within a Confederation . . . . . . . . . . . . . . . . . . . 122
Capability Negotiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Cooperative Route Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Dynamic Capability Negotiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Four-Octet AS Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Graceful Restarts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Configuring Hold Timers for Successful Graceful Restart in Scaled
Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Route Refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Interactions Between BGP and IGPs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Synchronizing BGP with IGPs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Disabling Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Setting the Administrative Distance for a Route . . . . . . . . . . . . . . . . . . . . . . . 133
Configuring Backdoor Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Setting the Maximum Number of Equal-Cost Multipaths . . . . . . . . . . . . . . . 138
Detecting Peer Reachability with BFD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
BFD and BGP Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
xiCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Managing a Large-Scale AS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Configuring a Confederation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Configuring Route Reflectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Configuring BGP Multicasting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Monitoring BGP Multicast Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Using BGP Routes for Other Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Configuring BGP/MPLS VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Testing BGP Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Chapter 2 Monitoring BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Setting a Baseline on All BGP Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Enabling Display of BGP Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Setting the Default Output Fields While Displaying Summarized Status of BGP
Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Setting the Default BGP Routing Table Output Fields . . . . . . . . . . . . . . . . . . . . . 159
Monitoring AS-Path Access Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Monitoring the BGP Routing Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Monitoring Advertised BGP Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Monitoring BGP Aggregate Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Monitoring BGP Routes with Nonnatural Network Masks . . . . . . . . . . . . . . . . . . . 170
Monitoring BGP Routes in a Community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Monitoring BGP Community Routes in the Community List . . . . . . . . . . . . . . . . . 173
Monitoring Dampened BGP Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
Monitoring BGP Routes with Matching AS Paths and AS-Path Access Lists . . . . 176
Monitoring BGP Flap Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Monitoring BGP Routes with Inconsistent AS Paths . . . . . . . . . . . . . . . . . . . . . . . 179
Monitoring BGP Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Monitoring Dampened BGP Routes of Specified Neighbors . . . . . . . . . . . . . . . . . 185
Monitoring BGP Paths of Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Monitoring Prefix List Outbound Route Filters Received from the BGP
Neighbor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Monitoring Routes Originating from a BGP Neighbor Before Application of
Inbound Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Monitoring Routes Originating froma BGPNeighbor After Application of Inbound
Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Monitoring Networks in an Autonomous System . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Monitoring BGP Next Hops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Monitoring BGP Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
Monitoring BGP Peer Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Monitoring BGP Routes with Matching AS-Paths and Regular Expressions for
Single Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Monitoring BGP Routes with Matching AS-Paths and Regular Expressions for
Multiple Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
Monitoring the Status of All BGP Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
Monitoring All Routes in a BGP Community List . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Disabling Display of BGP Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Route Reflection and Redundancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Route Reflection and Looping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Copyright © 2010, Juniper Networks, Inc.xii
Table of Contents
Part 2 Multiprotocol Layer Switching
Chapter 3 MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Terminology for MPLS Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
MPLS Terms and Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
MPLS Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
MPLS Platform Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
MPLS References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
MPLS Label Switching and Packet Forwarding Overview . . . . . . . . . . . . . . . . . . . 218
MPLS LSRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
MPLS Label Switching: Push, Look Up, and Pop . . . . . . . . . . . . . . . . . . . . . . 219
MPLS Label Stacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
MPLS Labels and Label Spaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
TTL Processing in the Platform Label Space Overview . . . . . . . . . . . . . . . . . . . . 222
TTL Processing on Incoming MPLS Packets . . . . . . . . . . . . . . . . . . . . . . . . . 223
TTL Processing on Outgoing MPLS Packets . . . . . . . . . . . . . . . . . . . . . . . . . 224
Rules for Processing on an LSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Rules for Processing on an LER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
MPLS Rules for TTL Expiration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
MPLS Label Distribution Methodology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
IP Data Packet Mapping onto MPLS LSPs Overview . . . . . . . . . . . . . . . . . . . . . . 229
Statistics for IP Packets Moving On or Off MPLS LSPs . . . . . . . . . . . . . . . . . . . . . 231
MPLS Forwarding and Next-Hop Tables Overview . . . . . . . . . . . . . . . . . . . . . . . . 233
MPLS Packet Spoof Checking Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
IP and IPv6 Tunnel Routing Tables and MPLS Tunnels Overview . . . . . . . . . . . . 235
Explicit Routing for MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
MPLS Interfaces and Interface Stacking Overview . . . . . . . . . . . . . . . . . . . . . . . . 236
MPLS Major Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
MPLS Minor Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
MPLS Shim Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Interface Stacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
MPLS Label Distribution Protocols Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
LDP Messages and Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
RSVP-TE Messages and Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
RSVP-TE State Refresh and Reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
BGP Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
ECMP Labels for MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
MPLS Connectivity and ECMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Supported TLVs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
MPLS Connectivity Verification and Troubleshooting Methods . . . . . . . . . . . . . . 245
Point-to-Multipoint LSPs Connectivity Verification at Egress Nodes
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Ping Extensions for Point-to-Multipoint LSPs Connectivity Verification at Egress
Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
RSVP P2MP IPv4 Session Sub-TLV Overview . . . . . . . . . . . . . . . . . . . . . . . . 247
P2MP Responder Identifier TLV Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Echo Jitter TLV Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Traceroute Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
xiiiCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
TLVs and Sub-TLVs Supported for Point-to-Multipoint LSPs Connectivity
Verification at Egress Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Echo Jitter TLV Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
P2MP Responder Identifier TLV Operations . . . . . . . . . . . . . . . . . . . . . . . . . 249
LDP Discovery Mechanisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
LDP Basic Discovery Mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
LDP Extended Discovery Mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
MPLS Traffic Engineering Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
LSP Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Path Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Reoptimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Methods for Configuring RSVP-TE Tunnels . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Tracking Resources for MPLS Traffic Engineering Overview . . . . . . . . . . . . . . . . . 253
Starting Admission Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Admission Control Interface Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Configuring Traffic-Engineering Resources . . . . . . . . . . . . . . . . . . . . . . . . . . 254
LSP Preemption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Topology-Driven LSPs Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
LDP over RSVP-TE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
LDP Graceful Restart Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
LDP-IGP Synchronization Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Synchronization Behavior During Graceful Restart . . . . . . . . . . . . . . . . . . . . 260
Synchronization Behavior on LAN Interfaces . . . . . . . . . . . . . . . . . . . . . . . . 260
Synchronization Behavior on IGP Passive Interfaces . . . . . . . . . . . . . . . . . . 260
Synchronization and TE Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Use of RSVP-TE Hello Messages to Determine Peer Reachability . . . . . . . . . . . 260
Hello Message Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Hello Message Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Sequence of Hello Message Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Determination That a Peer Has Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
RSVP-TE Graceful Restart Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Announcement of the Graceful Restart Capability . . . . . . . . . . . . . . . . . . . . 263
Restarting Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Recovery Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Preservation of an Established LSP Label . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
RSVP-TE Hellos Based on Node IDs Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
BFD Protocol and RSVP-TE Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Tunneling Model for Differentiated Services Overview . . . . . . . . . . . . . . . . . . . . . 267
Pipe and Short Pipe Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Uniform Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
EXP Bits for Differentiated Services Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Incoming Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Outgoing Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Setting the EXP Bits for Outgoing Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Egress Address P2MP Responder Identifier Sub-TLVs . . . . . . . . . . . . . 250
Node Address P2MP Responder Identifier Sub-TLVs . . . . . . . . . . . . . . 250
Behavior of the Requesting Peer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Behavior of the Acknowledging Peer . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Behavior of Both Peers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Copyright © 2010, Juniper Networks, Inc.xiv
Table of Contents
Point-to-Multipoint LSPs Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
Using E Series Routers as Egress LSRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Chapter 4 Configuring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Basic MPLS Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
MPLS Global Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
MPLS Global Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
LDP Global Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
RSVP-TE Global Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
LDP and RSVP-TE Interface Profile Configuration Tasks . . . . . . . . . . . . . . . . . . . 280
LDP Interface Profile Configuration Tasks and Commands . . . . . . . . . . . . . . 281
RSVP-TE Interface Profile Configuration Tasks and Commands . . . . . . . . . 281
MPLS Interface Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
MPLS Interface Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
LDP Interface Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
RSVP-TE Interface Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
MPLS Tunnel Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
MPLS Tunnel Profile Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Configuring Explicit Routing for MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
Defining Configured Explicit Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Specifying Configured Explicit Paths on a Tunnel . . . . . . . . . . . . . . . . . . . . . 287
Configuring Dynamic Explicit Paths on a Tunnel . . . . . . . . . . . . . . . . . . . . . . 288
Additional LDP Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Configuring LDP FEC Deaggregation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Configuring LDP Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Configuring LDP Autoconfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
Configuring LDP-IGP Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
Configuring LDP MD5 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
Controlling LDP Label Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Additional RSVP-TE Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Configuring RSVP MD5 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Configuring RSVP-TE Fast Rerouting with RSVP-TE Bypass Tunnels . . . . . . . . . 295
Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Fast Reroute over SONET/SDH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Configuring RSVP-TE Hello Messages to Determine Peer Reachability . . . . . . . 297
Configuring RSVP-TE Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Configuring RSVP-TE Hellos Based on Node IDs . . . . . . . . . . . . . . . . . . . . . . . . . 299
Configuring the BFD Protocol for RSVP-TE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
Configuring IGPs and MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
Configuring the IGPs for Traffic Engineering . . . . . . . . . . . . . . . . . . . . . . . . . 303
Configuring MPLS and Differentiated Services . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Configuring the Tunneling Model for Differentiated Services . . . . . . . . . . . . . . . 305
Configuring EXP Bits for Differentiated Services . . . . . . . . . . . . . . . . . . . . . . . . . 305
Example Differentiated Services Application and Configuration . . . . . . . . . . . . . 305
Differentiated Services Configuration Example . . . . . . . . . . . . . . . . . . . . . . 306
Classifying Traffic for Differentiated Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Configuring Static EXP-to-PHB Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Signaled Mapping for RSVP-TE Tunnels . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Preference of per-VR Versus per-LSP Behavior . . . . . . . . . . . . . . . . . . . . . . . 313
xvCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Example Traffic Class Configuration for Differentiated Services . . . . . . . . . . . . . 313
Configuration on the Ingress Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Configuration on the Ingress and Transit Routers . . . . . . . . . . . . . . . . . . . . . 316
Configuration on the Transit and Egress Routers . . . . . . . . . . . . . . . . . . . . . . 317
Configuring Point-to-Multipoint LSPs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Chapter 5 Monitoring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Setting the Baseline for MPLS Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Setting a Baseline for MPLS Major Interface Statistics . . . . . . . . . . . . . . . . . 322
Enabling and Setting a Baseline for MPLS Forwarding Table Statistics . . . . 323
Enabling and Setting a Baseline for MPLS Next-Hop Table Statistics . . . . . 323
Setting a Baseline for MPLS Tunnel Statistics . . . . . . . . . . . . . . . . . . . . . . . . 324
Enabling Statistics Collection for Policies Attached to MPLS Tunnels . . . . . 324
Clearing and Re-Creating Dynamic Interfaces from MPLS Major Interfaces . . . . 324
Clearing and Refreshing IPv4 Dynamic Routes in the Tunnel Routing Table . . . . 325
Clearing and Refreshing IPv6 Dynamic Routes in the Tunnel Routing Table . . . . 325
Tracing Paths Through the MPLS User Plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
Monitoring ATM VCs and VPI/VCI Ranges Used for MPLS . . . . . . . . . . . . . . . . . . 326
Monitoring Global Call Admission Control Configuration . . . . . . . . . . . . . . . . . . . 327
Monitoring Interfaces Configured with Traffic Engineering Bandwidth
Accounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
Monitoring Virtual Router Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
Monitoring IP and IPv6 Tunnel Routing Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Monitoring LDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Monitoring MPLS Label Bindings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
Monitoring LDP Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Monitoring Interfaces That are Synchronizing with LDP . . . . . . . . . . . . . . . . . . . . 334
Monitoring LDP Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
Monitoring LDP Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Monitoring LDP Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
Monitoring LDP Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
Monitoring LDP Targeted Hello Receive and Send Lists . . . . . . . . . . . . . . . . . . . . 343
Monitoring MPLS Status and Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Monitoring MPLS Explicit Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
Monitoring the RSVP-TE Bypass Tunnels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Monitoring MPLS Labels Used for Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Monitoring MPLS Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Monitoring MPLS Minor Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Monitoring MPLS Next Hops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
Monitoring the Configured Mapping between PHB IDs and Traffic Class/Color
Combinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Monitoring RSVP-TE Profiles and MPLS Tunnel Profiles . . . . . . . . . . . . . . . . . . . 358
Monitoring RSVP Path State Control Blocks, Reservation State Control Blocks,
or Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
Monitoring RSVP MD5 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
Monitoring RSVP-TE Interfaces Where BFD is Enabled . . . . . . . . . . . . . . . . . . . . 364
Monitoring RSVP-TE Interface Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
Monitoring RSVP-TE Graceful Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
Monitoring RSVP-TE Hello Adjacency Instances . . . . . . . . . . . . . . . . . . . . . . . . . 368
Copyright © 2010, Juniper Networks, Inc.xvi
Table of Contents
Monitoring Status and Configuration for MPLS Tunnels . . . . . . . . . . . . . . . . . . . 370
Verifying and Troubleshooting MPLS Connectivity . . . . . . . . . . . . . . . . . . . . . . . . 372
Sending an MPLS Echo Request Packet to an IP or IPv6 Address . . . . . . . . 373
Tracing the Path of an MPLS Echo Request Packet to an IP or IPv6
Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Sending an MPLS Echo Request Packet to a Martini Circuit . . . . . . . . . . . . . 373
Tracing the Path of an MPLS Echo Request Packet to a Martini Circuit . . . . 373
Sending an MPLS Echo Request Packet to an L3VPN IP or IPv6 Prefix . . . . 373
Tracing the Path of an MPLS Echo Request Packet to an L3VPN IP or IPv6
Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Sending an MPLS Echo Request Packet to an RSVP-TE Tunnel . . . . . . . . . . 373
Tracing the Path of an MPLS Echo Request Packet to an RSVP-TE
Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
Sending an MPLS Echo Request Packet to a VPLS Instance . . . . . . . . . . . . 374
Tracing the Path of an MPLS Echo Request Packet to a VPLS Instance . . . 374
Packet Flow Examples for Verifying MPLS Connectivity . . . . . . . . . . . . . . . . . . . 374
Packet Flow Examples for MPLS LSPs to an IP Prefix . . . . . . . . . . . . . . . . . . 375
Packet Flow Example for the ping mpls Command . . . . . . . . . . . . . . . . 375
Packet Flow Example for the trace mpls Command . . . . . . . . . . . . . . . 377
Packet Flows for ping and trace to L3VPN IPv4 Prefixes . . . . . . . . . . . . . . . . 378
Inter-AS Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
Packet Flows to L3VPN IPv6 Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Troubleshooting MTU Problems in Point-to-Point LSPs . . . . . . . . . . . . . . . . . . . 381
Troubleshooting MTU Problems in a Point-to-Point MPLS LSP Associated
with an IP or IPv6 Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Troubleshooting MTU Problems in a Point-to-Point MPLS LSP Associated
with an L3VPN IP or IPv6 Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Troubleshooting MTU Problems in a Point-to-Point MPLS LSP Associated
with a Martini Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Troubleshooting MTU Problems in a Point-to-Point MPLS LSP Associated
with an RSVP-TE Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Troubleshooting MTU Problems in a Point-to-Point MPLS LSP Associated
with a VPLS Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Chapter 6 Configuring BGP-MPLS Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
Address Families . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
Equal-Cost Multipath Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
BGP/MPLS VPN Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
VPN-IPv4 Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Route Targets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Distribution of Routes and Labels with BGP . . . . . . . . . . . . . . . . . . . . . . . . . 392
Platform Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Transporting Packets Across an IP Backbone with MPLS . . . . . . . . . . . . . . . . . . 396
Configuring IPv6 VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Intra-AS IPv6 VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
BGP Control Plane Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
CE–PE Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
xviiCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
PE–PE Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
MPLS Data Plane Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
Providing IPv4 VPN Services Across Multiple Autonomous Systems . . . . . . . . . 403
Inter-AS Option A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Inter-AS Option B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Inter-AS Option C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
Inter-AS Option C with Route Reflectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
Providing IPv6 VPN Services Across Multiple Autonomous Systems . . . . . . . . . . 411
Using Route Targets to Configure VPN Topologies . . . . . . . . . . . . . . . . . . . . . . . . 412
Full-Mesh VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
Hub-and-Spoke VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Overlapping VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
Constraining Route Distribution with Route-Target Filtering . . . . . . . . . . . . . . . . 416
Exchanging Route-Target Membership Information . . . . . . . . . . . . . . . . . . . 416
Receiving and Sending RT-MEM-NLRI Routing Updates . . . . . . . . . . . . . . . 418
Conditions for Advertising RT-MEM-NLRI Routes . . . . . . . . . . . . . . . . . . . . . 420
Advertising a Default Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
Route Selection When Route-Target Filtering Is Enabled . . . . . . . . . . . . . . . 422
Configuring Route-Target Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
Multicast Services over VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
Configuring BGP VPN Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
VRF Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
PE Router Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
Creating a VRF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
Specifying a Route Distinguisher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
Defining Route Targets for VRFs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
Setting Import and Export Maps for a VRF . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
Global Export of IPv6 VPN Routes into the Global BGP IPv6 RIB . . . . . . . . 436
Assigning an Interface to a VRF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
Defining Secondary Routing Table Lookup . . . . . . . . . . . . . . . . . . . . . . . . . . 438
Adding Static Routes to a VRF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
Configuring IGPs on the VRF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
Disabling Automatic Route-Target Filtering . . . . . . . . . . . . . . . . . . . . . . . . . 442
Creating Labels per FEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
Configuring PE-to-PE LSPs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
Enabling BGP Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
Enabling BGP ECMP for BGP/MPLS VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . 444
Enabling VPN Address Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
Configuring PE-to-CE BGP Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
Characteristics of Import and Global Import Maps . . . . . . . . . . . . . . . . 432
Characteristics of Export and Global Export Maps . . . . . . . . . . . . . . . . 433
Subsequent Distribution of Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
Creating a Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Export Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Global Export Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
Import Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
Global Import Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
Configuring the IGP in the VRF Context . . . . . . . . . . . . . . . . . . . . . . . . . . 441
Configuring the IGP Outside the VRF Context . . . . . . . . . . . . . . . . . . . . 441
Copyright © 2010, Juniper Networks, Inc.xviii
Table of Contents
Advertising Static Routes to Customers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
Advertising IGP Routes to Customers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
Disabling the Default Address Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
Using a Single AS Number for All CE Sites . . . . . . . . . . . . . . . . . . . . . . . . . . 450
Preventing Routing Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
Advertising Prefixes with Duplicate AS Numbers . . . . . . . . . . . . . . . . . . . . . 454
Controlling Route Importation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
Deleting Routes for a VRF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
Enabling VRF–to–VR Peering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
Achieving Fast Reconvergence in VPN Networks . . . . . . . . . . . . . . . . . . . . . 458
Fast Reconvergence with Unique RDs . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Fast Reconvergence by Means of Reachability Checking . . . . . . . . . . . 460
Configuring BGP to Send Labeled and Unlabeled Unicast Routes . . . . . . . . 461
BGP Next-Hop-Self . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
BGP Processing of Received Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
Labeled Unicast Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
Unlabeled Unicast Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
Resolving IPv6 Indirect Next Hops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
Labeled VPN Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
BGP Advertising Rules for Labeled and Unlabeled Routes with the Same
AFI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464
Providing Internet Access to and from VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464
Enabling Traffic Flow from the VPN to the Internet . . . . . . . . . . . . . . . . . . . 465
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465
Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465
Configuring a Default Route to a Shared Interface . . . . . . . . . . . . . . . . 465
Configuring a Fallback Global Option . . . . . . . . . . . . . . . . . . . . . . . . . . 466
Configuring a Global Import Map for Specific Routes . . . . . . . . . . . . . . 467
Creating a BGP Session Between the CE Router and the Parent VR . . . . . . 468
Enabling Traffic Flow from the Internet to the VPN . . . . . . . . . . . . . . . . . . . 470
Static Routes to a Shared IP Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 470
Global Export Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
Carrier-of-Carriers IPv4 VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472
Customer Carrier as an Internet Service Provider . . . . . . . . . . . . . . . . . . . . . 473
Configuration Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
Customer Carrier as a VPN Service Provider . . . . . . . . . . . . . . . . . . . . . . . . . 475
Configuration Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476
Enabling Carrier-of-Carriers Support on a VRF . . . . . . . . . . . . . . . . . . . . . . . 477
Carrier-of-Carriers Using BGP as the Label Distribution Protocol . . . . . . . . 478
Carrier-of-Carriers IPv6 VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
Connecting IPv6 Islands Across IPv4 Clouds with BGP . . . . . . . . . . . . . . . . . . . . 479
Connecting IPv6 Islands Across Multiple IPv4 Domains . . . . . . . . . . . . . . . 480
Configuring IPv6 Tunneling over IPv4 MPLS . . . . . . . . . . . . . . . . . . . . . . . . . 481
OSPF and BGP/MPLS VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
Distributing OSPF Routes from CE Router to PE Router . . . . . . . . . . . . . . . . 483
Distributing Routes Between PE Routers . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
Preserving OSPF Routing Information Across the MPLS/VPN Backbone . . 483
OSPF Domain Identifier Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
OSPF Route Type Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
xixCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Distributing OSPF Routes from PE Router to CE Router . . . . . . . . . . . . . . . . 484
Preventing Routing Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484
Using Remote Neighbors to Configure OSPF Sham Links . . . . . . . . . . . . . . 485
Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488
Configuring VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Configuring L2VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Chapter 7 Monitoring BGP/MPLS VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
Enabling the MP-BGP Events Log Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
Monitoring BGP Next Hops for VPN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
Monitoring VRF Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
Monitoring VRF Routing Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496
Monitoring the VRF Routing Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
Monitoring the VRF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
Monitoring Load-Balanced Martini Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505
Monitoring MPLS Tunnels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
Disabling the MP-BGP Events Log Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508
OSPF Backdoor Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486
OSPF Sham Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486
Part 3 Layer 2 Services Over MPLS
Chapter 8 Layer 2 Services over MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513
Layer 2 Services over MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513
Layer 2 Services over MPLS Platform Considerations . . . . . . . . . . . . . . . . . . . . . . 514
Module Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514
Interface Specifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
Layer 2 Services over MPLS References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
Layer 2 Services over MPLS Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516
Local Cross-Connects Between Layer 2 Interfaces Using MPLS Overview . . . . . 517
MPLS Shim Interfaces for Layer 2 Services over MPLS Overview . . . . . . . . . . . . . 518
Multiple Layer 2 Services over MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
ATM Layer 2 Services over MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
AAL5 Encapsulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
OAM Cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
QoS Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
Control Word Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
VCC Cell Relay Encapsulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
AAL0 Raw Cell Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
Cell Concatenation Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
Cell Concatenation and Latency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
Control Word Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
Unsupported Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
HDLC Layer 2 Services over MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
Interface Stacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
Encapsulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
Control Word Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
Local Cross-Connects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
CE-Side MPLS L2VPNs over LAG Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
Copyright © 2010, Juniper Networks, Inc.xx
Table of Contents
Ethernet Raw Mode Encapsulation for Martini Layer 2 Transport Overview . . . . 526
S-VLAN Subinterface with an Untagged C-VLAN ID Overview . . . . . . . . . . . . . . 528
Multiple ATM Virtual Circuits over a Single Pseudowire Overview . . . . . . . . . . . . 529
Guidelines for Configuring VPI/VCI Ranges of ATM Virtual Circuits . . . . . . . . 531
Guidelines for Configuring Cell Concatenation and Cell Packing Timer for
an ATM Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532
Performance Impact and Scalability Considerations . . . . . . . . . . . . . . . . . . 532
Chapter 9 Configuring Layer 2 Services over MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
Before You Configure Layer 2 Services over MPLS . . . . . . . . . . . . . . . . . . . . . . . . 535
Configuring Frame Relay Layer 2 Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
Configuring Interoperation with Legacy Frame Relay Layer 2 Services . . . . . . . . 536
Configuring Ethernet/VLAN Layer 2 Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
Configuring S-VLAN Tunnels for Layer 2 Services . . . . . . . . . . . . . . . . . . . . . . . . 538
Configuring Local Cross-Connects Between Ethernet/VLAN Interfaces . . . . . . . 539
Configuring Local ATM Cross-Connects with AAL5 Encapsulation . . . . . . . . . . . 540
Configuring an MPLS Pseudowire with VCC Cell Relay Encapsulation . . . . . . . . 542
Configuring HDLC Layer 2 Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544
Local Cross-Connects for HDLC Layer 2 Services Configuration
Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
CE-Side Load Balancing for Martini Layer 2 Transport . . . . . . . . . . . . . . . . . . . . . 545
Understanding CE Load Balancing for Martini Layer 2 Transport . . . . . . . . . 545
Configuration of Many Shim Interfaces with the Same Peer, VC Type, and
VC ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Example: Configuring Many Shim Interfaces with the Same Peer, VC Type,
and VC ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Load-Balancing Group Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
MPLS Interfaces and Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549
Configuring Load-Balancing Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549
Adding a Member Interface to a Group Circuit . . . . . . . . . . . . . . . . . . . . 549
Removing Member Subinterfaces from a Circuit . . . . . . . . . . . . . . . . . . 549
Example: Configuring Frame Relay over MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
Example: Configuring MPLS L2VPN Tunnel over VLAN over LAG . . . . . . . . . . . . 553
Configuration on CE1 (Local CE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
Configuration on PE1 (Local PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
Configuration on PE2 (Remote PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . 555
Configuration on CE2 (Remote CE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . 556
Example: Configuring MPLS L2VPN Tunnel over LAG . . . . . . . . . . . . . . . . . . . . . 556
Configuration on CE1 (Local CE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
Configuration on PE1 (Local PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
Configuration on PE2 (Remote PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . 559
Configuration on CE2 (Remote CE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . 560
Examples: Ethernet Raw Mode Encapsulation for Martini Layer 2 Transport . . . 560 Examples: Configuring S-VLAN Subinterface with an Untagged C-VLAN ID . . . 563
Example: Multiple ATM Virtual Circuits over a Single Pseudowire . . . . . . . . . . . . 565
Chapter 10 Monitoring Layer 2 Services over MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
Setting Baselines for Layer 2 Services over MPLS Statistics . . . . . . . . . . . . . . . . 569
Monitoring ATM Martini Cell Packing Timers for Layer 2 Services over MPLS . . . 570
Monitoring ATM Subinterfaces for Layer 2 Services over MPLS . . . . . . . . . . . . . . 570
xxiCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Monitoring ATM Cross-Connects for Layer 2 Services over MPLS . . . . . . . . . . . . 572
Monitoring MPLS Forwarding for Layer 2 Services over MPLS . . . . . . . . . . . . . . . 572
Monitoring MPLS Layer 2 Interfaces for Layer 2 Services over MPLS . . . . . . . . . . 574
Part 4 Virtual Private LAN Service
Chapter 11 VPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
VPLS Protocol Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
VPLS Components Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
VPLS Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
Customer Edge Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
VPLS Edge Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
VPLS and Transparent Bridging Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
Subscriber Policies for VPLS Network Interfaces Overview . . . . . . . . . . . . . . . . . 585
Network Interface Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Default Subscriber Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Modifying Subscriber Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Considerations for VPLS Network Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . 587
BGP Signaling for VPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
LDP Signaling for VPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Targeted Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
PWid FEC Element TLV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
BGP Multihoming for VPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
Designated VE Device Selection for a Multihomed Site . . . . . . . . . . . . . . . . . 591
Multihoming Reaction to Failures in the Network . . . . . . . . . . . . . . . . . . . . . 593
VPLS Supported Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
VPLS Platform Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
Module Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
Interface Specifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
VPLS References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
Chapter 12 Configuring VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
Configuring VPLS with BGP Signaling on a PE Router . . . . . . . . . . . . . . . . . . . . . 598
Configuring VPLS Instances with BGP Signaling . . . . . . . . . . . . . . . . . . . . . . . . . 598
Configuring BGP Multihoming for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600
Configuring Optional Attributes for VPLS Instances . . . . . . . . . . . . . . . . . . . . . . . 601
Configuring VPLS Network Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
Configuring the Loopback Interface and Router ID for VPLS . . . . . . . . . . . . . . . . 603
Configuring MPLS LSPs for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
Configuring BGP Signaling for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
Example: Configuring VPLS with BGP Signaling . . . . . . . . . . . . . . . . . . . . . . . . . 606
Topology Overview of VPLS with BGP Signaling . . . . . . . . . . . . . . . . . . . . . 607
Configuration on PE 1 (Local PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 608
Configuration on PE 2 (Remote PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . 609
Configuring VPLS with LDP Signaling on a PE Router . . . . . . . . . . . . . . . . . . . . . 610
Configuring VPLS Instances with LDP Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . 611
Configuring LDP Signaling for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
Copyright © 2010, Juniper Networks, Inc.xxii
Table of Contents
Configuring Routing in the Core Network for VPLS . . . . . . . . . . . . . . . . . . . . . . . . 612
Example: Configuring VPLS LDP Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
Topology Overview of VPLS with LDP Signaling . . . . . . . . . . . . . . . . . . . . . . 614
Configuration on PE 1 (Local PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614
Configuration on PE 2 (Remote PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . 615
Chapter 13 Monitoring VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
Setting the Baseline for VPLS Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
Setting a Baseline for a VPLS Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
Setting a Baseline for a Network Interface associated with a VPLS
Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
Setting a Baseline for the VPLS Virtual Core Interface associated with a
VPLS Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
Clearing Dynamic MAC Addresses from the VPLS Forwarding Table . . . . . . . . . 618
Clearing All Dynamic MAC Addresses from the VPLS Forwarding Table . . . 619 Clearing a Specific Dynamic MAC Addresses from the VPLS Forwarding
Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
Clearing All Dynamic MAC Addresses for a Network Interface associated
with a VPLS Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
Clearing All Dynamic MAC Addresses for the VPLS Virtual Core Interface
associated with a VPLS Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
Clearing BGP Attributes for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Clearing BGP Reachability Information for the L2VPN Address Family . . . . 620
Clearing BGP Route Flap Dampening Information for the L2VPN Address
Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Clearing BGP Route Flap Dampening Information for the VPWS Address
Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Clearing the Wait for End-of-RIB Marker for the L2VPN Address Family . . . 620
Monitoring VPLS Configuration and Statistics for a Specific VPLS Instance . . . . 621
Monitoring VPLS Configuration and Statistics for All VPLS Instances . . . . . . . . 622
Monitoring Configuration, Statistics, and Status for VPLS Network Interfaces . . 624
Monitoring Configuration, Statistics, and Status for VPLS Core Interfaces . . . . . 628
Monitoring Configuration, Statistics, and Status for VPLS Ports . . . . . . . . . . . . . 629
Monitoring MAC Address Entries for a Specific VPLS Instance . . . . . . . . . . . . . . 632
Monitoring Subscriber Policy Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
Monitoring Layer2 NLRI for VPLS Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
Monitoring BGP Next Hops for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
Monitoring LDP-Related Settings for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 638
Monitoring MPLS-Related Settings for VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639
Monitoring VPLS-Specific Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640
Part 5 Virtual Private Wire Service
Chapter 14 VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
BGP Signaling for L2VPNs Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649
VPWS Components Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650
VPWS Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
Customer Edge Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
VPWS Provider Edge Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
xxiiiCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
VPWS and BGP/MPLS VPNs Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
BGP Multihoming for VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
Designated VE Device Selection for a Multihomed Site . . . . . . . . . . . . . . . . . . . . 654
Multihoming Reaction to Failures in the Network . . . . . . . . . . . . . . . . . . . . . . . . . 656
VPWS Supported Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
VPWS Platform Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
Module Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
Interface Specifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 658
VPWS References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 658
Chapter 15 Configuring VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Configuring VPWS on a PE Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Configuring an VPWS Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
Configuring BGP Multihoming for VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661
Types of Interfaces to Configure in the VPWS Instance . . . . . . . . . . . . . . . . . . . . 662
Configuring Customer-Facing Interfaces in the VPWS Instance . . . . . . . . . . . . . 662
Local Cross-Connects for VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Configuring a Local Cross-Connect for VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
BGP Loopback Interface and Router ID Overview . . . . . . . . . . . . . . . . . . . . . . . . 664
Configuring the Loopback Interface and Router ID for BGP for VPWS . . . . . . . . 664
BGP Signaling for VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
Configuring BGP Signaling for VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
MPLS LSPs for VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
Configuring MPLS LSPs for VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
Example: Configuring VPWS on Local and Remote Routers . . . . . . . . . . . . . . . . 667
Topology Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
Configuration on PE 1 (Local PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
Configuration on PE 2 (Remote PE Router) . . . . . . . . . . . . . . . . . . . . . . . . . 669
Chapter 16 Monitoring VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671
Clearing BGP Attributes for VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671
Clearing BGP Reachability Information for the L2VPN Address Family . . . . . 671
Clearing BGP Route Flap Dampening Information for the L2VPN Address
Clearing the Wait for the End-of-RIB Marker for the L2VPN Address
Monitoring BGP-Related Settings for VPWS L2VPNS . . . . . . . . . . . . . . . . . . . . . 672
Monitoring BGP Next Hops for VPWS L2VPNS . . . . . . . . . . . . . . . . . . . . . . . . . . . 677
Monitoring VPWS Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678
Monitoring VPWS Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681
Monitoring L2VPN Interfaces for VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683
Monitoring MPLS Forwarding Table for VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . 685
Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672
Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672
Part 6 Index
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 691
Copyright © 2010, Juniper Networks, Inc.xxiv
List of Figures
Part 1 Border Gateway Protocol
Chapter 1 Configuring BGP Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Figure 1: BGP Peers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 2: Internal and External BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 3: Interior Gateway Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 4: Routing Without CIDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5: Routing with CIDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 6: Transit Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 7: Nontransit Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 8: IPv6 Routing over TCP IPv4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 9: IPv6 Routing over TCP IPv6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 10: Configuring Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 11: BGP Peer Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 12: Using EBGP-Multihop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 13: Prefixes Originating in an AS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 14: Redistributing Routes into BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Figure 15: Advertising a Default Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Figure 16: Setting a Static Default Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Figure 17: Configuring Aggregate Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 18: Advertising a Route When Another Route is Present . . . . . . . . . . . . . . . 66
Figure 19: Advertising a Route When Another Route is Absent . . . . . . . . . . . . . . . 67
Figure 20: Advertising a Default Route When Another Route is Present . . . . . . . . 69
Figure 21: Filtering with Access Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Figure 22: Filtering Routes with an Access List . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Figure 23: Filtering with AS-Path Access Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Figure 24: Assigning a Filter List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Figure 25: Route Map Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Figure 26: Communities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Figure 27: Community Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Figure 28: Configuring Next-Hop Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Figure 29: Next-Hop Behavior for Broadcast Multiaccess Media . . . . . . . . . . . . . 107
Figure 30: Next-Hop Behavior for Nonbroadcast Multiaccess Media . . . . . . . . . 108
Figure 31: Assigning a Weight to a Neighbor Connection . . . . . . . . . . . . . . . . . . . 109
Figure 32: Configuring the Local-Preference Attribute . . . . . . . . . . . . . . . . . . . . . . 113
Figure 33: The Origin Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Figure 34: AS-Path Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Figure 35: Configuring the MED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Figure 36: Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Figure 37: Disabling Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Figure 38: Administrative Distances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
xxvCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Figure 39: Administrative Distance and Synchronization . . . . . . . . . . . . . . . . . . . 136
Figure 40: Backdoor Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Figure 41: A Fully Meshed Autonomous System . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Figure 42: A Confederation of Subautonomous Systems . . . . . . . . . . . . . . . . . . . 143
Figure 43: Simple Route Reflection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Figure 44: Route Reflection: Logical Redundancy . . . . . . . . . . . . . . . . . . . . . . . . . 146
Figure 45: Route Reflection: Physical and Logical Redundancy . . . . . . . . . . . . . . 146
Figure 46: BGP Route Reflection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Part 2 Multiprotocol Layer Switching
Chapter 3 MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Figure 47: Simple MPLS Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Figure 48: Label Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Figure 49: Label Stacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Figure 50: Shim Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Figure 51: TTL Processing on Incoming MPLS Packets . . . . . . . . . . . . . . . . . . . . . 224
Figure 52: TTL Processing on Outgoing MPLS Packets . . . . . . . . . . . . . . . . . . . . 226
Figure 53: LSP Creation, Downstream-on-Demand, Ordered Control . . . . . . . . . 228
Figure 54: LSP Creation, Downstream-Unsolicited, Independent Control . . . . . 229
Figure 55: Explicit Routing in an MPLS Domain . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Figure 56: MPLS Interface Stacking for the Platform Label Space . . . . . . . . . . . 238
Figure 57: MPLS Interface Stacking for the Interface Label Space . . . . . . . . . . . 238
Figure 58: LDP Tunneled Through an RSVP-TE Core . . . . . . . . . . . . . . . . . . . . . . 256
Figure 59: Flow for Initial Setting of EXP Bits for the First Label Pushed . . . . . . . 270
Figure 60: Flow for Setting EXP Bits for All Pushed Labels . . . . . . . . . . . . . . . . . . 271
Figure 61: Simple MPLS Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Chapter 4 Configuring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Figure 62: FEC Aggregation and Equal-Cost Paths . . . . . . . . . . . . . . . . . . . . . . . 289
Figure 63: Bypass Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Figure 64: Differentiated Services over an MPLS Network . . . . . . . . . . . . . . . . . 306
Figure 65: Associations Between PHB ID, EXP Bits, and Traffic
Classes/Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Figure 66: Signaled Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Chapter 5 Monitoring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Figure 67: Sample MPLS L3VPN Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
Chapter 6 Configuring BGP-MPLS Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
Figure 68: ECMP BGP/MPLS VPN Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Figure 69: BGP/MPLS VPN Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Figure 70: BGP/MPLS VPN Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Figure 71: Route and Label Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Figure 72: Standard and Extended BGP Update Messages . . . . . . . . . . . . . . . . . 394
Figure 73: BGP/MPLS VPN Route Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Figure 74: LSP Creation for BGP/MPLS VPN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Figure 75: Traffic Across the MPLS Backbone of a BGP/MPLS VPN . . . . . . . . . . 399
Figure 76: IPv6 VPN Services over IPv4 MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
Figure 77: Inter-AS Topology with VRFs on Each AS Boundary Router . . . . . . . . 404
Copyright © 2010, Juniper Networks, Inc.xxvi
List of Figures
Figure 78: Inter-AS Topology with End-to-End Stacked MPLS Tunnels . . . . . . . 405
Figure 79: Topology for Three-label Stack Configuration for Inter-AS Option
C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
Figure 80: Topology for Inter-AS Option C with Route Reflectors . . . . . . . . . . . . 410
Figure 81: Inter-AS IPv6 VPN Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
Figure 82: Site Connectivity in a Full-Mesh VPN . . . . . . . . . . . . . . . . . . . . . . . . . . 412
Figure 83: Route Target Configuration for a Full-Mesh VPN . . . . . . . . . . . . . . . . . 413
Figure 84: Site Connectivity in a Hub-and-Spoke VPN . . . . . . . . . . . . . . . . . . . . . 413
Figure 85: Route Target Configuration for a Hub-and-Spoke VPN . . . . . . . . . . . . 414
Figure 86: Site Connectivity in an Overlapping VPN . . . . . . . . . . . . . . . . . . . . . . . 414
Figure 87: Route Target Configuration for an Overlapping VPN . . . . . . . . . . . . . . 415
Figure 88: Overlapping VPNs on a Single PE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
Figure 89: Fully Meshed VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
Figure 90: Hub-and-Spoke VPN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
Figure 91: Import and Export Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
Figure 92: Configuring Static Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
Figure 93: BGP/MPLS VPN IBGP Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
Figure 94: BGP/MPLS VPN EIBGP Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
Figure 95: PE-to-CE Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
Figure 96: Network with Potential Routing Loops . . . . . . . . . . . . . . . . . . . . . . . . 452
Figure 97: Preventing Potential Routing Loops in the Network . . . . . . . . . . . . . . 453
Figure 98: Allowing Local AS in VPNv4 Address Family . . . . . . . . . . . . . . . . . . . . 454
Figure 99: Topology for Fast Reconvergence by Means ofUnique VRFRDs, Before
Tunnels Go Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Figure 100: Topology for Fast Reconvergenceby Means of Reachability Checking,
After Tunnels Go Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
Figure 101: Static Default Route for Internet Access . . . . . . . . . . . . . . . . . . . . . . . 466
Figure 102: Fallback Global Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
Figure 103: Global Import Map Applied to Routes Imported from VRF BGP
RIB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468
Figure 104: BGP Session Between CE Router and Parent VR . . . . . . . . . . . . . . . 469
Figure 105: Static Route to Shared IP Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
Figure 106: Global Export Map Applied to Routes Exported from VRF BGP
RIB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472
Figure 107: Carrier-of-Carriers Internet Service . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
Figure 108: Carrier-of-Carriers VPN Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476
Figure 109: Carrier-of-Carrier IPv6 VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
Figure 110: IPv6 Tunneled over MPLS-IPv4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
Figure 111: IPv6 Tunneled Across IPv4 Domains . . . . . . . . . . . . . . . . . . . . . . . . . . 480
Figure 112: OSPF Topology with Backdoor Link . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
Figure 113: OSPF Sham Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
Part 3 Layer 2 Services Over MPLS
Chapter 8 Layer 2 Services over MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513
Figure 114: Layer 2 Services over a Provider’s MPLS Network . . . . . . . . . . . . . . . . 514
Figure 115: Common ISP Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
Figure 116: E Series Router Replacing Remote ATM Switch . . . . . . . . . . . . . . . . . 520
Figure 117: AAL5 Pseudowire and MPLS Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
xxviiCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Figure 118: CE-Side MPLS L2VPN Tunnel over LAG . . . . . . . . . . . . . . . . . . . . . . . 526
Chapter 9 Configuring Layer 2 Services over MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
Figure 119: Local Cross-Connect Between Ethernet/VLAN Interfaces . . . . . . . . . 539
Figure 120: CE-Side Load-Balancing Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
Figure 121: Sample Frame Relay over MPLS Configuration . . . . . . . . . . . . . . . . . 550
Figure 122: MPLS L2VPN Tunnel over VLAN over LAG Configuration Example . . 553
Figure 123: MPLS L2VPN Tunnel over LAG Configuration Example . . . . . . . . . . . 557
Figure 124: MPLS L2VPN Tunnel over LAG Configuration Example . . . . . . . . . . . 561
Figure 125: Ethernet Packet Distribution over Martini Circuits . . . . . . . . . . . . . . . 562
Figure 126: Martini Circuit with Two Pseudowires Between PE-Facing
Routers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564
Figure 127: Martini Circuit Deployment for Transmission of Multiple ATM VCs
over a SIngle Pseudowire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566
Part 4 Virtual Private LAN Service
Chapter 11 VPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
Figure 128: VPLS Sample Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
Chapter 12 Configuring VPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
Figure 129: Topology for VPLS Configuration Example with BGP Signaling . . . . 607
Figure 130: Topology for VPLS Configuration Example with LDP Signaling . . . . . 614
Part 5 Virtual Private Wire Service
Chapter 14 VPWS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
Figure 131: VPWS Sample Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
Figure 132: VPWS Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650
Chapter 15 Configuring VPWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Figure 133: VPWS Cross-Connects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Figure 134: Topology for VPWS Configuration Example . . . . . . . . . . . . . . . . . . . . 667
Copyright © 2010, Juniper Networks, Inc.xxviii
List of Tables
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Table 1: Notice Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiv
Table 2: Text and Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiv
Part 1 Border Gateway Protocol
Chapter 1 Configuring BGP Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Table 3: Conventions for BGP Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Table 4: Cease Notification Message Subcodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 5: Commands Affecting BGP Globally . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 6: Commands Affecting All Address Families in a VRF . . . . . . . . . . . . . . . . . 19
Table 7: Commands Affecting the Current Address Family . . . . . . . . . . . . . . . . . . . 19
Table 8: Commands Affecting All Address Families for the Specified Peer or
Table 9: Commands Affecting Only the Current Address Family for the Specified
Table 10: Behavior of Neighbor Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 11: Inheritance from Other Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 12: Commands That Do Not Override Inherited Outbound Policy . . . . . . . . 25
Table 13: Source Addresses and Default Next Hop Addresses for Various
Table 14: Commands That Create Match-and-Set Route Maps . . . . . . . . . . . . . . 70
Table 15: Clauses Supported in BGP Match-and-Set Route Maps . . . . . . . . . . . . . 71
Table 16: Commands That Create Match-Only Route Maps . . . . . . . . . . . . . . . . . . 71
Table 17: Clauses Not Supported in BGP Route Maps . . . . . . . . . . . . . . . . . . . . . . . 71
Table 18: Set Clauses Supported in Route Maps Applied with the Table-Map
Table 19: Action Based on Well-Known Community Membership . . . . . . . . . . . . 90
Table 20: Origin and AS Path for Routes Viewed on Different Routers . . . . . . . . . 116
Table 21: Default Administrative Distances for Route Sources . . . . . . . . . . . . . . . 134
Chapter 2 Monitoring BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Table 22: show bgp summary Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Table 23: show ip bgp Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Table 24: show ip as-path-access-list Output Fields . . . . . . . . . . . . . . . . . . . . . . 162
Table 25: show ip bgp Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Table 26: show ip bgp advertised-routes Output Fields . . . . . . . . . . . . . . . . . . . . 168
Table 27: show bgp ipv6 aggregate-address Output Fields . . . . . . . . . . . . . . . . . 169
Table 28: show ip bgp cidr-only Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Table 29: show ip bgp community Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . 172
Table 30: show ip bgp community-list Output Fields . . . . . . . . . . . . . . . . . . . . . . 173
Peer Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Peer or Peer Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
xxixCopyright © 2010, Juniper Networks, Inc.
JunosE 11.3.x BGP and MPLS Configuration Guide
Table 31: show ip bgp dampened-paths Output Fields . . . . . . . . . . . . . . . . . . . . . 175
Table 32: show ip bgp filter-list Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Table 33: show ip bgp flap-statistics Output Fields . . . . . . . . . . . . . . . . . . . . . . . 178
Table 34: show ip bgp inconsistent-as Output Fields . . . . . . . . . . . . . . . . . . . . . . 179
Table 35: show ip bgp neighbors Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Table 36: show ip bgp neighbors dampened-routes Output Fields . . . . . . . . . . . 186
Table 37: show ip bgp neighbors paths Output Fields . . . . . . . . . . . . . . . . . . . . . 188
Table 38: show ip bgp neighbors received prefix-filter . . . . . . . . . . . . . . . . . . . . . 188
Table 39: show ip bgp neighbors received-routes Output Fields . . . . . . . . . . . . . 189
Table 40: show bgp ipv6 neighbors routes Output Fields . . . . . . . . . . . . . . . . . . 190
Table 41: show bgp ipv6 network Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Table 42: show ip bgp next-hops Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 193
Table 43: show bgp ipv6 paths Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Table 44: show ip bgp peer-group Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . 195
Table 45: show ip bgp quote-regexp Output Fields . . . . . . . . . . . . . . . . . . . . . . . 198
Table 46: show ip bgp regexp Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Table 47: show bgp ipv6 summary Output Fields . . . . . . . . . . . . . . . . . . . . . . . . 202
Table 48: show ip community-list Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . 205
Part 2 Multiprotocol Layer Switching
Chapter 3 MPLS Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Table 49: Conventions for MPLS Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Table 50: MPLS Terms and Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Table 51: TLVs Supported by MPLS LSP ping . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Table 52: Sub-TLVs Supported for the Target FEC Stack TLV . . . . . . . . . . . . . . . 244
Table 53: Sub-TLVs Supported for the P2MP Responder Identifier TLV . . . . . . . 249
Table 54: Summary of LDP Graceful Restart States . . . . . . . . . . . . . . . . . . . . . . . 257
Chapter 4 Configuring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Table 55: Configuration Tasks by Type of Network . . . . . . . . . . . . . . . . . . . . . . . . 276
Table 56: Incoming L-LSP PHB Determination . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Table 57: Examples of Incoming L-LSP PHB Determination . . . . . . . . . . . . . . . . 309
Table 58: Outgoing L-LSP PHB Determination . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Table 59: Differentiated Services Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Chapter 5 Monitoring MPLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Table 60: show atm vc Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
Table 61: show cac interface Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
Table 62: show ip tunnel route and show ipv6 tunnel-route Output Fields . . . . 330
Table 63: show ldp Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Table 64: show ldp binding and show mpls binding Output Fields . . . . . . . . . . . 333
Table 65: show ldp graceful restart Output Fields . . . . . . . . . . . . . . . . . . . . . . . . 334
Table 66: show ldp igp-sync Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
Table 67: show ldp interface Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
Table 68: show ldp neighbor Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Table 69: show ldp profile Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
Table 70: show ldp statistics Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
Table 71: show ldp targeted session Output Fields . . . . . . . . . . . . . . . . . . . . . . . . 343
Table 72: show mpls Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Copyright © 2010, Juniper Networks, Inc.xxx
Loading...
+ 720 hidden pages