Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 1998 03:46:04 -0700 (PDT)
From:      Dmitry Kohmanyuk <dk@dog.farm.org>
To:        abial@nask.pl (Andrzej Bialecki)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: de problem
Message-ID:  <199804121046.DAA13126@dog.farm.org>

next in thread | raw e-mail | index | archive | help
In article <Pine.NEB.3.95.980406101609.9228B-100000@korin.warman.org.pl> you wrote:
> If you're running version which supports 'media' flags to the interface,
> then manually run ifconfig to select the proper media (de driver tries
> autoselecting other media in case of link failure, and doesn't autosense
> when the proper link goes up again). If not, try doing ifconfig de0 down,
> then up - at least this helps in my case...

the canonical kludge is to have this

*  *  *  *  *   root  fping router >/dev/null || ( ifconfig de0 down ; sleep 5 ; ifconfig de0 up )

in your /etc/crontab (edit router to ip address of your router; 
install fping from ports.)

I have seen this problem happen with both 2.2.2 and 2.2.5 de driver,
on hubs and switches (catalyst).  Forcing media type (both on a host and
on a switch) helps, but not always.

--
And on the seventh day, He finished the alpha-testing.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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