Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Routing Policy Configuration Guide

    This guide provides an overview of both the routing policy concepts and routing policy framework for devices running Junos OS. A routing policy is a mechanism in Junos OS that allows you to modify the routing policy framework to suit your needs. The routing policy framework is a collection of Junos OS policies that allows you to control flows of routing information and packets. This page contains information about configuring routing policies.

       

    Junos OS Documentation, Release 12.3

    Introduction to Extended Actions Configuration

    Overview of Per-Packet Load Balancing

    Introduction to Traffic Sampling, Forwarding, and Monitoring Overview

    Traffic Sampling, Forwarding, and Monitoring Overview

    Introduction to Traffic Forwarding and Monitoring Configuration

    Per-Flow and Per-Prefix Load Balancing Overview

    Routing Policy Configuration

    Defining Routing Policies

    Configuring Match Conditions in Routing Policy Terms

    Configuring Actions in Routing Policy Terms

    Applying Routing Policies and Policy Chains to Routing Protocols

    Applying Policy Expressions to Routes Exported from Routing Tables

    Applying Routing Policies to the Forwarding Table

    Configuring Dynamic Routing Policies

    Forwarding Packets to the Discard Interface

    Testing Routing Policies

    Example: Creating a Routing Policy

    Routing Policy Examples

    Example: Creating a Routing Policy Term

    Example: Rejecting Known Invalid Routes

    Examples: Configuring Static Routes

    Example: Defining a Routing Policy from BGP to IS-IS

    Example: Using Routing Policy to Set a Preference

    Example: Importing and Exporting Access and Access-Internal Routes in a Routing Policy

    Example: Exporting Routes to IS-IS

    Example: Applying Export and Import Policies to BGP Peer Groups

    Example: Defining a Routing Policy Based on the Number of BGP Communities

    Example: Applying a Prefix to Routes Learned from a Peer

    Example: Redistributing BGP Routes with a Specific Community Tag into IS-IS

    Example: Redistributing OSPF Routes into BGP

    Example: Exporting Direct Routes Into IS-IS

    Example: Exporting Internal IS-IS Level 1 Routes to Level 2

    Example: Exporting IS-IS Level 2 Routes to Level 1

    Example: Assigning Different Forwarding Next-Hop LSPs to Different Destination Prefixes

    Example: Grouping Destination Prefixes

    Example: Grouping Source Prefixes

    Example: Grouping Source and Destination Prefixes into a Forwarding Class

    Example: Accepting Routes with Specific Destination Prefixes

    Example: Accepting Routes from BGP with a Specific Destination Prefix

    Example: Using Routing Policy in an ISP Network

    Example: Overriding the Default BGP Routing Policy on Packet Transport Switches

    Understanding ECMP Flow-Based Forwarding

    Example: Configuring ECMP Flow-Based Forwarding

    Summary of Traffic Sampling, Forwarding, and Monitoring Configuration Statements

    accounting

    aggregation

    autonomous-system-type

    bootp

    cflowd (Discard Accounting)

    cflowd (Flow Monitoring)

    client-response-ttl

    description

    dhcp-relay (DHCP Spoofing Prevention)

    disable

    domain

    export-format

    enhanced-hash-key

    family (Filtering)

    family (Monitoring)

    family (Port Mirroring)

    family (Sampling)

    family inet

    family mpls

    family multiservice

    file (Extended DHCP Relay Agent and Helpers Trace Options)

    file (Packet Capture)

    file (Sampling)

    file (Trace Options)

    filename (Packet Capture)

    filename (Sampling)

    files (Packet Capture)

    files (Sampling and Traceoptions)

    filter (IPv4, IPv6, and MPLS)

    filter (VPLS)

    flood

    flow-active-timeout

    flow-export-destination

    flow-inactive-timeout

    flow-server

    forwarding-options

    group (DHCP Spoofing Prevention)

    hash-key

    helpers

    indexed-load-balance

    input (Forwarding Table)

    input (Port Mirroring)

    input (Sampling)

    instance

    interface (Accounting or Sampling)

    interface (BOOTP)

    interface (DHCP Spoofing Prevention)

    interface (DNS and TFTP Packet Forwarding or Relay Agent)

    interface (Monitoring)

    interface (Next-Hop Group)

    interface (Port Mirroring)

    load-balance

    load-balance-group

    local-dump

    max-packets-per-second

    maximum-capture-size

    maximum-hop-count

    maximum-packet-length

    minimum-wait-time

    mirror-once

    monitoring

    next-hop

    next-hop-group

    no-filter-check

    no-listen

    output (Accounting)

    output (Forwarding Table)

    output (Monitoring)

    output (Port Mirroring)

    output (Sampling)

    packet-capture

    per-flow

    per-prefix

    port (cflowd)

    port (Packet Forwarding)

    port-mirroring

    rate

    relay-agent-option

    route-accounting

    run-length

    sampling (Forwarding Options)

    server (DHCP and BOOTP Relay Agent)

    server (DNS and TFTP Service)

    size (Packet Capture)

    size (Sampling and Traceoptions)

    stamp

    tftp

    traceoptions (DNS and TFTP Packet Forwarding)

    traceoptions (Port Mirroring and Traffic Sampling)

    version

    version9

    world-readable