ifconfig in rc.conf network problems
ohoyer at ohoyer.de
Sun May 30 14:34:40 PDT 2004
On Sun, 30 May 2004, Marco Beishuizen wrote:
> I used to have two ifconfig lines in my rc.conf:
> 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
ifconfig dc0 media 100baseTX
Olaf Hoyer ohoyer at gaff.hhhr.ision.net
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)
More information about the freebsd-questions