2001-09-08 05:29:04 +04:00
|
|
|
.\" $NetBSD: ifaliases.5,v 1.12 2001/09/08 01:29:05 wiz Exp $
|
1997-01-05 14:50:12 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1996 Matthew R. Green
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
1997-10-10 09:39:47 +04:00
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
1997-01-05 14:50:12 +03:00
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2000-11-17 12:43:06 +03:00
|
|
|
.Dd November 17, 2000
|
1997-01-05 14:50:12 +03:00
|
|
|
.Dt IFALIASES 5
|
1999-03-17 23:19:44 +03:00
|
|
|
.Os
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ifaliases
|
|
|
|
.Nd interface aliases file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2000-08-03 07:42:23 +04:00
|
|
|
file specifies the additional addresses (aliases) that each interface
|
|
|
|
has.
|
1997-01-05 14:50:12 +03:00
|
|
|
.Nm
|
|
|
|
is processed by
|
2000-08-03 07:42:23 +04:00
|
|
|
.Pa /etc/rc.d/network
|
1997-01-05 14:50:12 +03:00
|
|
|
at system boot time.
|
|
|
|
.Pp
|
2000-08-03 07:42:23 +04:00
|
|
|
Each line of the file is of the form:
|
2000-11-08 04:33:18 +03:00
|
|
|
.D1 address interface [netmask]
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pp
|
|
|
|
The
|
2000-11-17 12:43:06 +03:00
|
|
|
.Em address
|
2000-08-03 07:42:23 +04:00
|
|
|
is a network address of the alias. This must be a number, or must be in
|
|
|
|
.Pa /etc/hosts ,
|
|
|
|
since the nameserver is not running at this point.
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pp
|
|
|
|
The
|
2000-11-17 12:43:06 +03:00
|
|
|
.Em interface
|
1997-01-05 14:50:12 +03:00
|
|
|
is the network interface the alias will be configured on.
|
|
|
|
.Pp
|
|
|
|
The
|
2000-11-17 12:43:06 +03:00
|
|
|
.Em netmask
|
2000-08-03 07:42:23 +04:00
|
|
|
is the netmask of the alias's network address. Although this is
|
|
|
|
optional, omitting the netmask is discouraged. Omission results in
|
2001-09-08 05:29:04 +04:00
|
|
|
the use of the classful netmask associated with
|
2000-11-17 12:43:06 +03:00
|
|
|
.Em address .
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh FILES
|
2000-11-08 04:33:18 +03:00
|
|
|
.Pa /etc/ifaliases ,
|
2000-08-03 07:42:23 +04:00
|
|
|
.Pa /etc/rc.d/network
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file appeared in
|
1997-03-18 07:50:56 +03:00
|
|
|
.Nx 1.2 .
|
2000-11-08 05:56:26 +03:00
|
|
|
.Sh BUGS
|
|
|
|
.Nm
|
|
|
|
assumes IPv4, and does not support other protocol families.
|
|
|
|
Please check
|
|
|
|
.Xr rc.conf 5
|
|
|
|
for alternatives like
|
|
|
|
.Pa /etc/ifconfig.xxN .
|