I have some problems to configure my network, because I have to use 3 routers to setup all network. A very weak opticom router (1) gets my ADSL link. There is no way to upgrade it to dd-wrt, so I use two cisco E4200 tomato firmware installed to manage wi-fi and filter rules, networks (2) and (3) .

My setup is:

2 servers and ethernet epson printer on network 192.168.1.0, connected on router (1)

Smart TV, on wi-fi network (2) 192.168.2.0

PC on wi-fi/wired networks (2) and (3): 192.168.2.0 and 192.168.3.0


First issue, I have wi-fi smart TV on subnet (2) and a DNLA server on network (1), TV didn't "see" this server.

Second issue, Mac using wi-fi can't print on epson printer. I think it's a driver problem, because win 7/8 machine prints well.

Third, PC on different wi-fi networks can't see each other.

I'd like to integrate these networks using a PC with 3 nic cards, as showed on image

My setup wanted/suggested is showed here:

My problems, I installed CentOS linux to manage DHCP and routing between those subnets, but I need a single subnet for all segments. Is it possible?

I want to fix IP address for all servers/printers, so I reserved 192.168.1.200-254 to servers.

WI-FI (2) manages 192.168.1.11-50
WI-FI (3) manages 192.168.1.51-80

Range 192.168.1.1-10 is reserved too for any eventuality.

I tried on linux this configuration, but it didn't work

option subnet-mask 255.255.255.0;

dhcpd-network1:
option subnet-mask 255.255.255.0;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.241;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.240;
range 192.168.1.11 192.168.1.50;
}

dhcpd-network2:
option subnet-mask 255.255.255.0;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.242;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.240;
range 192.168.1.51 192.168.1.80;
}

dhcpd -cf /etc/dhcpd-network1/dhcpd.conf eth1
dhcpd -cf /etc/dhcpd-network2/dhcpd.conf eth2

On E4200, I connected linux cable on ordinary ports. I get IP address from DHCP server, but there is no routing to any ip. Maybe it's a iptables problem only.

Any other suggestion or some help I will really appreciate.