Hello
I have the following situation:
My ISP gives me an IP address with DHCP, but only to the mac address
00:11:22:33:44:55 (which is their preconfigurated device)
As I want to use another device and not their preconfigurated device, i
decided to put a linux computer (lets call it "bridgePC") acting as a
bridge
between those 2.
bridgePC configuration:
Eth0 - connected to ISP
Eth1 - connected to my device
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 up
For testing purposes connected another linux pc ("testPC") to the
bridgePC
(eth1).
I start the dhcp client and it keeps searching.. i dont get an IP from my
ISP which is expected since I have the wrong mac address.
Now, on testPC i changed the mac address to the required 00:11:22:33:44:55
from my ISP.
An bam, I receive an IP via DHCP from my ISP.
So, my bridgePC is working and is acting 100% transparent.
Now of course, the device I want to use is not a Linux PC and therefore I
cant just simply change my mac address of my device.
So I have to use bridgePC to change the outgoing packets as if they were
coming from 00:11:22:33:44:55
I tried with the following:
ebtables -t nat -A POSTROUTING -o eth0 -j snat --to-source bc:05:43:cb:ce:c1
But still not receiving an IP.
Does anyone have an idea?
Thanks,
Steve M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.linux-foundation.org/pipermail/bridge/attachments/20110506/9062bb86/attachment.htm