On Tue, 28 Mar 2000, Ben Greear wrote:
> lorenzo martignoni wrote:
> > Michael Renzmann wrote:
> > > I heared that it is possible to change the mac adress of a network
> > > interface card permanently (at least with some nics). How can this
> > > be done, where could I find a program that does this?
It's possible with most NICs, but a few have explicit hardware protection
against it. The code to do it under Linux exists, but people are almost
always wrong in their desire to do this.
> > ifconfig eth0 hw ether 00:30:04:63:89:6C 196.1xx.1xx.1xx broadcast \
> > 196.1xx.xxx.255 netmask 255.255.255.0
> >
> > this will not change permenently mac address but works well ;-)
>
> Beware: That doesn't actually change the NIC's idea of it's MAC on all
> drivers. In other words, it may not accept the pkts destined to the MAC
> you just set, unless you put it in promisc mode. It will send pkts with the
> mac you set though...
Errr, it should. The only caveat is that the station address must usually
be changed while the interface is down, since changing it in mid-operation
is ill-defined (and complicates the driver semantics).
A driver for a device that cannot change the Rx filter should implement
its own dev->set_mac_addr() entry that always returns an error.
Donald Becker
Scyld Computing Corporation, [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]