flag multicast-only

Mode: Configuration Mode

Description:

The multicast-only flag indicates that only addresses within the multicast address range should be allowed.

Flag multicast-only is a type modifier that restricting values to be within the IPv4 or IPv6 multicast ip address ranges.

IPv4 multicast address range (RFC 2780)

224.0.0.0 - 239.255.255.255

IPv6 multicast address range (RFC 4291)

FF00::0 - FF0F:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF

This flag can be used on all IPv4 and IPv6 address types.

Example 1:

        object newbie {
            help "Newbie settings";

            attribute mcast-addr {
                help "Test mcast address";
                flag multicast-only;
                type ipv4addr;
            }
        }

Display 1:

        user@router# set example newbie mcast-addr ?
        Possible completions:
          <mcast-addr>         Test mcast address
        [edit]
        user@router# set example newbie mcast-addr 1.1.1.1   
                                                   ^
        invalid multicast address - '1.1.1.1' at '1.1.1.1'
        user@router# set example newbie mcast-addr 222.1.1.1 
                                                   ^
        invalid multicast address - '222.1.1.1' at '222.1.1.1'
        user@router# set example newbie mcast-addr 224.0.1.2          

        [edit]
        user@router# show example 
        newbie {
            mcast-addr 224.0.1.2;
        }

        [edit]

Example 2:

        object newbie {
            help "Newbie settings";

            attribute src-addr {
                help "Test multicast constraint";
                flag multicast-only;
                type ipv6prefix;
            }
        }

Display 2:

        user@router# set example newbie ?
        Possible completions:
          <[Enter]>            Execute this command
          src-addr             Test multicast constraint
          |                    Pipe through a command
        [edit]
        user@router# set example newbie src-addr 1234:1::2/126  
                                                 ^
        invalid multicast address - '1234:1::2/126' at '1234:1::2/126'

        [edit]
        user@router# set example newbie src-addr FF05::3/120 

        [edit]
        user@router# show example
        newbie {
            src-addr FF05::3/120;
        }

Topics for further reading:

See also:

Reference (to programmers guide/style guide):


2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:12 2010 for DDL Reference Guide by doxygen 1.4.5