Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-20-2005, 05:50 AM   #1
LQ Newbie
Registered: Feb 2004
Location: Wales
Distribution: Slackware 10/10.1
Posts: 25

Rep: Reputation: 15
Saving cloned MAC address in Slackware

I have managed to clone my MAC address so i can access the internet straight through my linux box. I am wondering how i can save this MAC address so when i reboot it automatically uses this cloned address. Any help is much appreciated.
Old 04-20-2005, 06:36 AM   #2
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32

create a script that you'll run at shutdown time (rc6.d and rc0.d) with this command :
ifconfig eth0 | grep HWaddr | sed -e s/.*HWaddr\ // > /somewhere/mac-address
create another script that you'll run at start time (rc[1-5].d) with this command :
ifconfig eth0 hw ether $(cat /somewhere/mac-address)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MAC address filtering in Slackware? houler Linux - Networking 9 05-12-2006 07:34 AM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
Slackware 10 dhcpcd MAC address on a laptop questions jtp51 Slackware 12 10-14-2004 12:38 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration