Multiple MACs from same Interface OR MAC/VLAN NATting



Hi,

I have following requirement.

From a single linux interface I want to have multiple HTTP connections
(using curl) to a server such that each connection has a unique source
MAC address.

Now using VCONFIG I can create those many virtual interfaces, assign
unique subnet IP address/MAC address to each virtual interface.

i.e.:

Host: eth1.101 (IP:- 10.1.1.1/24, MAC:-11:22:33:44:55:66) --- Server:
eth1.101 (IP:- 10.1.1.100/24)
Host: eth1.102 (IP:- 10.1.2.1/24, MAC:-11:22:33:44:55:67) --- Server:
eth1.102 (IP:- 10.1.2.100/24)

and so on...

so if I execute: curl http://10.1.1.1.100, it will go with MAC1
and if I execute: curl http://10.1.1.2.100, it will go with MAC2.

This approach is fine, but then I have to create those many virtual
interfaces on the server as well which I want to avoid.

So I basically want the traffic to reach the server with different MAC
addresses but only one VLAN ID, which could be anything.

Another approach that I am currently ruminating is as follows:

Put a router in between. This will give me one VLAN ID.
Put another linux host between the router and HTTP server running
EBTABLES, using which I can do MAC NATting so that I replace the
router's MAC address with the original virtual interfaces MAC address.

But I am a little skeptical about this approach as I haven't really
used EBTABLES and I don't know what all problems I may run into, for
e.g. ARP resolution and what not.

So if any of you have any ideas/solution I'll be more than glad to hear
it.

Thanking in anticipation
Nikhil

.



Relevant Pages

  • Re: Mac file names too long??
    ... > Thank you for posting in SBS newsgroup. ... > networking settings on the MAC; modify the directory service options; ... > some settings on the SBS server need to be changed. ... > I. Check the TCP/IP properties of the MAC client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Mac OS X users cannot connect to shared drives on SBS
    ... To connect MAC OSX computers to SBS 2003 network, ... Services for Macintosh on SBS 2003 server to provide file and printer ...
    (microsoft.public.windows.server.sbs)
  • Re: Word Errors
    ... > I'm experiencing the same issue with OS X Server 10.3.3. ... > users who have home directories on a server. ... Move the Users folder back to the hard disk partition that contains Mac OS ... > networked drives. ...
    (microsoft.public.mac.office.word)
  • Word "Too Many Files Open" strikes again
    ... Recently (immediately after upgrading our server to Mac OS X 10.4.4 Server) ... Network Home folder and Remote Home Folder ...
    (microsoft.public.mac.office.word)
  • RE: Mac file names too long??
    ... Thank you for posting in SBS newsgroup. ... Generally speaking, for the SBS 2003 domain with MAC clients, some ... You can check the white paper and ensure both the server and the clients ... and client correctly: [note: please notice the ISA section of the bottom of ...
    (microsoft.public.windows.server.sbs)