xref: /netbsd/share/man/man5/ifaliases.5 (revision bf9ec67e)
1.\"	$NetBSD: ifaliases.5,v 1.12 2001/09/08 01:29:05 wiz Exp $
2.\"
3.\" Copyright (c) 1996 Matthew R. Green
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. The name of the author may not be used to endorse or promote products
15.\"    derived from this software without specific prior written permission.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
29.Dd November 17, 2000
30.Dt IFALIASES 5
31.Os
32.Sh NAME
33.Nm ifaliases
34.Nd interface aliases file
35.Sh DESCRIPTION
36The
37.Nm
38file specifies the additional addresses (aliases) that each interface
39has.
40.Nm
41is processed by
42.Pa /etc/rc.d/network
43at system boot time.
44.Pp
45Each line of the file is of the form:
46.D1 address interface [netmask]
47.Pp
48The
49.Em address
50is a network address of the alias.  This must be a number, or must be in
51.Pa /etc/hosts ,
52since the nameserver is not running at this point.
53.Pp
54The
55.Em interface
56is the network interface the alias will be configured on.
57.Pp
58The
59.Em netmask
60is the netmask of the alias's network address.  Although this is
61optional, omitting the netmask is discouraged.  Omission results in
62the use of the classful netmask associated with
63.Em address .
64.Sh FILES
65.Pa /etc/ifaliases ,
66.Pa /etc/rc.d/network
67.Sh HISTORY
68The
69.Nm
70file appeared in
71.Nx 1.2 .
72.Sh BUGS
73.Nm
74assumes IPv4, and does not support other protocol families.
75Please check
76.Xr rc.conf 5
77for alternatives like
78.Pa /etc/ifconfig.xxN .
79