-- the name of the device to add the address to.
-- the address of the interface. The format of the address depends
on the protocol. It is a dotted quad for IP and a sequence of hexadecimal halfwords
separated by colons for IPv6. The
ADDRESS may be followed by
a slash and a decimal number which encodes the network prefix length.
-- the address of the remote endpoint for pointopoint interfaces.
ADDRESS may be followed by a slash and a decimal number,
encoding the network prefix length. If a peer address is specified,
the local address cannot have a prefix length. The network prefix is associated
with the peer rather than with the local address.
-- the broadcast address on the interface.
It is possible to use the special symbols
instead of the broadcast address. In this case, the broadcast address
is derived by setting/resetting the host bits of the interface prefix.
ip utility does not set any broadcast
address unless explicitly requested.
-- Each address may be tagged with a label string. In order to preserve compatibility with Linux-2.0 net aliases, this string must coincide with the name of the device or must be prefixed with the device name followed by colon.
-- the scope of the area where this address is valid.
The available scopes are listed in file
Predefined scope values are:
global-- the address is globally valid.
site-- (IPv6 only) the address is site local, i.e. it is valid inside this site.
link-- the address is link local, i.e. it is valid only on this device.
host-- the address is valid only inside this host.
Appendix A (p. of this document) contains more details on address scopes.