I can access WEB UI through Lan device, HELP!

  1. here is the situation, I connect WAN to Internet, and device connect to WLAN/LAN
    and my LAN segment is 192.168.99.x
  2. the WAN is using DHCP connecting to the Internet, and seems the gateway of it is 192.168.0.1, when I connect to WAN, the IP addresses of devices connect to WLAN will change from 192.168.99.x to 192.168.0.x, and now I can't access OpenWrt WebUI from WLAN devices
  3. I tried to change my LAN address of OpenWrt to 192.168.0.199, and with this function the WLAN device can access WebUI through 192.168.0.199, but I don't want to place my OpenWrt into 192.168.0.x, I want to keep WLAN device in 192.168.99.x and Openwrt as the gateway 192.168.99.1 while they are all able to access the WAN Internet, how can I solve this situation!! Thank you guys!!

unplug all ethernet cables from the OpenWrt router.

Then, plug a single ethernet cable into the lan port on your OpenWrt router and connect the other end to your computer. Make sure that there are no other network connections on the computer (disable wifi, unplug any other network cables).

What IP address does your computer get?

if there's only lan connection, the ip address will be 192.168.99.2, because the LAN setting in my openwrt is 192.168.99.1 with DHCP

Is that what is actually happening (i.e. have you done it and is that the actual address that you get), or is that just your assumption?

We need to know if the router is at the expected address and the DHCP server working properly -- that's the first part of troubleshooting.

No.

Not unless you checked 'Allocate IPs sequentially' in DHCP and DNS.

Please help us help you.

I did these last night, it's happening, first I disconnect the WAN, and link LAN to my computer, and then link my phone through wifi, both my computer and my phone's ip addr is within 192.168.99.x, I checked it, but when I link WAN to the Internet, all ipaddr changes to 192.168.0.x, and I found my situation is the same as this: [solved] Lose router's gateway when wan is connected

To be honest, I'm not really sure I totally understand your description of the behavior you are experiencing... but....

Let's just focus on what it is doing right now... can you please try the experiment I described and confirm what happens in terms of the IP address issued to your computer.

If all goes properly and your computer gets a 192.168.99.x address, you should be able to grab the config files by connecting via ssh to 192.168.99.1. We can then understand more about your current configuration and any errors from the details contained within those files.

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall

my openwrt's WAN connect to Internet, I think it is some kind of LAN from upper router, because the man that offers the Internet said that if I want to use Internet, I should set DHCP to my WAN, and if i did it, I can access to his router WebUI by 192.168.0.1, so I think my situation is some kind of router LAN -> router WAN, and I want to change the second router's gateway into 192.168.99.1 not the upper router gateway 192.168.0.1

Again.... Please do as I've asked...

and

thank you so much for your help, I will do it when I get off work tonight, thank you!!!

I'm going to be honest here:

What you think is not really relevant.
If you won't let us guide you, we can't help you.

yeah, i am so sorry, but my router is not around me now, what i was trying to do is describe what happened last night, and when I get home tonight, I will do as what you said

1 Like

Thank you so much guys!Here's the result:

  1. I tried several ports nearby the WAN port, and found that they acted the same as the WAN port, so I thought that maybe the WAN isn't that port?and I tried the last LAN port as a WAN port, and the problem solved.
  2. my openwrt firmware is other brand's from my router, so it is the dts of them is different that cause the problem
  3. sorry for didn't reply last night, because I could not login openwrt forum from my place due to no VPN
  4. but when I was able to use WAN and WiFi normally, I found that the signal of WiFi was so poor, then in the end I flashed into the factory Firmware T T
  5. really thank you guys for your help

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

hi, this is my first time using openwrt forum, I can't find the pencil icon, how can I change the topic T T

New users have a very limited time to edit their posts as a function of the way that the forum software works. I'd be happy to edit it for you... what do you wish to edit?

edit it as [Solved] is okay, thank you so much T T

Adding "solved" isn't entirely necessary... instead, the best way is for you to select the post that best represents the solution... at the bottom of the post, you'll see a check-mark icon you can press to select the solution. Or, you can tell me which post to mark.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.