Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
|
|
10-18-2008, 08:48 PM
|
#1
|
Member
Registered: Jan 2006
Posts: 51
Rep:
|
how to change mac adress ?
hi
i was using a laptop before at my school's network. Now i changed my laptop and installed latest version of kubuntu. But the problem is without changing my mac address, i cant use internet. So i changed the mac adress by a command but i dont want to use commands everytime i start the computer. So my question is, What should i do to change the mac adress of the computer automatically ?
i tried to add this line:
Code:
hwadress ether 00:macadress
at : /etc/network/interfaces
Didnt Work..
also tried many lines there but didnt work
Can someone tell me please what line should i add to where to change my mac adress ?
Thanks in advance.
|
|
|
10-18-2008, 11:19 PM
|
#2
|
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Rep:
|
It should just be:
hwaddress ether XX:XX:XX:XX:XX:XX
within your interface stanza
Otherwise you might try a pre-up with:
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
|
|
|
10-19-2008, 04:25 AM
|
#3
|
Member
Registered: Jan 2006
Posts: 51
Original Poster
Rep:
|
Quote:
Originally Posted by pinniped
It should just be:
hwaddress ether XX:XX:XX:XX:XX:XX
within your interface stanza
Otherwise you might try a pre-up with:
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
|
pinniped i tried that one .. But unfortunately it didnt work.
i wrote
my /etc/network/interfaces file is :
Code:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
iface eth0 inet static
address 10.whatelse
netmask 255.whatelse
gateway 10.whatelse
hwaddress ether 00:whatelse
auto eth0
it does not work.
Where should i write ?
Code:
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
Last edited by Rommeo; 10-19-2008 at 04:34 AM.
|
|
|
10-19-2008, 04:54 AM
|
#4
|
Member
Registered: May 2008
Distribution: Gentoo
Posts: 306
Rep:
|
Can't you just tell the person who runs your school's network your new computer's MAC address?
|
|
|
10-19-2008, 04:58 AM
|
#5
|
Member
Registered: Jan 2006
Posts: 51
Original Poster
Rep:
|
Quote:
Originally Posted by Total-MAdMaN
Can't you just tell the person who runs your school's network your new computer's MAC address?
|
But the problem is, i still have my old laptop and i ll use old and new one.
|
|
|
10-19-2008, 05:20 AM
|
#6
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
So you're trying to circumvent the rules?
|
|
|
10-19-2008, 06:21 AM
|
#7
|
Member
Registered: Jan 2006
Posts: 51
Original Poster
Rep:
|
Quote:
Originally Posted by billymayday
So you're trying to circumvent the rules?
|
lets kill all the linux developers that allows us to change mac adress (:
|
|
|
10-19-2008, 06:30 AM
|
#8
|
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Rep:
|
In the interfaces file, just put:
pre-up /sbin/ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
You can also ignore the ifup/ifdown scripts altogether and just configure everything with ifconfig somewhere in the network startup scripts.
|
|
|
10-19-2008, 07:25 AM
|
#9
|
Member
Registered: Jan 2006
Posts: 51
Original Poster
Rep:
|
Quote:
Originally Posted by pinniped
In the interfaces file, just put:
pre-up /sbin/ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
You can also ignore the ifup/ifdown scripts altogether and just configure everything with ifconfig somewhere in the network startup scripts.
|
it works !!!
Thank you so much piiniped.
|
|
|
10-19-2008, 07:56 AM
|
#10
|
Member
Registered: May 2008
Distribution: Gentoo
Posts: 306
Rep:
|
Quote:
Originally Posted by Rommeo
But the problem is, i still have my old laptop and i ll use old and new one.
|
So get the network admin to keep the old and add the new.
|
|
|
10-19-2008, 03:18 PM
|
#11
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
Quote:
Originally Posted by Rommeo
lets kill all the linux developers that allows us to change mac adress (:
|
No, you are the one in the wrong, don't blame the tool maker for the poor tradesman.;
|
|
|
All times are GMT -5. The time now is 02:01 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
|
|