Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2001 10:24:31 +0200
From:      Francesco Casadei <fcasadei@inwind.it>
To:        =?iso-8859-1?Q?Jes=FAs_Arn=E1iz?= <jesus@pasapues.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: interface alias
Message-ID:  <20010426102431.A1306@goku.kasby>
In-Reply-To: <EPEJLCLAKFDENCGMPJJDMEPFDEAA.jesus@pasapues.com>; from jesus@pasapues.com on Thu, Apr 26, 2001 at 04:35:22AM %2B0200
References:  <EPEJLCLAKFDENCGMPJJDMEPFDEAA.jesus@pasapues.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--M9NhX3UHpAaciwkO
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 26, 2001 at 04:35:22AM +0200, Jes=FAs Arn=E1iz wrote:
> Hi!
>=20
> I use
>=20
> # ifconfig rl0 add alias inet 192.168......
>=20
> to add an alias to my network adapter. How can I fix it on /etc/rc.conf?
>=20
> Any example please.
>=20
> Thanks in advance.
>=20
>=20
> --
> Jes=FAs Arn=E1iz
> 0z0ne Inc I+D/IT Manager
> http://www.0z0ne.com
> mailto:jesus@0z0ne.com
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>=20
> end of the original message

=46rom rc.conf(5) manpage:

     network_interfaces
                   (str) Set to the list of network interfaces to configure=
 on
                   this host.  For example, if you had a loopback device
                   (standard) and an SMC Elite Ultra NIC, you might have th=
is
                   set to "lo0 ed0" for the two interfaces.  An
                   ifconfig_interface variable is also assumed to exist for
                   each value of interface.  It is also possible to add IP
                   alias entries here in cases where you want a single inte=
r=AD
                   face to have multiple IP addresses registered against it.
                   Assuming that the interface in question was ed0, it might
                   look something like this:

                   ifconfig_ed0_alias0=3D"inet 127.0.0.253 netmask 0xffffff=
ff"
                   ifconfig_ed0_alias1=3D"inet 127.0.0.254 netmask 0xffffff=
ff"

                   And so on.  For each ifconfig_<interface>_alias<n> entry
                   that is found, its contents are passed to ifconfig(8).  =
Ex=AD
                   ecution stops at the first unsuccessful access, so if you
                   had something like:

                   ifconfig_ed0_alias0=3D"inet 127.0.0.251 netmask 0xffffff=
ff"
                   ifconfig_ed0_alias1=3D"inet 127.0.0.252 netmask 0xffffff=
ff"
                   ifconfig_ed0_alias2=3D"inet 127.0.0.253 netmask 0xffffff=
ff"
                   ifconfig_ed0_alias4=3D"inet 127.0.0.254 netmask 0xffffff=
ff"

                   Then note that alias4 would not be added since the search
                   would stop with the missing alias3 entry.


		Francesco Casadei
--=20
You can download my public key from http://digilander.iol.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)

Key fingerprint is: 1671 9A23 ACB4 520A E7EE  00B0 7EC3 375F 164E B17B


--M9NhX3UHpAaciwkO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE659s/fsM3XxZOsXsRAnpKAJ4iOVUe5x3Yq7i1/RchxBzBb1nChACgrpKM
girQfoZ6CnMKMfjgGGg5nSM=
=Dzq9
-----END PGP SIGNATURE-----

--M9NhX3UHpAaciwkO--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010426102431.A1306>