initialize devs (esp. dumpdev) to NODEV to avoid accidents on hp0a;
[unix-history] / usr / src / sbin / ifconfig / ifconfig.8
CommitLineData
09e42bf2
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
292f29f3 5.\" @(#)ifconfig.8 6.1 (Berkeley) %G%
09e42bf2 6.\"
292f29f3 7.TH IFCONFIG 8C ""
09e42bf2
KM
8.UC 5
9.SH NAME
10ifconfig \- configure network interface parameters
11.SH SYOPNSIS
12.B /etc/ifconfig
13interface
14[
15.I address
292f29f3
KM
16[
17.I dest_address
18] ] [
09e42bf2
KM
19.I parameters
20]
21.SH DESCRIPTION
22.I Ifconfig
23is used to assign an address
24to a network interface and/or configure
25network interface parameters.
26.I Ifconfig
27must be used at boot time to define the network address
28of each interface present on a machine; it may also be used at
29a later time to redefine an interface's address. The
30.I interface
31parameter is a string of the form ``name unit'', e.g. ``en0'', while
32the address is either a host name present in the host name data
33base,
34.IR hosts (5),
35or a DARPA Internet address expressed in the Internet standard
36``dot notation''.
37.PP
38The following parameters may be set with
39.IR ifconfig :
40.TP 15
41.B up
42Mark an interface ``up''.
43.TP 15
44.B down
45Mark an interface ``down''. When an interface is
46marked ``down'', the system will not attempt to
47transmit messages through that interface.
48.TP 15
49.B trailers
50Enable the use of a ``trailer'' link level encapsulation when
51sending (default).
52If a network interface supports
53.IR trailers ,
54the system will, when possible, encapsulate outgoing
55messages in a manner which minimizes the number of
56memory to memory copy operations performed by the receiver.
57.TP 15
58.B \-trailers
59Disable the use of a ``trailer'' link level encapsulation.
60.TP 15
61.B arp
62Enable the use of the Address Resolution Protocol in mapping
63between network level addresses and link level addresses (default).
64This is currently implemented for mapping between DARPA Internet
292f29f3 65addresses and 10Mb/s Ethernet addresses.
09e42bf2
KM
66.TP 15
67.B \-arp
68Disable the use of the Address Resolution Protocol.
292f29f3
KM
69.TP 15
70.B debug
71Enable driver dependent debugging code; usually, this turns on
72extra console error logging.
73.TP 15
74.B \-debug
75Disable driver dependent debugging code.
09e42bf2
KM
76.PP
77.I Ifconfig
78displays the current configuration for a network interface
79when no optional parameters are supplied.
80.PP
81Only the super-user may modify the configuration of a network interface.
82.SH DIAGNOSTICS
83Messages indicating the specified interface does not exit, the
84requested address is unknown, the user is not privileged and
85tried to alter an interface's configuration.
86.SH "SEE ALSO"
87rc(8), intro(4N), netstat(1)