From owner-freebsd-hackers Fri May 14 10:32:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (Postfix) with SMTP id 252D614E0C for ; Fri, 14 May 1999 10:32:21 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id RAA24858; Fri, 14 May 1999 17:25:11 +0200 From: Luigi Rizzo Message-Id: <199905141525.RAA24858@labinfo.iet.unipi.it> Subject: Re: ifconfig: changing mac address To: nate@mt.sri.com (Nate Williams) Date: Fri, 14 May 1999 17:25:10 +0200 (MET DST) Cc: Steve.Gailey@db.com, freebsd-hackers@FreeBSD.ORG In-Reply-To: <199905141710.LAA11648@mt.sri.com> from "Nate Williams" at May 14, 99 11:10:38 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1310 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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