Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-12-2005, 07:40 PM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Rep:
|
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
|
|
|
12-13-2005, 09:33 AM
|
#2
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Original Poster
Rep:
|
can nobody help me on that?
|
|
|
12-13-2005, 11:55 AM
|
#3
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
12-13-2005, 01:09 PM
|
#4
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
12-13-2005, 01:52 PM
|
#5
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
12-13-2005, 02:35 PM
|
#6
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Original Poster
Rep:
|
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!
|
|
|
12-13-2005, 02:37 PM
|
#7
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
12-13-2005, 04:22 PM
|
#8
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
All times are GMT -5. The time now is 02:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|