flag disallow-martians

Mode: Configuration Mode


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:

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;


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

        user@router# commit

        user@router# show example
        newbie {

        user@router# set example newbie no-martian
        martian address not allowed - '' at ''


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