type ip addresses

                  type ipaddr
                  type ipv4addr
                  type ipv6addr
                  type ipprefix
                  type ipv4prefix
                  type ipv6prefix

Mode: Operational 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
ipprefixipv4 address w/ optional defaulted prefix-length indicator
ipv4prefixipv4 address w/ optional defaulted prefix-length indicator
ipv6prefixipv6 address w/ optional defaulted prefix-length indicator

Example:

            command newbie {
                help "Show newbie";
                EXAMPLED_ACTION;

                argument addr {
                    help "Test ip address type";
                    type ipaddr;
                }
            }

Display:

        user@router> show example newbie addr 137.34.1.1/24 
                                              ^
        host portion is not zero (137.34.1.0/24) at '137.34.1.1/24'
        user@router> show example newbie addr 137.34.1.1

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:13 2010 for DDL Reference Guide by doxygen 1.4.5