Networking Forums

Networking Forums > Computer Networking > Linux Networking > Multiple MACs from same Interface OR MAC/VLAN NATting

Reply
Thread Tools Display Modes

Multiple MACs from same Interface OR MAC/VLAN NATting

 
 
nikhil.subscribed@gmail.com
Guest
Posts: n/a

 
      08-28-2006, 10:02 AM
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP and multiple VLAN's GordonCopestake Windows Networking 9 08-14-2007 04:54 PM
How to set VLAN priority for socket (not for interface) linux62i@yahoo.com Linux Networking 0 10-27-2006 11:57 AM
Virtual interface + vlan Wolter Kroes Linux Networking 2 10-13-2006 04:02 PM
arp the vlan interface Max Linux Networking 0 06-01-2004 09:00 PM
IPSec NATTING and multiple firewalls Bernd Broadband Hardware 0 04-01-2004 10:06 AM



1 2 3 4 5 6 7 8 9 10 11