Re: Network Interface configuration

2012-03-07 Thread Juli Mallett
On Wed, Mar 7, 2012 at 01:24, hiren panchasara wrote: > On Wed, Mar 7, 2012 at 12:49 AM, Juli Mallett wrote: >>  In 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. > >

Re: Network Interface configuration

2012-03-07 Thread hiren panchasara
On Wed, Mar 7, 2012 at 12:49 AM, Juli Mallett wrote: > In 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() i

Re: Network Interface configuration

2012-03-07 Thread Damien Fleuriot
On 3/7/12 9:21 AM, hiren panchasara wrote: > > > On Wed, Mar 7, 2012 at 12:08 AM, Damien Fleuriot > wrote: > > > 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

Re: Network Interface configuration

2012-03-07 Thread Juli Mallett
On Wed, Mar 7, 2012 at 00:21, hiren panchasara wrote: > On Wed, Mar 7, 2012 at 12:08 AM, Damien Fleuriot wrote: >> 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.

Re: Network Interface configuration

2012-03-07 Thread hiren panchasara
On Wed, Mar 7, 2012 at 12:08 AM, Damien Fleuriot wrote: > > 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 ;) > Thanks Damien. I lo

Re: Network Interface configuration

2012-03-07 Thread Damien Fleuriot
On 7 Mar 2012, at 08:10, hiren panchasara 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=

Network Interface configuration

2012-03-06 Thread hiren panchasara
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