flag disallow-martians

Mode: Configuration Mode

Description:

The disallow-martians flag rejects any martian addresses to be configured. It only applies to ip addresses types (v4 and v6).

JunOS default IPv4 martian addresses:

0.0.0.0/8 127.0.0.0/8 128.0.0.0/16 191.255.0.0/16 192.0.0.0/24 223.255.255.0/24 240.0.0.0/4

Additionally, all class D addresses (multicast) are disallowed.

JunOS default IPv6 martian addresses:

loopback addresses reserved and unassigned addresses from RFC 2373 link-local unicast prefex

Example 1:

        object newbie {
            help "Newbie settings";

            attribute no-martian {
                help "IP address excluding martians";
                flag disallow-martians;
                type ipv4addr;
            }
        }

Display:

        user@router# set example newbie no-martian ?
        Possible completions:
          <no-martian>         IP address excluding martians
        [edit]
        user@router# set example newbie no-martian 1.1.1.1

        [edit]
        user@router# commit

        [edit]
        user@router# show example
        newbie {
            no-martian 1.1.1.1;
        }

        [edit]
        user@router# set example newbie no-martian 127.0.0.201
                                                   ^
        martian address not allowed - '127.0.0.201' at '127.0.0.201'

        [edit]

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