2

My Internet comes from a single port router my ISP installs (ISP.ca).
Network setup: ISP->Router->DD-WRT router->Computer
The DD-WRT router does my wireless as well, so it is necessary.

To get it to work the DD-WRT router is in some sort of bridge mode. I have had this setup for years, and it is a huge pain. Theoretical, their should be no problem with accessing the WRT router, but I have never figured out a way.

1 Answer 1

3

At first I was tempted to mark your question as a duplicate of this one. The answers there give useful hints on what to do, but in my opinion their educational value is low in a field of explaining why.

Your DD-WRT router probably acts as a switch.

In my workplace we have several home routers in such mode, their purpose is to distribute Wi-Fi and split wired connections. Even with their basic (non DD-WRT) firmware one can do this by:

  • disabling DHCP,
  • using only LAN ports for wired connection,
  • setting up the device (LAN interface) IP to something that doesn't collide with anything else in the network.

Your DD-WRT router may have stopped its NAT service, added its WAN interface to the bridge (that normally concentrates LAN and Wi-Fi interfaces); it's not really important. The above rule of using only LAN ports is solely because mediocre firmware cannot do this. By not using WAN port we can bypass this limitation.

The important thing is: a device in this mode seems transparent to IP traffic. It usually has some IP address assigned but the address may or may not be from within your local network. The root of the problem is you don't know the address nor the netmask.

If your other router provides DHCP for your LAN and if your DD-WRT router uses it do set its IP, the DHCP lease table on the other router will tell you what the IP is. Check it out if you can. However the DD-WRT router may not use DHCP, its configuration may include some fixed arbitrary IP.

You can scan your network and try to find the right IP. See this answer. While scanning some address range or trying to reach the web interface of the router, you need to set your own IP address and netmask in a way that:

  • your computer considers scanned addresses as local;
  • DD-WRT considers the IP of your computer as local, according to its own IP and netmask you don't know;
  • both devices have different addresses.

In practice this means you cannot scan large set of addresses at once. For example you may expect the IP of DD-WRT router to be like 192.168.*.*. To scan the entire range you set up your computer to, say, 192.168.2.5/16, this way the entire range is your local network. But if the router has 192.168.3.10/24 then it won't be able to reply because its netmask narrows down its local network. In this particular case you need your computer IP to be like 192.168.3.*, even if its netmask is /16.

In theory your DD-WRT router can have almost any IP assigned. Even if it hijacked my external IP, the router could act as a switch for you and not interfere, unless you tried to communicate with my router. Your router may also have extremely narrow local address space. I suppose it may have no IP at all (in theory; in practice very unlikely, because this would render the device unmanageable, nobody wants this). Because of this you cannot expect for sure your scanning attempts to succeed eventually; you can only hope they will. The reasonable approach is to scan the most probable address ranges separately (192.168.0.0/24, 192.168.1.0/24, etc.).

If I were you I would sniff the network with wireshark. There's a chance some daemon or whatever on your DD-WRT router sends network packets that would reveal the IP address.

If everything else fails, DD-WRT provides a way to reset the configuration to defaults. It looks like you router needs to have a reset button, I hope there is one. After you reset, set the router up as a switch anew, noting the IP address for future reference.

6
  • 1
    Really interesting and informative. It is strange how this is such a complex and hard problem, you would think DD-WRT would want to allow the web interface to always be accessible.
    – Jonathon
    Commented Jan 17, 2018 at 23:34
  • So if I find that the ip address is something random, I wont be able to access it right? At least not while also having internet?
    – Jonathon
    Commented Jan 17, 2018 at 23:46
  • @JonathonWisnoski "you would think DD-WRT would want to allow the web interface to always be accessible" – On the other hand it would allow you to set its IP as 10.137.213.8 and its netmask as 255.255.255.252; because why not? The web interface would still be accessible, if only you knew the values. I would expect some sane default values, but it's not the job of any Unix to protect user's foot from getting shot. – "…something random, I wont be able to access it right?" – If you don't know the IP, you won't be able. – "At least not while also having internet?" – This I don't understand. Commented Jan 18, 2018 at 0:19
  • OK. I was not able to find anything for what the routers current address was. But after factory resetting it. I changed it's address to one that the ISP's router would like and then enabled DHCP forwarding mode. I can still access the web interface, and I have internet. So far it seems to be working fine.
    – Jonathon
    Commented Jan 18, 2018 at 0:19
  • I meant. If the ip address of the router is not compatible with the network that the DHCP server router wants to set up, then my computer will only be able to communicate with one or the other. I can either be on the 192.168.1.* network, or the 192.168.88.* network.
    – Jonathon
    Commented Jan 18, 2018 at 0:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .