Vulnerability Development mailing list archives

Re: changing MAC address


From: paul_pot () NL SONYMUSIC COM (Paul Pot)
Date: Thu, 30 Mar 2000 10:03:50 +0200


Arthuro,

First you will have to detach eth0 by ifconfig eth0 down and then ifconfig eth0
detach. The system does not allow you to change a mac while the interface is up
and running.

hth
paul

Please respond to Arturo Busleiman <buanzox () USA NET>

To:   VULN-DEV () SECURITYFOCUS COM
cc:

Subject:  changing MAC address

This is question regarding an old thread.

as an example, under linux, as root:

  ifconfig eth0 hw ether 00:aa:23:ce:3a:11

changes the mac address of eth0 to 00:aa:23:ce:3a:11, iirc.

        [root@machine /root]# ifconfig eth0 hw ether 00:aa:23:ce:3a:11
        SIOCSIFHWADDR: Device or resource busy

why does this happen? under which circumstances can I use ifconfig for
that purpose?

*> Panic? My kernel doesn't panic! We are doomed! DustDustDust!!!!
*> Get PGP KEY: use pgpk -a hkp://horowitz.surfnet.nl/buanzox () usa net
*> System Fork BBS, en Argentina! (5411) 4799-2510 Dedaparamaxxaginos rules!


Current thread: