Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Due to the unusual way my ISP set up Internet, I need to manually set up MAC address to go online. So far I've been using:

sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether  xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up

However, I have to enter this command every time I start my computer. How to set MAC address permanently?

share|improve this question

1 Answer 1

you can make a shell script with this commands:

sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether  xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up

Save the file with .sh extension and make it startup program ("Add Script" and select your script file)

Tell me how it was ?

Sorry for my bad english.

share|improve this answer
    
I created a .sh file with these scripts in my documents and added it as a startup program in Startup Applications Manager. Didn't help, still had to enter the commands manually in terminal. –  user258821 May 19 at 16:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.