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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

To configure match conditions that include both the source and destination prefixes for<br />

the vpls protocol family, specify the ip-address keyword (instead of source-ip-address or<br />

destination-ip-address). If either source-ip-address or destination-ip-address falls within<br />

the address range, then it is a match. If you configure an except string, it must match both<br />

source-ip-address and destination-ip-address before the exception applies.<br />

You can also configure match conditions that include both source and destination<br />

addresses for the inet or inet6 families. Specify the address keyword (instead of<br />

source-address or destination-address). If either source-address or destination-address<br />

falls within the address range, then it is a match. If you configure an except string, it must<br />

match both source-address and destination-address before the exception applies.<br />

In the following example for the vpls family, the ip-address prefix is configured with an<br />

except string:<br />

family vpls {<br />

filter fvpls {<br />

term 1 {<br />

from {<br />

ip-address {<br />

55.0.0.0/8;<br />

55.0.1.0/255.0.255.0 except;<br />

}<br />

}<br />

then {<br />

count from-55/8;<br />

discard;<br />

}<br />

}<br />

}<br />

}<br />

In this example, if source-ip-address falls within the exception range of<br />

55.0.1.0/255.0.255.0 except, but destination-ip-address matches 55.0.0.0/8, the packet<br />

is considered a match.<br />

To specify the address prefix, use the notation prefix/prefix-length. If you do not specify<br />

prefix-length, it defaults to /32, as shown in this example:<br />

[edit firewall family family-name filter filter-name term term-name from]<br />

user@host# set destination-address 10<br />

[edit firewall family family-name filter filter-name term term-name from]<br />

user@host# show<br />

destination-address {<br />

10.0.0.0/32;<br />

}<br />

You can also specify a netmask value rather than a prefix length, for example:<br />

[edit firewall family inet filter filter-name]<br />

term term-name {<br />

address 10.0.0.10/255.0.0.255;<br />

}<br />

Noncontiguous Address Prefixes<br />

222<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!