Re: ebtables to simulate multiple mac addresses ?
Ben Greear <greearb-my8/[email protected]> Mon, 07 Aug 2006 15:59:15 -0700
| Newsgroups | gmane.linux.network.bridge.ebtables.user |
|---|---|
| Organization | Candela Technologies |
| Message-ID | <[email protected]> |
Darshan Purohit wrote: > > Hi All > I was wondering if I can use ebtables to simulate multiple MAC > addresses. I dont really want to set > up a bridge and I have just one interface on my linux box. I have N > aliased IP addresses on that interface. > My application will use one of these N addresses as the source. > Can I do something like this for these locally originated packets : > if source IP address is IP1 change the source MAC to MAC1 > .. > .. > if source IP address is IP-N change the source MAC to MAC-N. > > And can I use arpreply to respond to an ARP request for any of the IP > with the corresponding > mac address ? > > Darshan. I don't know about ebtables, but you can use the mac-vlan module to do this. Unfortunately, the mac-vlan patch is included in my larger patch, so you'll either have to apply the whole thing (which shouldn't hurt anything), or manually break out the mac-vlan related parts. The big patch is here: http://www.candelatech.com/oss/candela_2.6.17.patch The user-space tool (mvl_config) is included in the latest vlan cvs snapshot: http://www.candelatech.com/oss/vlan-2006-08-04.tgz Thanks, Ben -- Ben Greear <greearb-my8/[email protected]> Candela Technologies Inc http://www.candelatech.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642