Example: Configuring Scoping with the scope Statement
This example configures multicast scoping with the
scopestatement, creating four scopes:local,organization,engineering, andmarketing.If you have a Tunnel Physical Interface Card (PIC) in your router and you configure a tunnel interface to use IP-IP encapsulation, you can configure the
localscope. For more information about configuring tunnel interfaces, see the JUNOS Network Interfaces Configuration Guide.Configure the
organizationscope on an IP-IP encapsulation tunnel interface and a SONET/SDH interface. Configure theengineeringandmarketingscopes on an IP-IP encapsulation tunnel interface and two SONET/SDH interfaces. The JUNOS software can scope any user-configurable IPv6 or IPv4 group.[edit]routing-options {multicast {scope local {interface gr-2/1/0;prefix fe00::239.255.0.0/128;}scope organization {interface [gr-2/1/0 so-0/0/0];prefix 239.192.0.0/14;}scope engineering {interface [ip-2/1/0 so-0/0/1 so-0/0/2];prefix 239.255.255.0/24;}scope marketing {interface [gr-2/1/0 so-0/0/2 so-1/0/0];prefix 239.255.254.0/24;}}}If you configure multicast scoping with the
scopestatement, you cannot use the scope-policystatement on the same router and vice versa. Using both statements on the same router prevents you from committing the configuration. To verify that group scoping is in effect, use theshow multicast scopecommand:user@host>show multicast scopeResolveScope name Group prefix Interface Rejectslocal fe00::239.255.0.0/128 gr-2/1/0 0organization 239.192.0.0/14 gr-2/1/0 so-0/0/0 0engineering 239.255.255.0/24 ip-2/1/0 so-0/0/1 so-0/0/2 0marketing 239.255.254.0/24 gr-2/1/0 so-0/0/2 so-1/0/0 0For more information, see the JUNOS Routing Protocols Configuration Guide.