LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-12-2005, 07:40 PM   #1
oliju
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
MAC-Adress change / which script to use / SUSE 10


Hi there!

I have the following problem (sorry if my english is sometimes not very proper): My internet provider identifies its user by the mac adress. The thing is i often switch computers so i need to change (or better spoof) my mac adress. I am using the following commands:

ifconfig eth0 down
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
ifconfig eth0 up

That actually works fine. But in order to keep it after restart i have to write the commands in a startup script. But i just cant find out which i should use. /etc/init.d/boot.local changes the mac adress but the internet doesnt work anymore. Same with the 'network' script.

Can anybody help me on that problem please? I am using SUSE 10.0 OSS

Thanks
 
Old 12-13-2005, 09:33 AM   #2
oliju
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Original Poster
Rep: Reputation: 0
can nobody help me on that?
 
Old 12-13-2005, 11:55 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,780
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Instead of hijacking a particular script, why don't you just have this in a script of its own? That way if you have a system upgrade, your changes won't get wiped out by a new script.
 
Old 12-13-2005, 01:09 PM   #4
oliju
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Original Poster
Rep: Reputation: 0
the problem here is i dont know when this script should start? do you know what i mean? it must be before the ip service activates otherwise internet wont work. Do you have an idea?
 
Old 12-13-2005, 01:52 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,780
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Well, you could just modify the script so it doesn't matter when it runs. So maybe something like this:

ifconfig eth0 down
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
ifup eth0


If I remember correctly, ifup will request an IP address.
 
Old 12-13-2005, 02:35 PM   #6
oliju
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Original Poster
Rep: Reputation: 0
hm here might be the problem! i tried it out in the console and after entering ifup eth0 i got an error: No configuration found. Does this mean anything to you? Obviously the problem has to do with the ip adress. I also tried 'killall dhcpcd' and restart with 'dhcpcd eth0'. When i enter 'killall dhcpcd' i got the message: no configuration file found. Will shut down dhcp anyways!
 
Old 12-13-2005, 02:37 PM   #7
oliju
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Original Poster
Rep: Reputation: 0
is it possible that i have to change the name of my /etc/sysconfig/network/ifcfg-eth-id-00:c2:4f:2e:df:bc so that the last part of the file contains the new spoofed mac adress?
 
Old 12-13-2005, 04:22 PM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,780
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I suppose that is possible. To be honest, I'm not real sure where Suse grabs its config info. You could try it and see if that works.
 
  


Reply


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
changing MAC adress? e1000 Linux - Wireless Networking 3 07-08-2004 05:13 PM
Is it possible to find an IP address from a MAC-adress? TheSpork Linux - Networking 1 06-30-2004 02:48 AM
Getting NIC MAC adress thar Linux - Networking 3 06-28-2004 11:38 PM
Mac and ip adress kater0000 Linux - Networking 15 04-05-2004 06:04 PM
I need to change the MAC adress (can't connect to the net) Agna Linux - Newbie 4 03-15-2004 01:23 AM


All times are GMT -5. The time now is 01:37 PM.

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