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 know it is possible to have one ethernet card run as multiple adapters. As far as I've heard, they're called "Virtual Adapters".
I also know that its quite trivial to change the MAC address on the ethernet card.
What I was wondering is: Can I put 2 and 2 together? Can I have one physical ethernet card, take multiple IP addresses, each having its own MAC address?
I don't see why not, as most adapters can run in "promiscuous" mode, picking up packets for every MAC address, so it shouldn't be difficult to configure the adapter to pick up packets for a specific, configurable MAC address.
However, the potential risk you run is that the MAC address you choose conflicts with a pre-existing MAC address on your network. It's the same principle as IP addresses - you don't go picking one at random because there's a chance someone else may be using it.
I can't see why using "virtual adapters" with multiple IP addresses wouldn't be sufficient for your needs - the MAC address is something the administrator should never have to deal with anyway - it's only there as a way of resolving hardware to IP addresses. There's no benefit to having multiple IP addresses on separate MAC addresses or on the same MAC address if it's all going through the same adapter.
My school (Michigan State Univ.) gives as many IPs as you like, but they are associated by MAC.
So you can register as many "computers" (or ethernet cards) as you like, each one gets its own IP (given on its first DHCP), however, the upload for each of these IPs is rate-limited to 10Kbs by IP/MAC.
They limit to 10kbs as an easy way to kill P2P. However, it also kills legit things like running a website (which I do).
By having one adapter (which isn't nearly being used to its 10/100 potential) having multiple IPs/MACs, I can do a round-robin DNS, and easily run a website. By having each sequential request coming in a different IP, I can divide the load between multiple 10kbs upload streams. Obviously, for a 1meg file, its not going to help, but when dealing with a website (which is likely to be 15-20k), it would help significantly.
Does anyone have any quick guides/tutorials on how to setup virtual adapters?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.