I know this has been covered many times but I can't find a scenario that exactly matches my own, and some things still aren't clear to me.
What I have...
1. Server with 2 ethernet sockets.
2. eth0 (static ip 192.168.0.2) connected to my ADSL modem.
3. eth1 (static ip 192.168.1.2) connected to gigabit router (and a bunch of wired clients)
4. wifi router is connected to above gigabit router and provides wifi access to clients.
5. I have dhcp server, bind9, etc all setup happily on my server.
this all works fine...i use iptables, no bridging, and everything works well. (i set this up a while ago)
Now, this is what I want....
1. I've already added a 3rd NIC to my server (USB3.0 to ethernet adapter) successfuly (now labelled eth2)
2. I want my wifi router connected to this ethernet socket. (and not to the gigabit router)
I assumed this would be possible with just a few tweeks to the iptables, but now I'm wondering if I need to bridge the nics. I'd really like to avoid using bridging.
When I try to connect with my iphone i see bootp broadcasts arriving on eth2 but they go unanswered, so the iphone fails to get an ip.
I can't really see a difference in the two scenarios but traffic on eth2 seems to be ignored while eth0 and eth1 seem to communicate happily.
This is my /etc/network/interfaces file;
Any advice is greatly appreciated.
iface lo inet loopback
# The primary network interface (ADSL modem)
iface eth0 inet static
gateway 192.168.0.1 # ip address of ADSL modem
dns-nameservers 127.0.0.1 # bind9 is running on this machine
# The secondary network interface (LAN)
iface eth1 inet static
# The tertiary network interface (ANKER USB3.0 -> Gb LAN)
iface eth2 inet static