[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Configuring Scoping with the scope-policy Statement

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;
}
}
}

By default, the scope policy applies to all interfaces. For more information about route filters, see the JUNOS Policy Framework Configuration Guide.

Then apply the scope policy allow-Auto-RP-on-backbone at the routing-options hierarchy level:

[edit]
routing-options {
multicast {
scope-policy allow-Auto-RP-on-backbone;
}
}

If you configure multicast scoping with the scope-policy statement, you cannot use the scope statement on the same router and vice versa. Using both statements on the same router prevents you from committing the configuration. To verify that the scope policy is in effect, use the show multicast scope command:


user@host> show multicast scope
Scope policy: [ allow-Auto-RP-on-backbone ]

 


[Contents] [Prev] [Next] [Index] [Report an Error]