Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2004 23:34:43 +0200 (CEST)
From:      Olaf Hoyer <ohoyer@ohoyer.de>
To:        Marco Beishuizen <marco@beishuizen.info>
Cc:        FreeBSD questions mailing list <questions@freebsd.org>
Subject:   Re: ifconfig in rc.conf network problems
Message-ID:  <20040530232957.B49195@gaff.hhhr.ision.net>
In-Reply-To: <Pine.BSF.4.60.0405302144360.29310@yokozuna.bsd>
References:  <Pine.BSF.4.60.0405302144360.29310@yokozuna.bsd>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 30 May 2004, Marco Beishuizen wrote:

>
> I used to have two ifconfig lines in my rc.conf:
> ifconfig_dc0="DHCP"
> ifconfig_dc0="media autoselect"
>
> The first to enable DHCP and the second to set my networkcard to 100BaseTX
> full duplex.
>
> Now after an upgrade to 4.10-release this doesn't work anymore. When I put
> both lines in rc.conf only the second line is effective and overrides the
> first, but I want to use both DHCP and 100BaseTX. I need to use the "media
> autoselect" because the networkcard defaults to 10BaseT but I want to use
> 100Mbit. When I don't use DHCP the network is unreachable. Pinging then
> gives a "no route to host".


There are two solutions:

1) (Untested by me)

ifconfig_dc0="DHCP media 100baseTX"

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

HTH
Olaf
-- 
Olaf Hoyer        ohoyer@gaff.hhhr.ision.net
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)



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