I have a RaspberryPi along with a USB to Ethernet adapter (eth1).
I want to bridge eth0 and eth1 and create a br0 interface.
I want to devices connected to eth1 receive their DNS (dnsmasq) settings from Raspberry Pi either with or without DHCP.
How do I go about setting up /etc/network/interfaces and dnsmasq.conf so that dnsmasq is running on the bridge ?
EDIT:
I am trying to limit to dnsmasq to only eth1 , I thought bridge was the best way , is there a better way ?
My setup : ISP -> Router ( DHCP Turned Off ) -> Raspberry Pi -> Devices
My ISP does not have a modem and is direct ethernet connection in my house.
When I connect devices to eth1 on Raspberry Pi, before dnsmasq can answer, the ISP is handing out a DHCP lease bypassing dnsmasq.
My goal: I want the Raspberry Pi in my setup to provide DNS Settings automatically to all devices connected to my network, without manual configuration. I actually don't care if Raspberry Pi provides DHCP, I turned DHCP off on the Router since I came to the conclusion you need to provide DHCP to automatically traverse DNS settings, please let me know if I am wrong.
iptables
to create NAT (network address translation) rules between your (private) internal IP subnet and your ISP's network. You do show your Router (DHCP Turned Off) in place, so this might already be in place. You need to provide more detail. What are the details on that router? Simply putting the RPi on your internal network may work. – bobstro Sep 02 '15 at 16:18