Date: Wed, 7 Mar 2012 09:08:30 +0100 From: Damien Fleuriot <ml@my.gd> To: hiren panchasara <hiren.panchasara@gmail.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: Network Interface configuration Message-ID: <63821C69-16E5-4483-8307-69DCF2865E99@my.gd> In-Reply-To: <CALCpEUFCjOvy4WdALpE_vzxk8sfypxwgg=L01iNorXrN=dCwrA@mail.gmail.com> References: <CALCpEUFCjOvy4WdALpE_vzxk8sfypxwgg=L01iNorXrN=dCwrA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7 Mar 2012, at 08:10, hiren panchasara <hiren.panchasara@gmail.com> wrote: > Do we store network interfaces configuration information in any file that > survives reboots? (as Linux does it in /etc/network/interfaces) > > Only thing I could find was when an interface needs address from DHCP, > rc.conf says ifconfig_em0="DHCP". > > I know getifaddrs() can get you list of interfaces but I wanted to know if > there is any such file. > > Thanks, > Hiren > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" In /etc/rc.conf See the man page for rc.conf for a more detailed use. See the small example bellow: ifconfig_re0="inet 192.168.0.30/24 up" defaultrouter="192.168.0.254" These are the very basics ;)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63821C69-16E5-4483-8307-69DCF2865E99>