Hey guys
I recently installed OpenWRT on my Xiaomi 3G router. However I don't know what to do now and im lost. Already tried to get to a solution for hours but couldn't figure it out.
So my problem is that I don't get an internet connection with Wifi but over LAN. If I plug in my router to my modem through the WAN port, I can access the Internet through LAN, however not through Wifi. My modem is like a router/modem combination I think because it has the IP:192.168.1.1
This is why I set my own router to 192.168.2.1. but that's kind of all I got RN.
I'll post my /etc/config/network output below(might help you to see what I did wrong)
Well, you have not specified an ip address for your WAN interface...
I am a beginner with OpenWRT but isn't option ipaddr '192.168.2.1' the same as what you are suggesting? If not what exactly is the difference and how do I add the option ipaddr '192.168.1.2' which you recommended to do?
Generally you would set WAN as a DHCP client (which is the default configuration) and have it obtain a 192.168.1.X address from the modem/router. To configure a static WAN address you need not only the IP but also the netmask, gateway, and DNS server. Those will be automatically pushed to your router if it uses DHCP.
It is correct to use 192.168.2.1 for the LAN. The LAN and the WAN must be in different ranges. The LAN netmask is wrong though. A 255.255.0.0 reserves the entire 192.168.X.X range for the LAN. That means there is no difference between 2.1 and 1.1. Use 255.255.255.0 so that only 192.168.2.X is in the LAN.
Take "option disabled 1" out of /etc/config/wireless, obviously it is killing your wifi, that is what that option does.
You still need to set the WAN netmask and DNS server, or use DHCP. The way it is now, clients which do not have a DNS server statically configured will not be able to DNS.
This is the default configuration for WAN. If you have been changing a lot of things I'd suggest going back to default configuration and make only two changes:
Set LAN ipaddr to 192.168.2.1
Enable wifi
and it should work.
I don't know either why it didn't work.
I played around a bit and later I realised that it worked but I don't really know what I did.
Anyway..it works now
Thanks for your help