OpenWrt Forum Archive

Topic: Accessing modem router when using OpenWRT as a DHCP client

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

My modem router gives out an IP address via DHCP to my OpenWRT router (TP-Link WDR3600) via DHCP. The OpenWRT has an IP address, 192.168.3.2. The IP address of the modem router is 192.168.3.254.

The LAN of the OpenWRT router is 192.168.1.x.

How do I access the modem router at 192.168.3.254 when connected to the OpenWRT's LAN?

Using the default configuration, your OpenWRT router should be capable of routing a connection from any device on the LAN to the modem, just using the 192.168.3.254 address. If it fails try to trace the route ("tracert 192.168.3.254" on Windows, or "traceroute 192.168.3.254" on Linux) and post the result here.

I've seen a similar issue, when the router established a PPPoE, not dhcp. The default route was via ppp0. I had to add a static ip configuration to ethxx to access modem's frontend.

AlecR wrote:

My modem router gives out an IP address via DHCP to my OpenWRT router (TP-Link WDR3600) via DHCP. The OpenWRT has an IP address, 192.168.3.2. The IP address of the modem router is 192.168.3.254.

The LAN of the OpenWRT router is 192.168.1.x.

How do I access the modem router at 192.168.3.254 when connected to the OpenWRT's LAN?


hi

so in short
modem(out=192.168.3.254)---------openwrt(in=192.168.3.2 out=192.168.1.X)---PC(in=192.168.1.Y)
as i sketched it you should be able to ping www... and 192.168.3.254;

The discussion might have continued from here.