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've got a pair of Identical 10/100 cards, Linksys that I want to assign the same mac address to. That way I'll have more available bandwidth to my computer on the LAN. I know that this won't really help me with internet, I'm still limited to my normal D/L speed on the router.
Shouldn't this work? Having two cards with the same MAC address?
Also, how does one statically set the MAc address on a linux machine, I run the 2.6.9-677 Kernel of the Fedora Core 3 release.
you can set the HW address of a NIC by using ifconfig:
ifconfig eth0 hw $HW_ADDRESS eth0
but that won't do what you want: you need some software to do loadbalancing (if you set up 2 NICs with the same MAC, then the first one to reply ARP request will be the only one used, and moreover the switch on which you're connected might make some errors).
One way of doing this is to 'bond' the cards together using the bonding driver within the kernel, when its setup both cards behave as one, with a single ip, you then have several config options, such as active backup mode for fault tolerance, or load balancing for more bandwidth.
Its documented in the kernel source tree under Documentation/networking/bonding.txt
Changing the MAC address won't get you double the bandwidth, it will probably just cause some network issues on your LAN. If the switch (and I say switch because if you are using a hub then nothing you do will make it faster because the whole LAN shares the same bandwidth anyway) supports it, you can set up a port trunk but most home networking devices don't. Otherwise trying to 'fool' the network into doubling bandwidth with two NICs by giving them the same [IP/MAC address] won't do anything but cause problems as the other network devices try to determine why two nodes on the network are using the same settings.
As far as overriding the MAC, it can be done with ifconfig
You CANNOT alter the MAC address of a NIC (Network Interface Card). The hexadecimal number for each NIC card is unique and is so for a very good reason.
Every TCP/IP packet sent and recieved in a LAN contains the MAC address of the NIC so that the router can forward the the TCP/IP Frame (basically a Packet for LAN) to the correct computer. If in theory you managed to alter the MAC address your router would send the frame to both computers. Reducing the bandwith for every PC with the same MAC address, even though the frame is only destined for one particular computer!
Hopefully this has answered all your questions. If I can give some more advice, try reading a book about networking. It will introduce to some concepts that are fundamental to networking.
Sorry, just read the above posts. Who would have thought you could mask the MAC address? Spent too long on windows And by reading the website below. it turn out you can mask the MAC address of windows as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.