First of all thanks for reading my question, and for any help you can give me.
Ok here is the problem I have a network that is a bit strange but I need it to be like this.
I need to have N different networks with the same configuration each one with a private access to the internet, but also I need to share a server by them all.
So I am using a custom openwrt firmware on a TP-Link WR842ND.
What I did was to configure all routers (with dnsmasq disabled so it does not ghave a dhcp server) with the same IP address and I conneced the PC to the router ports. And to have internet acces I connected the router/modem to the last port of the router TP-Link WR842ND.
Each TP-Link WR842ND is connected via WAN to a switch. This switch also has the server (with the shared services) connected.
In order for this to work I need to have the LAN and the WAN with static IP. I am using the folowing configuration in /etc/config/network:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.7'
option gateway '192.168.1.254'
option dns '192.168.1.254'
config interface 'wan'
option ifname 'eth1'
option proto 'static'
option netmask '255.255.0.0'
option ipaddr '10.10.0.1'
option gateway '10.10.0.254'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0 1 2 3 4'
But with this configuration I do not have access to the internet on the router TP-Link.
Is there a way to do this? What am I doing wrong?
NOTE:
If I put the WAN in DHCP I can have internet access.
(Last edited by edsousa84 on 14 Aug 2012, 15:44)