type ip addresses

                  type ipaddr
                  type ipv4addr
                  type ipv6addr
                  type ipprefix-mandatory
                  type ipv4prefix-mandatory
                  type ipv6prefix-mandatory
                  type ipprefix
                  type ipv4prefix
                  type ipv6prefix
                  type ipprefix-optional
                  type ipv4prefix-optional
                  type ipv6prefix-optional
                  type ipprefix-accept
                  type ipv4prefix-accept
                  type ipv6prefix-accept
                  type ipprefix-only
                  type ipv4prefix-only
                  type ipv6prefix-only
                 

Mode: Configuration Mode

Description:

IPv4 addresses are 32-bit dotted-decimal number in format

         octet.octet.octet.octet

IPv6 addresses can be represented in 2 different formats

1. 128-bit hexadecimal number represented by eight 4-digit hexadecimal integers separated by colons

         X:X:X:X:X:X:X:X

2. 96-bit hexadecimal number plus 32-bit dotted-decimal number

         X:X:X:X:X:X:octet.octet.octet.octet

Prefix-length indicator is a suffix which indicates the number of bit (counted from the most-significant bit) in the address representing the subnet portion. It is represented by /N where N is the number of bit representing the subnet.

         ipv4: octet.octet.octet.octet/N
         ipv6: X:X:X:X:X:X:X:X/N

Type Description
ipaddr ipv4 address w/o prefix-length indicator
ipv4addr ipv4 address w/o prefix-length indicator
ipv6addr ipv6 address w/o prefix-length indicator
ipprefix-mandatoryipv4 address w/ prefix-length indicator
ipv4prefix-mandatoryipv4 address w/ prefix-length indicator
ipv6prefix-mandatoryipv6 address w/ prefix-length indicator
ipprefixipv4 address w/ optional defaulted prefix-length indicator
ipv4prefixipv4 address w/ optional defaulted prefix-length indicator
ipv6prefixipv6 address w/ optional defaulted prefix-length indicator
ipprefix-acceptsaccepts IPv4 and IPv6 addreses
ipv4prefix-acceptsaccepts IPv4 addreses
ipv6prefix-acceptsaccepts IPv6 addreses
ipprefix-optionalipv4 address w/ optional non-defaulted prefix-length indicator
ipv4prefix-optionalipv4 address w/ optional non-defaulted prefix-length indicator
ipv6prefix-optionalipv6 address w/ optional non-defaulted prefix-length indicator
ipprefix-optional-acceptsipv4 or ipv6 address w/ optional non-defaulted prefix-length indicator
ipv4prefix-optional-acceptsipv4 address w/ optional non-defaulted prefix-length indicator
ipv6prefix-optional-acceptsipv6 address w/ optional non-defaulted prefix-length indicator
ipprefix-only ipv4 address that includes the network prefix only
ipv4prefix-only ipv4 address that includes the network prefix only
ipv6prefix-only ipv6 address that includes the network prefix only

Example:

        attribute test-address {
            help "Test ipprefix-mandatory";
            type ipprefix-mandatory;
        }

Display:

        user@router# set newbie test-address ?
        Possible completions:
          <test-address>       Test ipprefix-mandatory

        [edit]
        user@router# set newbie test-address 1.2.3.4
                                                      ^
        missing required prefix length in address '1.2.3.4' at '1.2.3.4'

        [edit]
        user@router# set newbie test-address 1.2.3.4/18 

        [edit]
        user@router# commit

        user@router# show
        version "8.1I0 [user]";
        newbie {
            test-address 1.2.3.4/18;
        }

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