Networkscan - Which IP has my router?

Is it possible to do a networkscan over different networks with a linux pc?

I assume, the router has something like 192.168.x.x, but then I have no idea. I cannot get a connection via ethernet cable and a GL.iNet GL-B1300

A ping doesn't answer (maybe blocked) and 192.168.8.1 in a browser doesn't respond.

https://github.com/openwrt/openwrt/commit/04d3308b6248ef21a6f0bc3378b342906c2d2865 mentions 192.168.1.1

So how can I find out, which IP the router has?

If you're referring to stock OpenWrt, the default router IP after flashing is 192.168.1.1.

It shouldn't...unless you changed it to that IP.

Sure it is. There's many programs that will scan a network...even some Windows port scanners work with WINE emulation layer...but you need to know your gateway to scan a different subnet than the one addressed on the router.

https://nmap.org/ is one tool often used for that task.

1 Like

I have no idea which subnet is used. Can you give me a nmap example please? Maybe there is a script. But I have no idea how it can be done. My local nic has a certain Subnet and I want to search in other subnets.

https://www.google.com/search?q=nmap+examples

If you want to search other subnets, you'll likely have to add those subnets to the interface that you are using to scan with.

You may see IPv6 neighbor-discovery packets being broadcast as well.

Why do you think 192.168.8.1 is the right ip?
Have you tried getting an ip via dhcp?
After flashing a router with openwrt, the dhcp server is active and waiting for requests from a client.
Is the pc/notebook/netbook directly connected to the gl.inet?

1 Like

I didn't flash the router already, I am preparing the router to do it and therefore I need a working cable connection to the rooter. 192.168.8.1 is the correct IP, which I know in the meantime, it is mentioned in the manual. It works now and I have no idea, why it didn't work a few days ago. Maybe a cache problem, but I tried to refresh the browser cache.

If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)