Index of Section 1 Manual Pages
| Interix / SUA | addr.1 | Interix / SUA |
addr(1) addr(1)
addr
NAME
addr - displays IP address in network and presentation formats
SYNOPSIS
addr [-4 | -6] -n "hexstring" | -p address
DESCRIPTION
The addr(1) utility accepts an IPv4 or IPv6 network address in either
network (hexadecimal) or presentation format and displays the address in
both formats.
OPTIONS
-4
Indicates that the address is an IPv4 address. If this option and the
-6 option are omitted, the address is assumed to be IPv4.
-6
Indicates that the address is an IPv6 address. If this option and the
-4 option are omitted, the address is assumed to be IPv4.
-n "hexstring"
Specifies a network address in network format. The address must be
enclosed in quotation marks (").
-p address
Specifies a network address in presentation format.
DIAGNOSTICS
The addr(1) utility returns 0 for success and >0 if an error occurs.
EXAMPLES
$ addr -4 -p 127.0.0.1
Input: "127.0.0.1"
Network: [af2 len4] 7f 00 00 01
Presentation: "127.0.0.1"
$ addr -4 -n "7f 00 00 01"
Input: "7f 00 00 01"
Network: [af2 len4] 7f 00 00 01
Presentation: "127.0.0.1"