Topic: Hai I need help regarding WAN to Lan and switch setup.
The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Sorry, but I cound not understand any of that diagram or the text below, it just does not make sense to me.
Thanks for reply.
I want config like this at Router-1
Port 1,2,3 works as disable dhcp switch.
wan as wan
port 4 as lan
wifi lan as active dhcp
remote wan comes at port-1 and via disable dhcp switch goes to wan port.
lan of port 4 will goes to disable dhcp switch.
so I can use the router 1 lan internet via disable dhcp switch and remote wan wire at router -2.
I'm still clueless... perhaps someone else will chime in and be able help you, good luck!
(Last edited by eduperez on 8 Sep 2017, 12:33)
Hmm i am not shure what you want, for this reason i can guess only too
You want to do build a router chain:
- Router-0: make the WAN connection pppoe tunnel or what ever it work as dhcp-server
- Router-1: port 1 2 3 switched together and work like a dhcp-client / port 4 and WLAN as separate network
- Router-2: have a WAN port which is connected to port-2 of Router-1, it should get there IP from Router-0 via dhcp
Or how works the WAN connection pppoe-tunnel from Router-0 or many pppoe-tunnel for each devive one ?
The configuration depends on your Router Model some routers have two switches and them it will more complex.
Better the answer comes from peaple with an equal Modell, but in normal case the configuration should be:
the relvant parts in:
/etc/config/network
...
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '4 5t'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 2 3 5t'
option vid '2'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.1'
config interface 'switch'
option proto 'dhcp'
option ifname 'eth0.2'
...
I am not shure you must test if each device need an other MAC address:
...
config device 'lan_dev'
option name 'eth0.1'
option macaddr '01:02:03:04:05:06'
config device 'switch_dev'
option name 'eth0.2'
option macaddr '11:12:13:14:15:16'
...
in /etc/config/wireless
...
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan' # <--- this bridge it together with 'lan'
...
Generally you can't connect two independent routers to the same ISP because you only have one public IP address.
To use ports as a simple switch, create a new VLAN, put all those ports only in that VLAN (untagged), and do not connect that VLAN to the CPU port.
The discussion might have continued from here.