Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 16:27:29 -0700
From:      Kevin Oberman <kob6558@gmail.com>
To:        Eugene Grosbein <egrosbein@rdtc.ru>
Cc:        freebsd-net@freebsd.org, hiren panchasara <hiren.panchasara@gmail.com>
Subject:   Re: Use of network_interfaces in rc.conf
Message-ID:  <CAN6yY1vwN2vYjSU4%2BHbOiTKPPA2UArYd7Ex1J43q9OZMxXkxkw@mail.gmail.com>
In-Reply-To: <4F61769B.2040809@rdtc.ru>
References:  <CALCpEUE5-HgupRc9VfU4W2B4d07mO9ceTiX05SfQCeA_GXDcOQ@mail.gmail.com> <CALCpEUFs74jZ69gCm-1bwGMKZFdkBas2VdR8x1JHAVzFtWSpBA@mail.gmail.com> <D3ACECC5-598B-4679-A76F-7FDD2780BAFF@mac.com> <CALCpEUHywOyDqabNkuRhmZE0o2iCMWTyt%2BAW5GXEu7HdZRgrwg@mail.gmail.com> <4F607EDF.4010505@rdtc.ru> <CALCpEUG1fOA687BiYOre-7ou1k-zKs0iLYmk2dDJVt5JwhTJEQ@mail.gmail.com> <4F61769B.2040809@rdtc.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/3/14 Eugene Grosbein <egrosbein@rdtc.ru>:
> 15.03.2012 06:33, hiren panchasara =D0=C9=DB=C5=D4:
>
>> =9A =9A network_interfaces is basically historic rudiment
>> =9A =9A used in 2.2.x FreeBSD version and alike.
>>
>> =9A =9A In general, you should not use it in modern version at all.
>>
>>
>> Thanks Eugene.
>>
>> So, the only way to specify boottime configuration (that survives reboot=
s) for an interface in rc.conf is:
>> ifconfig_em0=3D"dhcp" ?
>
> Yes, thats what man rc.conf says.

Minor correction, but the man page says 'ifconfig_em0=3D"DHCP". It may
not be case sensitive, but I have always uded CAPS like the man page
specifies. Also, I usually end up specifying SYNCDHCP to avoid having
something else that requires network starting before the interface is
configured.

Of course, ifconfig_* may have any valid ifconfig argument in it, but
remember the rc.conf is shell, so you must put all of the definition
in a single statement. You can't do:
ifconfig_em0=3D"DHCP"
ifconfig_em0=3D"mediaopt half-duplex"
That will not do DHCP, so hte interface will not come up. Of course,
you can concatinate a second entry to the first using normal sh
syntax.
--=20
R. Kevin Oberman, Network Engineer
E-mail: kob6558@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vwN2vYjSU4%2BHbOiTKPPA2UArYd7Ex1J43q9OZMxXkxkw>