HP-UX Reference (11i v2 03/08) - 1M System Administration Commands A-M (vol 3)
i
ifconfig(1M) ifconfig(1M)
netmask mask
(inet only) Specify how much of the address to reserve for subdi-
viding networks into sub-networks or aggregating networks into
supernets. mask can be specified as a single hexadecimal number
with a leading 0x, with a dot-notation Internet address, or with a
pseudo-network name listed in the network table (see net-
works(4)). For subdividing networks into sub-networks, mask
must include the network part of the local address, and the subnet
part which is taken from the host field of the address. mask must
contain 1’s in the bit positions in the 32-bit address that are to be
used for the network and subnet parts, and 0’s in the host part.
The 1’s in the mask must be contiguous starting from the leftmost
bit position in the 32-bit field. mask must contain at least the
standard network portion, and the subnet field must be contiguous
with the network portion. The subnet field must contain at least 1
bit. For aggregating networks into supernets, mask must only
include a portion of the network part. mask must contain contigu-
ous 1’s in the bit positions starting from the leftmost bit of the 32-
bit field.
prefix n (inet6 only) n indicates the length of the network prefix associated
with this interface. The primary interface (see Interface Naming
subsection given below) prefix length is always 10, and is not
configurable. The prefix option can be used only with the address
option, and only for secondary interfaces. Default: 64. Range: 1 to
128.
arp (inet only) Enable the user of the Address Resolution Protocol in
mapping between network level addresses and link level addresses
(default). If an interface already had the Address Resolution Pro-
tocol disabled, the user must "unplumb" the interface before it can
be enabled for Address Resolution Protocol.
-arp (inet only) Disable the use of the Address Resolution Protocol. If
an interface already had the Address Resolution Protocol enabled,
the user must "unplumb" the interface before it can be disabled for
Address Resolution Protocol.
plumb Setup the Streams plumbing needed for TCP/IP for a primary
interface name. (See the Interface Naming subsection given
below.). By default, the plumb operation is done automatically
when an IP address is specified for an interface.
unplumb Tear down the Streams plumbing for a primary interface name.
(See the Interface Naming subsection given below.) Secondary
interface does not require "plumbing". A secondary IPv4 interface
can be removed by assigning an IP address of 0.0.0.0 to it.
Remove a secondary IPv6 interface by assigning an IP address of ::
to it.
Interface Naming
The interface name associated with a network card is composed of the name of the interface (e.g.
lan or
snap ), the ppa number which identifies the card instance for this interface, and an optional IP index
number which allows the configuration of multiple IP addresses for an interface. For LAN cards, the
interface name lan will be used to designate Ethernet encapsulation and snap for IEEE 802.3 encapsu-
lation. The lanscan command can be used to display the interface name and ppa number of each inter-
face that is associated with a network card (see lanscan (1M)).
IPv4 and IPv6 interfaces can coexist over the same physical network interface device using the same
naming scheme. IPv6 interfaces are configured using the "inet6" ifconfig subcommand. (See the IPv6
subsection given below.)
IP Index Number
Multiple IP addresses assigned to the same interface may be in different subnets. An example of an inter-
face name without an IP index number is lan0. An example of an interface name with a IP index
Section 1M−−296 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003