16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

}<br />

}<br />

In the standard configuration database, configure policy-statement one based on the<br />

policy with the same name configured in the dynamic database. In addition, configure<br />

prefix-list pl2, which references the prefix list with the same name in the dynamic database,<br />

and configure policy-statement two, which references prefix-list pl2.<br />

[edit]<br />

policy-options {<br />

prefix-list pl2;<br />

dynamic-db; # Reference ’prefix-list pl2’ configured in the dynamic database.<br />

}<br />

policy-statement two {<br />

term term1 {<br />

from {<br />

prefix-list pl2; # Configure a routing policy that includes a prefix list that<br />

# references the dynamic database.<br />

}<br />

then accept;<br />

}<br />

then reject;<br />

}<br />

policy-statement one;<br />

dynamic-db; # Configure a policy in the standard configuration that references<br />

# the policy configured in the dynamic database.<br />

}<br />

}<br />

Apply a policy expression that includes routing policies one and two to BGP export policy<br />

for an internal BGP group test.<br />

[edit]<br />

protocols {<br />

bgp {<br />

group test;<br />

type internal;<br />

local-address 10.255.245.44;<br />

export ( one && two ); # If routing policy one returns the value of TRUE, policy # two<br />

is evaluated.<br />

# If policy one returns the value of FALSE, the evaluation of the expression # ends<br />

and policy two is not evaluated.<br />

}<br />

}<br />

}<br />

Forwarding Packets to the Discard Interface<br />

The discard interface allows you to protect a network from denial-of-service (DoS)<br />

attacks by identifying the target IP address that is being attacked and configuring a policy<br />

to forward all packets to a discard interface. All packets forwarded to the discard interface<br />

are dropped.<br />

To configure the discard interface, include the dsc statement:<br />

70<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!