Vulnerability Development mailing list archives

Re: changing MAC address


From: oster () UX1 CSO UIUC EDU (charles james oster)
Date: Thu, 30 Mar 2000 11:06:06 -0600


read the man page.

ifconfig eth0 down
ifconfig eth0 hw ether de:ad:be:ef:69:69
ifconfig eth0 up

On sparcs, however, you don't need to bring the interface down.  (At least
on my ultra 1)

-CJO-

On Wed, 29 Mar 2000, Arturo Busleiman wrote:

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!


             C.J. Oster (Linux Guru/Surge Addict) cjo () pobox com
   ----------------------------------------------------------------------
          Network Security Manager      Unix System Administrator
             For BHNet, Bromley Hall    WSG, CCSO, UIUC
          Hoover and Associates         oster () uiuc edu
          security () bromleygroup com     (217)265-8427
   ----------------------------------------------------------------------

         PGP: 87D5 4216 43A1 42D6 754D  8F5E 24B3 992A B7A1 F556

      Tuition: n. The way you screw your self out of something you
      really want, need, like, or enjoy to learn a simple lesson.


Current thread: