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.

Chapter 5: Extended Match Conditions <strong>Configuration</strong><br />

In Junos OS Release 9.2 and later, you can also use AS-dot notation when defining a<br />

4-byte AS number for the target and origin extended communities. Specify two integers<br />

joined by a period: 16-bit high-order value in decimal.16-bit low-order value in decimal. For<br />

example, the 4-byte AS number represented in plain-number format as 65546 is<br />

represented in AS-dot notation as 1.10.<br />

For more information about configuring AS numbers, see the Junos OS Routing Protocols<br />

<strong>Configuration</strong> <strong>Guide</strong>.<br />

Examples: Defining BGP Extended Communities<br />

Configure a target community with an administrative field of 10458 and an assigned<br />

number of 20:<br />

[edit policy-options]<br />

community test-a members [ target:10458:20 ];<br />

Configure a target community with an administrative field of 10.1.1.1 and an assigned<br />

number of 20:<br />

[edit policy-options]<br />

community test-a members [ target:10.1.1.1:20 ];<br />

Configure an origin community with an administrative field of 10.1.1.1 and an assigned<br />

number of 20:<br />

[edit policy-options]<br />

community test-a members [ origin:10.1.1.1:20 ];<br />

Configure a target community with a 4-byte AS number in the administrative field of<br />

100000 and an assigned number of 130:<br />

[edit policy-options]<br />

community test-b members [ target:100000L:130 ];<br />

Related<br />

Documentation<br />

• Configuring AS Numbers for BGP in the Using 4-Byte Autonomous System Numbers in<br />

BGP <strong>Networks</strong> Technology Overview<br />

• Configuring 4-Byte AS Numbers and BGP Extended Community Attributes in the Using<br />

4-Byte Autonomous System Numbers in BGP <strong>Networks</strong> Technology Overview<br />

Inverting Community Matches<br />

To invert the results of the community expression matching, include the invert-match<br />

statement:<br />

invert-match;<br />

You can include this statement at the following hierarchy levels:<br />

• [edit policy-options community name]<br />

• [edit logical-systems logical-system-name policy-options community name]<br />

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

109

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

Saved successfully!

Ooh no, something went wrong!