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

Example: Configuring Scoping with the scope Statement

This example configures multicast scoping with the scope statement, creating four scopes: local, organization, engineering, and marketing.

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 local scope. For more information about configuring tunnel interfaces, see the JUNOS Network Interfaces Configuration Guide.

Configure the organization scope on an IP-IP encapsulation tunnel interface and a SONET/SDH interface. Configure the engineering and marketing scopes 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;
}
}
}

Note: Do not configure the same prefix under multiple scope statements. If multiple scope statements contain the same prefix, only the last scope statement is enforced. If you need to scope the same prefix on multiple interfaces, do not use a separate scope statement for each interface. List all interfaces under one scope statement instead.

If you configure multicast scoping with the scope statement, you cannot use the scope-policy statement 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 the show multicast scope command:


user@host> show multicast scope
Resolve
Scope nameGroup prefixInterfaceRejects
localfe00::239.255.0.0/128gr-2/1/00
organization239.192.0.0/14gr-2/1/0 so-0/0/00
engineering239.255.255.0/24ip-2/1/0 so-0/0/1 so-0/0/20
marketing239.255.254.0/24gr-2/1/0 so-0/0/2 so-1/0/00

For more information, see the JUNOS Routing Protocols Configuration Guide.


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