Enviar pesquisa
Carregar
Junos OS Routing Policy Guide
•
0 gostou
•
3,589 visualizações
Título melhorado com IA
Duy Le Tran Duc
Seguir
Tecnologia
Negócios
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 348
Baixar agora
Baixar para ler offline
Recomendados
Cisco vs juniper
Cisco vs juniper
Elshaday Gelaye
Pentest Çalışmalarında Kablosuz Ağ Güvenlik Testleri
Pentest Çalışmalarında Kablosuz Ağ Güvenlik Testleri
BGA Cyber Security
Logical systems-configuration-guide
Logical systems-configuration-guide
Raja Azeem
BGP Techniques for Network Operators
BGP Techniques for Network Operators
APNIC
CCNA RS_ITN - Chapter 5
CCNA RS_ITN - Chapter 5
Irsandi Hasan
Encor chapter 1_packet forwarding
Encor chapter 1_packet forwarding
merhatsidikmelke
Como monitorear asterisk utilizando nrpe de nagios
Como monitorear asterisk utilizando nrpe de nagios
Guillermo Henriquez Gonzalez
Cisco ASR1000 - архитектура, использование в сети предприятия, развитие плат...
Cisco ASR1000 - архитектура, использование в сети предприятия, развитие плат...
Cisco Russia
Recomendados
Cisco vs juniper
Cisco vs juniper
Elshaday Gelaye
Pentest Çalışmalarında Kablosuz Ağ Güvenlik Testleri
Pentest Çalışmalarında Kablosuz Ağ Güvenlik Testleri
BGA Cyber Security
Logical systems-configuration-guide
Logical systems-configuration-guide
Raja Azeem
BGP Techniques for Network Operators
BGP Techniques for Network Operators
APNIC
CCNA RS_ITN - Chapter 5
CCNA RS_ITN - Chapter 5
Irsandi Hasan
Encor chapter 1_packet forwarding
Encor chapter 1_packet forwarding
merhatsidikmelke
Como monitorear asterisk utilizando nrpe de nagios
Como monitorear asterisk utilizando nrpe de nagios
Guillermo Henriquez Gonzalez
Cisco ASR1000 - архитектура, использование в сети предприятия, развитие плат...
Cisco ASR1000 - архитектура, использование в сети предприятия, развитие плат...
Cisco Russia
Dynamic Routing IGRP
Dynamic Routing IGRP
Kishore Kumar
Introducing Cisco Voice and Unified Communications
Introducing Cisco Voice and Unified Communications
Archana Parameshwari
Software defined networking
Software defined networking
Prof. Dr. Noman Islam
VPN
VPN
Kuldeep Padhiyar
Routing basics/CEF
Routing basics/CEF
Dmitry Figol
EPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC Configuration
Mustafa Golam
Network Dersleri1
Network Dersleri1
Abdurrahman ALKAN
MC-LAG Configuration with BGP-base VPLS
MC-LAG Configuration with BGP-base VPLS
Johnson Liu
Cisco Router As A Vpn Server
Cisco Router As A Vpn Server
mmoizuddin
Uygulamalı Ağ Güvenliği Eğitimi Lab Çalışmaları
Uygulamalı Ağ Güvenliği Eğitimi Lab Çalışmaları
BGA Cyber Security
Next generation firewall(ngfw)feature and benefits
Next generation firewall(ngfw)feature and benefits
Anthony Daniel
MENOG-Segment Routing Introduction
MENOG-Segment Routing Introduction
Rasoul Mesghali, CCIE RS
CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 11
Irsandi Hasan
Seamless mpls
Seamless mpls
Sherif Hussein
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
rooree29
Useful cli commands v1
Useful cli commands v1
Aruba, a Hewlett Packard Enterprise company
IP Multimedia Subsystems Overview - My Training on IMS
IP Multimedia Subsystems Overview - My Training on IMS
Inam Khosa
Layer-3 VPN
Layer-3 VPN
rosmida
BGA BANK Web Güvenlik Testleri Uygulama Kitabı V1
BGA BANK Web Güvenlik Testleri Uygulama Kitabı V1
BGA Cyber Security
Access Network Evolution
Access Network Evolution
Cisco Canada
V gw admin_guide_45sp3
V gw admin_guide_45sp3
Vladimir Zmuric
ScreenOS 6.1 Concepts & Examples
ScreenOS 6.1 Concepts & Examples
Altaware, Inc.
Mais conteúdo relacionado
Mais procurados
Dynamic Routing IGRP
Dynamic Routing IGRP
Kishore Kumar
Introducing Cisco Voice and Unified Communications
Introducing Cisco Voice and Unified Communications
Archana Parameshwari
Software defined networking
Software defined networking
Prof. Dr. Noman Islam
VPN
VPN
Kuldeep Padhiyar
Routing basics/CEF
Routing basics/CEF
Dmitry Figol
EPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC Configuration
Mustafa Golam
Network Dersleri1
Network Dersleri1
Abdurrahman ALKAN
MC-LAG Configuration with BGP-base VPLS
MC-LAG Configuration with BGP-base VPLS
Johnson Liu
Cisco Router As A Vpn Server
Cisco Router As A Vpn Server
mmoizuddin
Uygulamalı Ağ Güvenliği Eğitimi Lab Çalışmaları
Uygulamalı Ağ Güvenliği Eğitimi Lab Çalışmaları
BGA Cyber Security
Next generation firewall(ngfw)feature and benefits
Next generation firewall(ngfw)feature and benefits
Anthony Daniel
MENOG-Segment Routing Introduction
MENOG-Segment Routing Introduction
Rasoul Mesghali, CCIE RS
CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 11
Irsandi Hasan
Seamless mpls
Seamless mpls
Sherif Hussein
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
rooree29
Useful cli commands v1
Useful cli commands v1
Aruba, a Hewlett Packard Enterprise company
IP Multimedia Subsystems Overview - My Training on IMS
IP Multimedia Subsystems Overview - My Training on IMS
Inam Khosa
Layer-3 VPN
Layer-3 VPN
rosmida
BGA BANK Web Güvenlik Testleri Uygulama Kitabı V1
BGA BANK Web Güvenlik Testleri Uygulama Kitabı V1
BGA Cyber Security
Access Network Evolution
Access Network Evolution
Cisco Canada
Mais procurados
(20)
Dynamic Routing IGRP
Dynamic Routing IGRP
Introducing Cisco Voice and Unified Communications
Introducing Cisco Voice and Unified Communications
Software defined networking
Software defined networking
VPN
VPN
Routing basics/CEF
Routing basics/CEF
EPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC Configuration
Network Dersleri1
Network Dersleri1
MC-LAG Configuration with BGP-base VPLS
MC-LAG Configuration with BGP-base VPLS
Cisco Router As A Vpn Server
Cisco Router As A Vpn Server
Uygulamalı Ağ Güvenliği Eğitimi Lab Çalışmaları
Uygulamalı Ağ Güvenliği Eğitimi Lab Çalışmaları
Next generation firewall(ngfw)feature and benefits
Next generation firewall(ngfw)feature and benefits
MENOG-Segment Routing Introduction
MENOG-Segment Routing Introduction
CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 11
Seamless mpls
Seamless mpls
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
Useful cli commands v1
Useful cli commands v1
IP Multimedia Subsystems Overview - My Training on IMS
IP Multimedia Subsystems Overview - My Training on IMS
Layer-3 VPN
Layer-3 VPN
BGA BANK Web Güvenlik Testleri Uygulama Kitabı V1
BGA BANK Web Güvenlik Testleri Uygulama Kitabı V1
Access Network Evolution
Access Network Evolution
Semelhante a Junos OS Routing Policy Guide
V gw admin_guide_45sp3
V gw admin_guide_45sp3
Vladimir Zmuric
ScreenOS 6.1 Concepts & Examples
ScreenOS 6.1 Concepts & Examples
Altaware, Inc.
Imperva SecureSphere For AWS Configuration Guide
Imperva SecureSphere For AWS Configuration Guide
SECURE SOFT CORPORATION
Junos pulse-secure-access-service-dmi-solution-guide
Junos pulse-secure-access-service-dmi-solution-guide
scottjohanson
Interface Definition Language (IDL) version 4.2
Interface Definition Language (IDL) version 4.2
Gerardo Pardo-Castellote
08-01-09
08-01-09
twells555
DDS Security Specification (Adopted Beta1 June 2014)
DDS Security Specification (Adopted Beta1 June 2014)
Gerardo Pardo-Castellote
License
License
wandyarwah
License
License
rahmaliani
Flip4 mac userguide
Flip4 mac userguide
Christopher Hodshire
Uml2 super.book.040324
Uml2 super.book.040324
Sidi yazid
Robotic Technology Component (RTC) Specification
Robotic Technology Component (RTC) Specification
Rick Warren
Lbp6030 license uke_00
Lbp6030 license uke_00
Dhruvi Netzone
Phần mềm adobe
Phần mềm adobe
CHINHSEOUL chinhseoul
Platform clients pc_wweula-en_us-20150407_1357(1)
Platform clients pc_wweula-en_us-20150407_1357(1)
young blizzy
Phần mềm adobe
Phần mềm adobe
CHINHSEOUL chinhseoul
License
License
Marie Cris Abella
Flash player 12_0_en (2)
Flash player 12_0_en (2)
Bekerja sendiri
Eula en us
Eula en us
Gamaliel Maya
RPC over DDS Beta 1
RPC over DDS Beta 1
Sumant Tambe
Semelhante a Junos OS Routing Policy Guide
(20)
V gw admin_guide_45sp3
V gw admin_guide_45sp3
ScreenOS 6.1 Concepts & Examples
ScreenOS 6.1 Concepts & Examples
Imperva SecureSphere For AWS Configuration Guide
Imperva SecureSphere For AWS Configuration Guide
Junos pulse-secure-access-service-dmi-solution-guide
Junos pulse-secure-access-service-dmi-solution-guide
Interface Definition Language (IDL) version 4.2
Interface Definition Language (IDL) version 4.2
08-01-09
08-01-09
DDS Security Specification (Adopted Beta1 June 2014)
DDS Security Specification (Adopted Beta1 June 2014)
License
License
License
License
Flip4 mac userguide
Flip4 mac userguide
Uml2 super.book.040324
Uml2 super.book.040324
Robotic Technology Component (RTC) Specification
Robotic Technology Component (RTC) Specification
Lbp6030 license uke_00
Lbp6030 license uke_00
Phần mềm adobe
Phần mềm adobe
Platform clients pc_wweula-en_us-20150407_1357(1)
Platform clients pc_wweula-en_us-20150407_1357(1)
Phần mềm adobe
Phần mềm adobe
License
License
Flash player 12_0_en (2)
Flash player 12_0_en (2)
Eula en us
Eula en us
RPC over DDS Beta 1
RPC over DDS Beta 1
Último
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Antenna Manufacturer Coco
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Último
(20)
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Junos OS Routing Policy Guide
1.
Junos® OS Routing Policy
Configuration Guide Release 11.2 Published: 2011-05-07 Copyright © 2011, Juniper Networks, Inc.
2.
Juniper Networks, Inc. 1194
North Mathilda Avenue Sunnyvale, California 94089 USA 408-745-2000 www.juniper.net This product includes the Envoy SNMP Engine, developed by Epilogue Technology, an Integrated Systems Company. Copyright © 1986-1997, Epilogue Technology Corporation. All rights reserved. This program and its documentation were developed at private expense, and no part of them is in the public domain. This product includes memory allocation software developed by Mark Moraes, copyright © 1988, 1989, 1993, University of Toronto. This product includes FreeBSD software developed by the University of California, Berkeley, and its contributors. All of the documentation and software included in the 4.4BSD and 4.4BSD-Lite Releases is copyrighted by the Regents of the University of California. Copyright © 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994. The Regents of the University of California. All rights reserved. GateD software copyright © 1995, the Regents of the University. All rights reserved. Gate Daemon was originated and developed through release 3.0 by Cornell University and its collaborators. Gated is based on Kirton’s EGP, UC Berkeley’s routing daemon (routed), and DCN’s HELLO routing protocol. Development of Gated has been supported in part by the National Science Foundation. Portions of the GateD software copyright © 1988, Regents of the University of California. All rights reserved. Portions of the GateD software copyright © 1991, D. L. S. Associates. This product includes software developed by Maker Communications, Inc., copyright © 1996, 1997, Maker Communications, Inc. Juniper Networks, Junos, Steel-Belted Radius, NetScreen, and ScreenOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. The Juniper Networks Logo, the Junos logo, and JunosE are trademarks of Juniper Networks, Inc. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners. Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the right to change, modify, transfer, or otherwise revise this publication without notice. Products made or sold by Juniper Networks or components thereof might be covered by one or more of the following patents that are owned by or licensed to Juniper Networks: U.S. Patent Nos. 5,473,599, 5,905,725, 5,909,440, 6,192,051, 6,333,650, 6,359,479, 6,406,312, 6,429,706, 6,459,579, 6,493,347, 6,538,518, 6,538,899, 6,552,918, 6,567,902, 6,578,186, and 6,590,785. ® Junos OS Routing Policy Configuration Guide Release 11.2 Copyright © 2011, Juniper Networks, Inc. All rights reserved. Revision History April 2011—R1 Junos OS 11.2 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. ii Copyright © 2011, Juniper Networks, Inc.
3.
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 THIS AGREEMENT. IF YOU DO NOT OR CANNOT AGREE TO THE TERMS CONTAINED 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 principal office is located outside the Americas) (such applicable entity being referred to herein as “Juniper”), and (ii) the person or organization that originally purchased from Juniper or 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 applicable fees and the limitations and restrictions set forth herein, Juniper grants to 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 limits to Customer’s use of the Software. Such limits may restrict use to a maximum number of seats, registered endpoints, 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 any form, to any third party; (d) remove any proprietary notices, labels, or marks on or in any copy of the Software or any product 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 the secondhand market; (f) use any ‘locked’ or key-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 Copyright © 2011, Juniper Networks, Inc. iii
4.
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 commercial efforts to maintain the Software and associated documentation in confidence, which at a minimum includes restricting access to the Software to Customer employees and contractors having a 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 statement that accompanies the Software (the “Warranty Statement”). Nothing in this Agreement shall give rise to any obligation to support 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 OR PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, THE SOFTWARE, OR ANY JUNIPER OR JUNIPER-SUPPLIED SOFTWARE. IN NO EVENT 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. iv Copyright © 2011, Juniper Networks, Inc.
5.
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 embedded in 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 shall have the right to enforce this Agreement in its own name as 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)). Copyright © 2011, Juniper Networks, Inc. v
6.
vi
Copyright © 2011, Juniper Networks, Inc.
7.
Abbreviated Table of
Contents About This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Part 1 Policy Framework Chapter 1 Introduction to Policy Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Part 2 Routing Policies Chapter 2 Introduction to Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Chapter 3 Routing Policy Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Chapter 4 Routing Policy Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Chapter 5 Extended Match Conditions Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Chapter 6 Extended Actions Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Chapter 7 Summary of Routing Policy Configuration Statements . . . . . . . . . . . . . . . . 169 Part 3 Traffic Sampling, Forwarding and Monitoring Chapter 8 Introduction to Traffic Sampling, Forwarding, and Monitoring Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Chapter 9 Introduction to Traffic Sampling Configuration . . . . . . . . . . . . . . . . . . . . . . 189 Chapter 10 Traffic Forwarding and Monitoring Configuration . . . . . . . . . . . . . . . . . . . . 203 Chapter 11 Summary of Traffic Sampling, Forwarding, and Monitoring Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 Part 4 Indexes Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 Index of Statements and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 Copyright © 2011, Juniper Networks, Inc. vii
8.
Junos OS 11.2
Routing Policy Configuration Guide viii Copyright © 2011, Juniper Networks, Inc.
9.
Table of Contents
About This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Junos OS Documentation and Release Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv Supported Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv Using the Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Using the Examples in This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Merging a Full Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Merging a Snippet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi Documentation Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxviii Requesting Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxviii Self-Help Online Tools and Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix Opening a Case with JTAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix Part 1 Policy Framework Chapter 1 Introduction to Policy Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Policy Framework Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Router Flows Affected by Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Policy Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Control Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Policy Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Default Policies and Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Policy Configuration Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Comparison of Routing Policies and Firewall Filters . . . . . . . . . . . . . . . . . . . . . . . . . 9 Part 2 Routing Policies Chapter 2 Introduction to Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Routing Policy Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Importing and Exporting Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Protocols That Can Be Imported to and Exported from the Routing Table . . . . . . 18 Routing Tables Affected by Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Default Routing Policies and Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Default Import and Export Policies for Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Creating Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Configuring a Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Routing Policy Named Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Copyright © 2011, Juniper Networks, Inc. ix
10.
Junos OS 11.2
Routing Policy Configuration Guide Routing Policy Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Routing Policy Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Applying a Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Routing Protocol Support for Import and Export Policies . . . . . . . . . . . . . . . . . . . . 27 Protocol Support for Import and Export Policies . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Applying a Routing Policy to Routing Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Applying Export Policies to the Forwarding Table . . . . . . . . . . . . . . . . . . . . . . . . . 29 Evaluating a Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 How a Routing Policy Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 How a Routing Policy Chain Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 How a Routing Policy Expression Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 How a Routing Policy Subroutine Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Routing Policy Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Chapter 3 Routing Policy Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Configuring a Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Minimum Routing Policy Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Minimum Routing Policy Chain Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Minimum Subroutine Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Chapter 4 Routing Policy Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Defining Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Configuring Match Conditions in Routing Policy Terms . . . . . . . . . . . . . . . . . . . . . . 41 Configuring Actions in Routing Policy Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Configuring Flow Control Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Configuring Actions That Manipulate Route Characteristics . . . . . . . . . . . . . 50 Configuring the Default Action in Routing Policies . . . . . . . . . . . . . . . . . . . . . 55 Example: Configuring the Default Action in a Routing Policy . . . . . . . . . . 55 Configuring a Final Action in Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . 56 Logging Matches to a Routing Policy Term . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Configuring Separate Actions for Routes in Route Lists . . . . . . . . . . . . . . . . . 57 Applying Routing Policies and Policy Chains to Routing Protocols . . . . . . . . . . . . 57 Effect of Omitting Ingress Match Conditions from Export Policies . . . . . . . . . 58 Applying Policy Expressions to Routes Exported from Routing Tables . . . . . . . . . 59 Policy Expression Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 How a Policy Expression Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Example: Evaluating Policy Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Applying Routing Policies to the Forwarding Table . . . . . . . . . . . . . . . . . . . . . . . . 64 Configuring Dynamic Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Configuring Routing Policies and Policy Objects in the Dynamic Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Configuring Routing Policies Based on Dynamic Database Configuration . . . 66 Applying Dynamic Routing Policies to BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Preventing Reestablishment of BGP Peering Sessions After NSR Routing Engine Switchover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Example: Configuring a BGP Export Policy That References a Dynamic Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Forwarding Packets to the Discard Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 x Copyright © 2011, Juniper Networks, Inc.
11.
Table of Contents
Testing Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Example: Testing a Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Routing Policy Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Example: Defining a Routing Policy from BGP to IS-IS . . . . . . . . . . . . . . . . . . . . . . 73 Example: Using Routing Policy to Set a Preference . . . . . . . . . . . . . . . . . . . . . . . . 73 Example: Importing and Exporting Access and Access-Internal Routes in a Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Example: Exporting Routes to IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Example: Applying Export and Import Policies to BGP Peer Groups . . . . . . . . . . . 75 Example: Defining a Routing Policy Based on the Number of BGP Communities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Example: Applying a Prefix to Routes Learned from a Peer . . . . . . . . . . . . . . . . . . 76 Example: Redistributing BGP Routes with a Specific Community Tag into IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Example: Redistributing OSPF Routes into BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Example: Exporting Direct Routes Into IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Example: Exporting Internal IS-IS Level 1 Routes to Level 2 . . . . . . . . . . . . . . . . . . 77 Example: Exporting IS-IS Level 2 Routes to Level 1 . . . . . . . . . . . . . . . . . . . . . . . . . 78 Example: Assigning Different Forwarding Next-Hop LSPs to Different Destination Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Example: Grouping Destination Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Example: Grouping Source Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Example: Grouping Source and Destination Prefixes in a Forwarding Class . . . . . 81 Example: Accepting Routes with Specific Destination Prefixes . . . . . . . . . . . . . . . 82 Example: Accepting Routes from BGP with a Specific Destination Prefix . . . . . . . 82 Example: Using Routing Policy in an ISP Network . . . . . . . . . . . . . . . . . . . . . . . . . 83 Requesting a Single Default Route on the Customer 1 Router . . . . . . . . . . . . 84 Requesting Specific Routes on the Customer 2 Router . . . . . . . . . . . . . . . . . 85 Configuring a Peer Policy on ISP Router 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Configuring Private and Exchange Peers on ISP Router 1 and 2 . . . . . . . . . . . 89 Configuring Locally Defined Static Routes on the Exchange Peer 2 Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Configuring Outbound and Generated Routes on the Private Peer 2 Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Chapter 5 Extended Match Conditions Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Configuring AS Path Regular Expressions to Use as Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Configuring AS Path Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Configuring a Null AS Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 How AS Path Regular Expressions Are Evaluated . . . . . . . . . . . . . . . . . . . . . . 101 Copyright © 2011, Juniper Networks, Inc. xi
12.
Junos OS 11.2
Routing Policy Configuration Guide Examples: Configuring AS Path Regular Expressions . . . . . . . . . . . . . . . . . . . 101 Overview of BGP Communities and Extended Communities as Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 Defining BGP Communities and Extended Communities for Use in Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Defining BGP Communities for Use in Routing Policy Match Conditions . . . 104 Using UNIX Regular Expressions in Community Names . . . . . . . . . . . . . 105 Defining BGP Extended Communities for Use in Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Examples: Defining BGP Extended Communities . . . . . . . . . . . . . . . . . 109 Inverting Community Matches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Including BGP Communities and Extended Communities in Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 How BGP Communities and Extended Communities Are Evaluated in Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Using Routing Policies to Prevent Advertisement of BGP Communities to Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Examples: Configuring BGP Communities as Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Configuring Prefix Lists for Use in Routing Policy Match Conditions . . . . . . . . . . . 116 Configuring Prefix Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 How Prefix Lists Are Evaluated in Routing Policy Match Conditions . . . . . . . 118 Configuring Prefix List Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Example: Configuring a Prefix List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Configuring Route Lists for Use in Routing Policy Match Conditions . . . . . . . . . . . 119 Configuring Route Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 How Route Lists Are Evaluated in Routing Policy Match Conditions . . . . . . . 124 How an Address Mask Match Type Is Evaluated . . . . . . . . . . . . . . . . . . . 125 How Prefix Order Affects Route List Evaluation . . . . . . . . . . . . . . . . . . . 126 Common Configuration Problem with the Longest-Match Lookup . . . . 126 Route List Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Example: Rejecting Routes with Specific Destination Prefixes and Mask Lengths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 Example: Rejecting Routes with a Mask Length Greater than Eight . . . . 127 Example: Rejecting Routes with Mask Length Between 26 and 29 . . . . 128 Example: Rejecting Routes from Specific Hosts . . . . . . . . . . . . . . . . . . . 128 Example: Accepting Routes with a Defined Set of Prefixes . . . . . . . . . . 128 Example: Rejecting Routes with a Defined Set of Prefixes . . . . . . . . . . . 129 Example: Rejecting Routes with Prefixes Longer than 24 Bits . . . . . . . . 129 Example: Rejecting PIM Multicast Traffic Joins . . . . . . . . . . . . . . . . . . . . 130 Example: Rejecting PIM Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Example: Accepting Incoming IPv4 Routes by Applying an Address Mask to the Route Address and the Destination Match Prefix . . . . . . . . . . 131 Example: Accepting Incoming IPv4 Routes with Similar Patterns But Different Prefix Lengths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 Example: Evaluation of an Address Mask Match Type with Longest-Match Lookup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 xii Copyright © 2011, Juniper Networks, Inc.
13.
Table of Contents
Configuring Subroutines in Routing Policy Match Conditions . . . . . . . . . . . . . . . . 134 Configuring Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Possible Consequences of Termination Actions in Subroutines . . . . . . . 135 Example: Configuring a Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Configuring Routing Policy Match Conditions Based on Routing Table Entries . . 138 Chapter 6 Extended Actions Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Prepending AS Numbers to BGP AS Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Adding AS Numbers to BGP AS Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Using Routing Policies to Damp BGP Route Flapping . . . . . . . . . . . . . . . . . . . . . . 141 Configuring BGP Flap Damping Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Specifying BGP Flap Damping as the Action in Routing Policy Terms . . . . . 144 Disabling Damping for Specific Address Prefixes . . . . . . . . . . . . . . . . . . . . . . 144 Example: Disabling Damping for a Specific Address Prefix . . . . . . . . . . 144 Example: Configuring BGP Flap Damping . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 Overview of Per-Packet Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Configuring Per-Packet Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Per-Packet Load Balancing Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 Configuring Load Balancing Based on MPLS Labels . . . . . . . . . . . . . . . . . . . . . . . 149 Configuring Load Balancing for Ethernet Pseudowires . . . . . . . . . . . . . . . . . . . . . 152 Configuring Load Balancing Based on MAC Addresses . . . . . . . . . . . . . . . . . . . . . 153 Configuring VPLS Load Balancing Based on IP and MPLS Information . . . . . . . . 153 Configuring VPLS Load Balancing on MX Series 3D Universal Edge Routers . . . . 155 Example: Configuring Multicast Load Balancing over Aggregated Ethernet Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Chapter 7 Summary of Routing Policy Configuration Statements . . . . . . . . . . . . . . . . 169 apply-path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 as-path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 as-path-group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 damping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 dynamic-db . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 policy-options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 policy-statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 prefix-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 prefix-list-filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Part 3 Traffic Sampling, Forwarding and Monitoring Chapter 8 Introduction to Traffic Sampling, Forwarding, and Monitoring Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Traffic Sampling, Forwarding, and Monitoring Overview . . . . . . . . . . . . . . . . . . . . 187 Copyright © 2011, Juniper Networks, Inc. xiii
14.
Junos OS 11.2
Routing Policy Configuration Guide Chapter 9 Introduction to Traffic Sampling Configuration . . . . . . . . . . . . . . . . . . . . . . 189 Traffic Sampling Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Minimum Traffic Sampling Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Configuring Traffic Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Disabling Traffic Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Configuring the Output File for Traffic Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Traffic Sampling Output Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 Tracing Traffic-Sampling Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 Configuring Flow Aggregation (cflowd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 Debugging cflowd Flow Aggregation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Configuring Active Flow Monitoring Using Version 9 . . . . . . . . . . . . . . . . . . . . . . . 198 Example: Configuring Active Flow Monitoring Using Version 9 . . . . . . . . . . . 199 Traffic Sampling Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Example: Sampling a Single SONET/SDH Interface . . . . . . . . . . . . . . . . . . . . . . . 199 Example: Sampling All Traffic from a Single IP Address . . . . . . . . . . . . . . . . . . . 200 Example: Sampling All FTP Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Chapter 10 Traffic Forwarding and Monitoring Configuration . . . . . . . . . . . . . . . . . . . . 203 Configuring Traffic Forwarding and Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Configuring Forwarding Table Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 Overview of Forwarding Table Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 Configuring a Forwarding Table Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 Applying Filters to Forwarding Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 Configuring IPv6 Accounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Configuring Discard Accounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Configuring Flow Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Configuring Load-Balance Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Configuring Next-Hop Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 Per-Flow and Per-Prefix Load Balancing Overview . . . . . . . . . . . . . . . . . . . . . . . . 214 Configuring Per-Prefix Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 Configuring Per-Flow Load Balancing Based on Hash Values . . . . . . . . . . . . . . . 216 Configuring Routers, Switches, and Interfaces as DHCP and BOOTP Relay Agents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 Configuring DNS and TFTP Packet Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 Tracing BOOTP, DNS, and TFTP Forwarding Operations . . . . . . . . . . . . . . . . 219 Configuring the Log Filename . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Configuring the Number and Size of Log Files . . . . . . . . . . . . . . . . . . . . 220 Configuring Access to the Log File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 Configuring a Regular Expression for Lines to Be Logged . . . . . . . . . . . . 221 Example: Configuring DNS Packet Forwarding . . . . . . . . . . . . . . . . . . . . . . . . 221 Preventing DHCP Spoofing on MX Series 3D Universal Edge Routers . . . . . . . . . 221 Configuring Port Mirroring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Configuration Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Configuring Port Mirroring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 Configuring the Port-Mirroring Address Family and Interface . . . . . . . . 225 Configuring Multiple Port-Mirroring Instances . . . . . . . . . . . . . . . . . . . . . . . . 225 Configuring Port-Mirroring Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 Associating a Port-Mirroring Instance on M320 Routers . . . . . . . . . . . . 226 Associating a Port-Mirroring Instance on M120 Routers . . . . . . . . . . . . 226 xiv Copyright © 2011, Juniper Networks, Inc.
15.
Table of Contents
Configuring MX Series 3D Universal Edge Routers and M120 Routers to Mirror Traffic Only Once . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 Configuring Packet Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 Chapter 11 Summary of Traffic Sampling, Forwarding, and Monitoring Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 accounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 aggregation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 autonomous-system-type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 bootp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 cflowd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 cflowd (Discard Accounting) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 cflowd (Flow Monitoring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 client-response-ttl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 dhcp-relay (DHCP Spoofing Prevention) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 export-format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 family (Filtering) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 family (Monitoring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 family (Port Mirroring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 family (Sampling) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 family inet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 family mpls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 family multiservice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 file (Extended DHCP Relay Agent and Helpers Trace Options) . . . . . . . . . . 250 file (Packet Capture) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 file (Sampling) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 file (Trace Options) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 filename . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 filename (Packet Capture) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 filename (Sampling) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 files (Packet Capture) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 files (Sampling and Traceoptions) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 filter (IPv4, IPv6, and MPLS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 filter (VPLS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 flood . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 flow-active-timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 flow-export-destination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 flow-inactive-timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 flow-server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258 forwarding-options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259 group (DHCP Spoofing Prevention) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259 hash-key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 Copyright © 2011, Juniper Networks, Inc. xv
16.
Junos OS 11.2
Routing Policy Configuration Guide helpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 indexed-next-hop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 input (Forwarding Table) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 input (Port Mirroring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 input (Sampling) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 interface (Accounting or Sampling) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 interface (BOOTP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 interface (DHCP Spoofing Prevention) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 interface (DNS and TFTP Packet Forwarding or Relay Agent) . . . . . . . . . . . 270 interface (Monitoring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271 interface (Next-Hop Group) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 interface (Port Mirroring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 load-balance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 load-balance-group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 local-dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 max-packets-per-second . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 maximum-capture-size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 maximum-hop-count . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 maximum-packet-length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 minimum-wait-time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 mirror-once . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 next-hop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 next-hop-group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 no-filter-check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 no-listen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 no-local-dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 no-stamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 no-world-readable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283 output (Accounting) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283 output (Forwarding Table) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 output (Monitoring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 output (Port Mirroring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 output (Sampling) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 packet-capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 per-flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 per-prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 port-mirroring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 relay-agent-option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 route-accounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 run-length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 xvi Copyright © 2011, Juniper Networks, Inc.
17.
Table of Contents
server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 server (DHCP and BOOTP Relay Agent) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 server (DNS and TFTP Service) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 size (Packet Capture) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 size (Sampling and Traceoptions) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 stamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 tftp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 traceoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 traceoptions (DNS and TFTP Packet Forwarding) . . . . . . . . . . . . . . . . . . . . 303 traceoptions (Port Mirroring and Traffic Sampling) . . . . . . . . . . . . . . . . . . . 305 version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 version9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 world-readable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 Part 4 Indexes Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 Index of Statements and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 Copyright © 2011, Juniper Networks, Inc. xvii
18.
Junos OS 11.2
Routing Policy Configuration Guide xviii Copyright © 2011, Juniper Networks, Inc.
19.
List of Figures
Part 1 Policy Framework Chapter 1 Introduction to Policy Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Figure 1: Flows of Routing Information and Packets . . . . . . . . . . . . . . . . . . . . . . . . . 4 Figure 2: Routing Policies to Control Routing Information Flow . . . . . . . . . . . . . . . . 5 Figure 3: Firewall Filters to Control Packet Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Figure 4: Policy Control Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Part 2 Routing Policies Chapter 2 Introduction to Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 5: Importing and Exporting Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Figure 6: Importing and Exporting Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . 23 Figure 7: Routing Policy Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Figure 8: Routing Policy Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Figure 9: Routing Policy Chain Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Figure 10: Routing Policy Subroutine Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Chapter 4 Routing Policy Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Figure 11: ISP Network Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Chapter 6 Extended Actions Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Figure 12: Multicast Load Balancing over Aggregated Ethernet Links . . . . . . . . . . 157 Part 3 Traffic Sampling, Forwarding and Monitoring Chapter 9 Introduction to Traffic Sampling Configuration . . . . . . . . . . . . . . . . . . . . . . 189 Figure 13: Configure Sampling Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 Copyright © 2011, Juniper Networks, Inc. xix
20.
Junos OS 11.2
Routing Policy Configuration Guide xx Copyright © 2011, Juniper Networks, Inc.
21.
List of Tables
About This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Table 1: Notice Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii Table 2: Text and Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii Part 1 Policy Framework Chapter 1 Introduction to Policy Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Table 3: Purpose of Routing Policies and Firewall Filters . . . . . . . . . . . . . . . . . . . . . 9 Table 4: Implementation Differences Between Routing Policies and Firewall Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Part 2 Routing Policies Chapter 2 Introduction to Routing Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Table 5: Protocols That Can Be Imported to and Exported from the Routing Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Table 6: Routing Tables Affected by Routing Policies . . . . . . . . . . . . . . . . . . . . . . . 19 Table 7: Default Import and Export Policies for Protocols . . . . . . . . . . . . . . . . . . . . 21 Table 8: Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Table 9: Protocol Support for Import and Export Policies . . . . . . . . . . . . . . . . . . . 28 Chapter 4 Routing Policy Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Table 10: Routing Policy Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Table 11: Flow Control Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Table 12: Actions That Manipulate Route Characteristics . . . . . . . . . . . . . . . . . . . 50 Table 13: Policy Action Conversion Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Table 14: Policy Expression Logical Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Chapter 5 Extended Match Conditions Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Table 15: AS Path Regular Expression Operators . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Table 16: Examples of AS Path Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . 98 Table 17: Community Attribute Regular Expression Operators . . . . . . . . . . . . . . . 106 Table 18: Examples of Community Attribute Regular Expressions . . . . . . . . . . . . 107 Table 19: Prefix List and Route List Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Table 20: Route List Match Types for a Prefix List Filter . . . . . . . . . . . . . . . . . . . . . 118 Table 21: Route List Match Types for a Prefix List . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Table 22: Match Type Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Chapter 6 Extended Actions Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Table 23: Damping Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Copyright © 2011, Juniper Networks, Inc. xxi
22.
Junos OS 11.2
Routing Policy Configuration Guide xxii Copyright © 2011, Juniper Networks, Inc.
23.
About This Guide
® This preface provides the following guidelines for using the Junos OS Routing Policy Configuration Guide: • Junos OS Documentation and Release Notes on page xxiii • Objectives on page xxiv • Audience on page xxiv • Supported Platforms on page xxiv • Using the Indexes on page xxv • Using the Examples in This Manual on page xxv • Documentation Conventions on page xxvi • Documentation Feedback on page xxviii • Requesting Technical Support on page xxviii Junos OS Documentation and Release Notes For a list of related Junos OS documentation, see http://www.juniper.net/techpubs/software/junos/ . If the information in the latest release notes differs from the information in the documentation, follow the Junos OS Release Notes. ® To obtain the most current version of all Juniper Networks technical documentation, see the product documentation page on the Juniper Networks website at http://www.juniper.net/techpubs/ . Juniper Networks supports a technical book program to publish books by Juniper Networks engineers and subject matter experts with book publishers around the world. These books go beyond the technical documentation to explore the nuances of network architecture, deployment, and administration using the Junos operating system (Junos OS) and Juniper Networks devices. In addition, the Juniper Networks Technical Library, published in conjunction with O'Reilly Media, explores improving network security, reliability, and availability using Junos OS configuration techniques. All the books are for sale at technical bookstores and book outlets around the world. The current list can be viewed at http://www.juniper.net/books . Copyright © 2011, Juniper Networks, Inc. xxiii
24.
Junos OS 11.2
Routing Policy Configuration Guide Objectives This guide provides an overview of routing policies for the Junos OS and describes how to configure routing policies on the router. NOTE: For additional information about the Junos OS—either corrections to or information that might have been omitted from this guide—see the software release notes at http://www.juniper.net/ . Audience This guide is designed for network administrators who are configuring and monitoring a Juniper Networks M Series, MX Series, T Series, EX Series, or J Series router or switch. To use this guide, you need a broad understanding of networks in general, the Internet in particular, networking principles, and network configuration. You must also be familiar with one or more of the following Internet routing protocols: • Border Gateway Protocol (BGP) • Distance Vector Multicast Routing Protocol (DVMRP) • Intermediate System-to-Intermediate System (IS-IS) • Internet Control Message Protocol (ICMP) router discovery • Internet Group Management Protocol (IGMP) • Multiprotocol Label Switching (MPLS) • Open Shortest Path First (OSPF) • Protocol-Independent Multicast (PIM) • Resource Reservation Protocol (RSVP) • Routing Information Protocol (RIP) • Simple Network Management Protocol (SNMP) Personnel operating the equipment must be trained and competent; must not conduct themselves in a careless, willfully negligent, or hostile manner; and must abide by the instructions provided by the documentation. Supported Platforms For the features described in this manual, the Junos OS currently supports the following platforms: • J Series • M Series xxiv Copyright © 2011, Juniper Networks, Inc.
25.
About This Guide
• MX Series • T Series • EX Series Using the Indexes This reference contains two indexes: a complete index that includes topic entries, and an index of statements and commands only. In the index of statements and commands, an entry refers to a statement summary section only. In the complete index, the entry for a configuration statement or command contains at least two parts: • The primary entry refers to the statement summary section. • The secondary entry, usage guidelines, refers to the section in a configuration guidelines chapter that describes how to use the statement or command. Using the Examples in This Manual If you want to use the examples in this manual, you can use the load merge or the load merge relative command. These commands cause the software to merge the incoming configuration into the current candidate configuration. If the example configuration contains the top level of the hierarchy (or multiple hierarchies), the example is a full example. In this case, use the load merge command. If the example configuration does not start at the top level of the hierarchy, the example is a snippet. In this case, use the load merge relative command. These procedures are described in the following sections. Merging a Full Example To merge a full example, follow these steps: 1. From the HTML or PDF version of the manual, copy a configuration example into a text file, save the file with a name, and copy the file to a directory on your routing platform. For example, copy the following configuration to a file and name the file ex-script.conf. Copy the ex-script.conf file to the /var/tmp directory on your routing platform. system { scripts { commit { file ex-script.xsl; } } } interfaces { fxp0 { disable; unit 0 { Copyright © 2011, Juniper Networks, Inc. xxv
26.
Junos OS 11.2
Routing Policy Configuration Guide family inet { address 10.0.0.1/24; } } } } 2. Merge the contents of the file into your routing platform configuration by issuing the load merge configuration mode command: [edit] user@host# load merge /var/tmp/ex-script.conf load complete Merging a Snippet To merge a snippet, follow these steps: 1. From the HTML or PDF version of the manual, copy a configuration snippet into a text file, save the file with a name, and copy the file to a directory on your routing platform. For example, copy the following snippet to a file and name the file ex-script-snippet.conf. Copy the ex-script-snippet.conf file to the /var/tmp directory on your routing platform. commit { file ex-script-snippet.xsl; } 2. Move to the hierarchy level that is relevant for this snippet by issuing the following configuration mode command: [edit] user@host# edit system scripts [edit system scripts] 3. Merge the contents of the file into your routing platform configuration by issuing the load merge relative configuration mode command: [edit system scripts] user@host# load merge relative /var/tmp/ex-script-snippet.conf load complete For more information about the load command, see the Junos OS CLI User Guide. Documentation Conventions Table 1 on page xxvii defines notice icons used in this guide. xxvi Copyright © 2011, Juniper Networks, Inc.
Baixar agora