ifconfig in rc.conf network problems

Marco Beishuizen marco at beishuizen.info
Mon May 31 02:10:45 PDT 2004


On stardate Sun, 30 May 2004, the wise Joost Bekkers entered:

> On Sun, May 30, 2004 at 11:34:43PM +0200, Olaf Hoyer wrote:
>>
>> 2) put the media change in a separate shell script, and throw it unter
>> /usr/local/etc/rc.d, so that it will be executed later on
>>
>> something like:
>>
>>> cat dc0-speedchange.sh
>> #!/bin/sh
>> ifconfig dc0 media 100baseTX
>>
>
> You might want to put stuff like that in /etc/start_if.dc0
> It gets executed just before the ip address is set or dhclient
> is started.

Yes, this did the trick.
Thanks,

Marco

-- 
Message will arrive in the mail.  Destroy, before the FBI sees it.


More information about the freebsd-questions mailing list