Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Hello everyone, need some help.. I want to set a MAC Address to my device using the ip utility.. Is there any option available for it?? I use ip addr to set the IP, and ip route to set the gateway but not able to find anything for MAC Address setting.. Pls help
Hi,
For as far as I know, the MAC-address on a network-card cannot normally be changed, only on some routers and modems there are some ways to change it.
Maybe there are some EEPROM-rewrites possible but therefore you need special software for the network-card you have.
Ok, I'm also pretty new here so there might be a way - actually, why would you like to change the MAC-address?
@elvinhaak
MAC can be freely changed, rather you mean that it can not be usualy stored on EEPROM, but for normal usage this is not needed. The reasons for changing MAC are few, for example: your Interbet provider may give you access to net depending on MAC and you changed motherboard with onboard net card or your card has been broken.
Not all nic's and drivers for nic's support mac changes.
See this.
I read that the mac address can also be changed using just the ip command from the cml. It would be issued link ip link show eth0 to display the mac address.
Then shutting it down with ip link set dev eth0 down.
Changing the mac ip link set dev eth0 address XX:XX:XX:XX:XX:XX
Restarting it ip link set dev eth0 up
Just a few more clarifications needed from u all.. I want the substitute rules using ip for setting the default gateway for my interface.. I used ip route to set the gateway value but couldnt set the default gateway still.. pls help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.