Subject: Re: chapeter II: serious problem with hme0
To: Martin Husemann <>
From: RJ45 <>
List: port-sparc64
Date: 02/08/2003 15:24:47
the problem is that it won;t allow me to set full-duplex :(( why?? any

ifconfig hme0 inet netmask media 100baseTX 
mediaopt full-duplex

ifconfig: SIOCSIFMEDIA: Operation not permitted

On Sat, 8 Feb 2003, Martin Husemann wrote:

> On Sat, Feb 08, 2003 at 12:56:13PM -0700, RJ45 wrote:
> >         media: Ethernet autoselect (100baseTX)
> ..
> > the problem is that I have a 3com switch office-connect.
> I have seen full/half duplex negotiation problems with some variants of
> the hme chip, while others work just fine.
> My workaround is a /etc/ifconfig.hme0 like this:
> inet
> media 100baseTX mediaopt full-duplex
> ! sleep 1
> media autoselect
> Amazingly this works, with all switches I tried. If your switch can hard-wire
> the full duplex, only the first "media" line is needed. The idea is: force
> the hme0 into full-duplex mode, give it enough time to finish the MII state
> change, and then just force it to do a new NWAY negotiation.
> I have zero clue about the NetBSD MII subsystem, so can't comment if this
> is a sign of a bug there or just fallout from broken chip revisions. Solaris
> and the SUN proms apparently work around this without such hacks. Which, of
> course, does tell us exactly nothing.
> Martin