1.\" $NetBSD: ifaliases.5,v 1.13 2003/01/18 18:32:20 grant 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. 51This must be a number, or must be in 52.Pa /etc/hosts , 53since the nameserver is not running at this point. 54.Pp 55The 56.Em interface 57is the network interface the alias will be configured on. 58.Pp 59The 60.Em netmask 61is the netmask of the alias' network address. 62Although this is optional, omitting the netmask is discouraged. 63Omission results in the use of the classful netmask associated with 64.Em address . 65.Sh FILES 66.Pa /etc/ifaliases , 67.Pa /etc/rc.d/network 68.Sh HISTORY 69The 70.Nm 71file appeared in 72.Nx 1.2 . 73.Sh BUGS 74.Nm 75assumes IPv4, and does not support other protocol families. 76Please check 77.Xr rc.conf 5 78for alternatives like 79.Pa /etc/ifconfig.xxN . 80