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.
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.