Example: Using a Scope Policy for Multicast Scoping
This example configures a scope-policy statement named allow-auto-rp-on-backbone, allowing packets for auto-RP groups 224.0.1.39/32 exact and 224.0.1.40/32 exact on backbone-facing interfaces, and rejecting all other addresses in the 224.0.1.0/24 or longer and 239.0.0.0/8 or longer address ranges.
First, configure the policy allow-auto-rp-on-backbone at the [edit policy-options] hierarchy level:
[edit]policy-options {policy-statement allow-auto-rp-on-backbone {term allow-auto-rp {from {/* backbone-facing interfaces */interface [ so-0/0/0.0 so-0/0/1.0 ];route-filter 224.0.1.39/32 exact;route-filter 224.0.1.40/32 exact;}then {accept;}}term reject-these {from {route-filter 224.0.1.0/24 orlonger;route-filter 239.0.0.0/8 orlonger;}then reject;}}}
Then apply the scope policy allow-auto-rp-on-backbone at the [edit routing-options] hierarchy level:
[edit]routing-options {multicast {scope-policy allow-auto-rp-on-backbone;}}
To verify that the scope policy is in effect, issue the show multicast scope configuration mode command:
user@host> show multicast scopeScope policy: [ allow-auto-rp-on-backbone ]
For more information about the show multicast scope command, see the Junos Routing Protocols and Policies Command Reference.
