Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 09:29:44 -0800
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        hiren panchasara <hiren.panchasara@gmail.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Damien Fleuriot <ml@my.gd>
Subject:   Re: Network Interface configuration
Message-ID:  <CACVs6=_hBvvpf0uYXNctK6RC3CZN1ThJa_z0BBSaBUtkmPrOsA@mail.gmail.com>
In-Reply-To: <CALCpEUEaGTs78AqG7umSZV-tf2Hun45EwsLYyF5Spg4-YF85vw@mail.gmail.com>
References:  <CALCpEUFCjOvy4WdALpE_vzxk8sfypxwgg=L01iNorXrN=dCwrA@mail.gmail.com> <63821C69-16E5-4483-8307-69DCF2865E99@my.gd> <CALCpEUHrtQxLdiCtGN27jASgokpUTbSOU2dZAVYLxk81B1wPrQ@mail.gmail.com> <CACVs6=9JLuXmHe9Ciwg-RgLUcu0hWTwzEnr4eE16wX2KynEmiA@mail.gmail.com> <CALCpEUEaGTs78AqG7umSZV-tf2Hun45EwsLYyF5Spg4-YF85vw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 7, 2012 at 01:24, hiren panchasara
<hiren.panchasara@gmail.com> wrote:
> On Wed, Mar 7, 2012 at 12:49 AM, Juli Mallett <jmallett@freebsd.org> wrot=
e:
>> =C2=A0In general, interfaces do
>> not come from the configuration files like rc.conf, however the way
>> that those interfaces are set up on boot is configured by files like
>> rc.conf.
>
>
> Thanks Juli.
> So, does it mean that looking at getifaddrs() is the best way (as ifconfi=
g
> is doing) to get the correct state of network interfaces at any point in
> time?

Yes.

> And for the interface of your interest, you can check if rc.conf is
> specifying any persistent configuration or not.

Pretty much.  There are other ways one could configure the interfaces
persistently (for example, a series of ifconfig commands in rc.local)
but in general rc.conf is the way to go, unless you decide to build
your own configuration system.



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