I have 2 OpenWRT router, both with DSL, WAN and 4 LAN ports. First one is connected to Internet and has a usual PPPOE + 4LAN switch setup. Now i want to use my second router in another room.
I was going to connect LAN1 (or WAN port if that can be configured?) to WAN. Set WAN to DHCP client and somehow route traffic to the wired clients connected on LAN 1-4. I get an IP adress via DHCP but i cant reach, ping, ssh anything to it.
So is my wish feasable? Can some come up with a small gude for me?
Sure, this is no problem. You are going to be setting this up more-or-less like a dumb AP (even if you don't use the AP function).
The most important thing is that you turn off the DHCP server on the lan (set it to ignore), and set an IP address that does not conflict with your network or overlap the DHCP pool from your main router; or use DHCP client mode.
You can include your wan port (making it just another port on the switch) if you want.
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Now, in the network config, remove the wan and wan6 interfaces, and then add wan to the lan bridge so that it looks like this:
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
option ipv6 '0'
and finally, set the lan interface to an IP address in your main subnet that does not conflict with any other devices or the DHCP pool, or set it to proto 'dhcp' if you want it to be set via DHCP from your main router.
One or the other from below
Below would be a static configuration assuming that 192.168.1.0/24 is your main subnet and 192.168.1.2 is not used by any other device nor the DHCP pool.