LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to change MAC address permanently for Ubuntu 9.04 (https://www.linuxquestions.org/questions/linux-networking-3/how-to-change-mac-address-permanently-for-ubuntu-9-04-a-725769/)

demontager 05-13-2009 02:47 PM

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.

Poetics 05-13-2009 03:09 PM

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.

demontager 05-14-2009 12:38 AM

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?

chitambira 05-14-2009 06:11 AM

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.

demontager 05-14-2009 07:02 AM

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

chitambira 05-14-2009 10:24 AM

Quote:

startup scripts
something like /etc/rc.d/rc.local


All times are GMT -5. The time now is 05:20 PM.