LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2005, 09:31 PM   #1
ImpactDNI
Member
 
Registered: Jun 2004
Posts: 124

Rep: Reputation: 15
Virtual Adapters


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?
 
Old 08-12-2005, 04:18 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
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.
 
Old 08-12-2005, 07:38 AM   #3
ImpactDNI
Member
 
Registered: Jun 2004
Posts: 124

Original Poster
Rep: Reputation: 15
Yes there is =P

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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Adapters superdude_876 Slackware 7 10-18-2005 06:11 PM
network adapters fakie_flip Linux - Hardware 1 09-01-2005 08:51 AM
More than two adapters using ad-hoc andrewjjones Linux - Wireless Networking 5 10-20-2004 04:29 PM
for network adapters arben Red Hat 1 02-17-2004 01:33 AM
USB Adapters sihere Linux - Software 2 12-30-2001 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration