You are not logged in.

#1 2004-12-02 12:11:32

ovihc
Member
Registered: 2004-06-16
Posts: 62

ifconfig and mac address modifications

I'm at my university lab. I'm able to plug in my laptop to the network by copying the mac address from one of the computers to my laptop. It's a dhcp server anyways.

I've been able to do this for the last week, but today I CAN't!

1.) I type :

ifconfig eth0 down
ifconfig eth0 hw ether [mac address]

*I get this message: SIOCSIFHWADDR: Device or resource busy.


My first solution: Because of the error, I went to the rc.d folder into the alsamixer file and i added the line

ifconfig eth0 hw ether [mac address]

to the beginning of the script. I rebooted and when i logged back in, the network had the different mac address. My idea was that since the mac address change would be implemented in the beginning of the booting process, the network card would not be "BUSY" and therefore i could change the mac address. it seemed to work as i planned.

Today I came into the lab and I did the same thing. But nothing will work. As root I type in the commands manually, and I get the 

SIOCSIFHWADDR: Device or resource busy

error. I rebooted and checked that  alsamixer had the first line and it still doesn't work.

I know that my solution was dirty, but what else can I do? i've googled around and all I get are the manual commands i.e.

ifconfig eth0 down 
ifconfig eth0 hw ether [mac address]

but it doesn't work with my computer. is this common in arch linux? why can't i change the network manually?

Help!!

Offline

#2 2004-12-02 15:18:14

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: ifconfig and mac address modifications

try /etc/rc.d/network stop
then try changing the mac...

don't know if it will work, but it might.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB