Supported Platforms
Related Documentation
- EX, M, MX, PTX, T Series
- Example: Creating a Named Scope for Multicast Scoping
- M, MX, PTX, T Series
- Understanding Multicast Administrative Scoping
Example: Using a Scope Policy for Multicast Scoping
This example shows how to configure a multicast scope policy named allow-auto-rp-on-backbone, allowing packets for auto-RP groups 224.0.1.39/32 and 224.0.1.40/32 on backbone-facing interfaces, and rejecting all other addresses in the 224.0.1.0/24 and 239.0.0.0/8 address ranges.
Requirements
Before you begin:
- Configure an interior gateway protocol or static routing. See the Junos OS Routing Protocols Library for Routing Devices.
Overview
Each referenced policy must be correctly configured at the [edit policy-options] hierarchy level, specifying the set of routing device interfaces on which to configure scoping, and defining the scope's address range as a series of route filters. Only the interface, route-filter, and prefix-list match conditions are supported for multicast scope policies. All other configured match conditions are ignored. The only actions supported are accept, reject, and the policy flow actions next-term and next-policy. The reject action means that joins and multicast forwarding are suppressed in both directions on the configured interfaces. The accept action allows joins and multicast forwarding in both directions on the interface. By default, scope policies apply to all interfaces. The default action is accept.
![]() | Note: Multicast scoping configured with a scope policy differs in some ways from scoping configured with a named scope (which uses the scope statement):
|
Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
Define which packets are allowed.
[edit policy-options policy-statement allow-auto-rp-on-backbone]user@host# set term allow-auto-rp from interface so-0/0/0.0user@host# set term allow-auto-rp from interface so-0/0/1.0user@host# set term allow-auto-rp from route-filter 224.0.1.39/32 exactuser@host# set term allow-auto-rp from route-filter 224.0.1.40/32 exact user@host# set term allow-auto-rp then acceptDefine which packets are not allowed.
[edit policy-options policy-statement allow-auto-rp-on-backbone]user@host# set term reject-these from route-filter 224.0.1.0/24 orlongeruser@host# set term reject-these from route-filter 239.0.0.0/8 orlongeruser@host# set term reject-these then rejectApply the policy.
[edit routing-options multicast]user@host# set scope-policy allow-auto-rp-on-backboneIf you are done configuring the device, commit the configuration.
user@host# commit
Results
Confirm your configuration by entering the show policy-options and show routing-options commands.
Verification
To verify that the scope policy is in effect, issue the show multicast scope configuration mode command:
user@host> show multicast scope
Scope policy: [ allow-auto-rp-on-backbone ]
When you configure multicast scoping with a scope policy, the show multicast scope operational mode command displays only the name of the scope policy.
Related Documentation
- EX, M, MX, PTX, T Series
- Example: Creating a Named Scope for Multicast Scoping
- M, MX, PTX, T Series
- Understanding Multicast Administrative Scoping
Published: 2013-07-31
Supported Platforms
Related Documentation
- EX, M, MX, PTX, T Series
- Example: Creating a Named Scope for Multicast Scoping
- M, MX, PTX, T Series
- Understanding Multicast Administrative Scoping