Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I'm running Libranet 2.8.1, really happy with it, however i need to change my Network card MAC address in order to connect to the campus network as my old laptop was registered under a different mac address.
Is there a way to change et0's mac address? especially in libranet?
# /sbin/ifconfig eth0 down
# /sbin/ifconfig eth0 hw ether 00:00:00:00:00:00
# /sbin/ifconfig eth0 up
Just replace the 00:00:00:00:00:00 w/whatever you need.
=)
Quote:
Originally posted by neopiper I'm running Libranet 2.8.1, really happy with it, however i need to change my Network card MAC address in order to connect to the campus network as my old laptop was registered under a different mac address.
Is there a way to change et0's mac address? especially in libranet?
Um, I am probably going to sound like a dork, but I was under the impression that a MAC address was permanently burned into a card, and to prevent there from ever being two cards with the same MAC address, had a unique code not only identifying the specific card but also identifying the card manufacturer.
Yes, each NIC manufacturer is supposed to assign a unique MAC address to their NICs; however, it has been known that occasionally that they accidentally make dupes. There are instances (like system failover) where you do want to have a NIC changes its MAC address.
a MAC address i just some PHY registers in the EEPROM. These values can be easily changed if the kernel has a method to access these registers. Basically, you can spoof your MAC to be whatever you want it to be.
The PHY is going to reset each time you power cycle, so you will need to create a shell script to make the changes and place the script in your /etc/rc.local. This way the changes will be made upon boot, after all other services have been initialized.
neopiper, this is a late reply, but I know how you can make it automatic at boot up. Edit the file /etc/rcS.d/S40networking. Scroll down until you see:
Quote:
echo -n "Configuring network interfaces: "
ifup -a
echo "done."
Add your commands above "ifup -a" so that the mac address is changed before the eth0 card is brought up
Quote:
echo -n "Configuring network interfaces: "
ifconfig eth0 down
ifconfig eth0 hw ether 00:00:00:00:00:00 up
ifup -a
echo "done."
Of course the zeros above should be your desired mac address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.