LinuxQuestions.org
Help answer threads with 0 replies.
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 05-13-2009, 02:47 PM   #1
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Rep: Reputation: 15
How to change MAC address permanently for Ubuntu 9.04


I need to change MAC adress permanently, but without loosing networkAppet.
It should be as early as could.
 
Old 05-13-2009, 03:09 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
The first question I would ask is why would you need to do such a thing? As for 'permanently' your new MAC address would need to be re-set with every reboot, so inclusion within a startup script would be highly recommended.
 
Old 05-14-2009, 12:38 AM   #3
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Original Poster
Rep: Reputation: 15
I need to do that because ISP assign service by MAC. I have 3 laptops and i can't connect them without changing MAC. Could you please show such script?
 
Old 05-14-2009, 06:11 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
create your own interface and assign the MAC to this interface, the do:
Quote:
ifconfig eth1 down hw ether yo:mac:add:re:ss
ifconfig eth1 up
Alternatively you can put the fisrtline into a startup script, so that the current mac can be changed everytime you reboot without creating a new interface.
 
Old 05-14-2009, 07:02 AM   #5
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Original Poster
Rep: Reputation: 15
Where exactly put script? /etc/init.d ?
create such file?
#!/bin/sh
ifconfig eth1 down hw ether 00:18:f3:3a:2e:dd
ifconfig eth1 up
 
Old 05-14-2009, 10:24 AM   #6
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Quote:
startup scripts
something like /etc/rc.d/rc.local
 
  


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
Ubuntu: How to change MAC address with ifconfig? CJS Linux - Networking 1 06-06-2008 07:13 AM
changing my mac address permanently at ubuntu jamil_2342 Linux - Newbie 2 03-16-2008 01:03 PM
Hw to change mac address permanently? natarajrhce Linux - Hardware 3 05-24-2007 07:44 AM
change mac address possible? kahn Linux - Networking 4 04-22-2005 04:43 AM
Change MAC address (hwaddr) permanently clandestine Ubuntu 1 04-18-2005 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration