Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ACX/M/MX/PTX] How to configure multiple communities under one policy

0

0

Article ID: KB37474 KB Last Updated: 25 Oct 2021Version: 2.0
Summary:

This article provides configuration examples when multiple communities need to be configured under a single policy.

Solution:

To match community A OR community B

This configuration can be used when accepting routes that contain either community 111:111 or community 222:222.

policy-options {
    policy-statement A-OR-B {
        from community [ A B ];
        then accept;
    }
    community A members 111:111;
    community B members 222:222;
}

set policy-options policy-statement A-OR-B from community A
set policy-options policy-statement A-OR-B from community B
set policy-options policy-statement A-OR-B then accept
set policy-options community A members 111:111
set policy-options community B members 222:222

To match community A AND community B

This configuration can be used when accepting routes with both community 111:111 and 222:222.

policy-options {
    policy-statement A-AND-B {
        from community AB;
        then accept;
    }
    community AB members [ 111:111 222:222 ];

set policy-options policy-statement A-AND-B from community AB
set policy-options policy-statement A-AND-B then accept
set policy-options community AB members 111:111
set policy-options community AB members 222:222

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search