From owner-freebsd-hackers Fri May 14 10:47:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from heathers.stdio.com (heathers.stdio.com [199.89.192.5]) by hub.freebsd.org (Postfix) with ESMTP id 0BD421512D for ; Fri, 14 May 1999 10:47:42 -0700 (PDT) (envelope-from lile@stdio.com) Received: from heathers.stdio.com (lile@heathers.stdio.com [199.89.192.5]) by heathers.stdio.com (8.8.8/8.8.8) with ESMTP id NAA17918; Fri, 14 May 1999 13:46:57 -0400 (EDT) (envelope-from lile@stdio.com) Date: Fri, 14 May 1999 13:46:57 -0400 (EDT) From: Larry Lile To: Luigi Rizzo Cc: Nate Williams , Steve.Gailey@db.com, freebsd-hackers@FreeBSD.ORG Subject: Re: ifconfig: changing mac address In-Reply-To: <199905141525.RAA24858@labinfo.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Some day I will most likely need to deal with this for the Token-ring drivers. In token-ring having a UAA and LAA (Universally/Locally Administered Address) is very common especially in high-availibility situations. Larry Lile lile@stdio.com On Fri, 14 May 1999, Luigi Rizzo wrote: > > > Is it possible to change the mac address of an ethernet card using > > > ifconfig? > > > > Not in any 'standard' card, no. Some cards (in SUN workstations) allow > > you to swap the EEPROM with the mac address, and I'll bet somewhere > > someone has designed a card with a programmable mac address, but > > normally it's not settable. > > while ifconfig might miss this functionality, i believe your answer > is incorrect. Several FreeBSD drivers read the MAC address from > the rom/eeprom, copy it to sc->arpcom.ac_enaddr, and write it back > to the card's address filter in the init phase. I suppose on other > systems the same thing happens. It's a software thing, not a hardware > one. > > A quick check shows the following drivers do that: > > sys/i386/isa/if_ed.c > sys/pci/if_fxp.c > sys/pci/if_de.c (probably) > > just to name the most common ones. > > cheers > luigi > > -----------------------------------+------------------------------------- > Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) > > http://www.iet.unipi.it/~luigi/ngc99/ > ==== First International Workshop on Networked Group Communication ==== > -----------------------------------+------------------------------------- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message