Deleted Added
full compact
rc.conf.5 (228245) rc.conf.5 (228702)
1.\" Copyright (c) 1995
2.\" Jordan K. Hubbard
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 1995
2.\" Jordan K. Hubbard
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: stable/9/share/man/man5/rc.conf.5 228245 2011-12-03 22:14:15Z hrs $
25.\" $FreeBSD: stable/9/share/man/man5/rc.conf.5 228702 2011-12-19 12:11:07Z ru $
26.\"
26.\"
27.Dd October 23, 2011
27.Dd December 13, 2011
28.Dt RC.CONF 5
29.Os
30.Sh NAME
31.Nm rc.conf
32.Nd system configuration information
33.Sh DESCRIPTION
34The file
35.Nm

--- 1060 unchanged lines hidden (view full) ---

1096.Li ed0 ,
1097an example could look like:
1098.Bd -literal
1099ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-5/28"
1100.Ed
1101.Pp
1102It is also possible to add IP alias entries using
1103.Xr ifconfig 8
28.Dt RC.CONF 5
29.Os
30.Sh NAME
31.Nm rc.conf
32.Nd system configuration information
33.Sh DESCRIPTION
34The file
35.Nm

--- 1060 unchanged lines hidden (view full) ---

1096.Li ed0 ,
1097an example could look like:
1098.Bd -literal
1099ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-5/28"
1100.Ed
1101.Pp
1102It is also possible to add IP alias entries using
1103.Xr ifconfig 8
1104syntax.
1104syntax with the
1105.Dq Li inet
1106keyword.
1105Assuming that the interface in question was
1106.Li ed0 ,
1107it might look
1108something like this:
1109.Bd -literal
1110ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
1111ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
1112.Ed
1113.Pp
1114And so on.
1115For each
1116.Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1107Assuming that the interface in question was
1108.Li ed0 ,
1109it might look
1110something like this:
1111.Bd -literal
1112ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
1113ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
1114.Ed
1115.Pp
1116And so on.
1117For each
1118.Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1117entry that is found,
1119entry with the
1120.Dq Li inet
1121keyword that is found,
1118its contents are passed to
1119.Xr ifconfig 8 .
1120Execution stops at the first unsuccessful access, so if
1121something like this is present:
1122.Bd -literal
1123ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
1124ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
1125ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"

--- 3464 unchanged lines hidden ---
1122its contents are passed to
1123.Xr ifconfig 8 .
1124Execution stops at the first unsuccessful access, so if
1125something like this is present:
1126.Bd -literal
1127ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
1128ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
1129ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"

--- 3464 unchanged lines hidden ---