Problems accessing modem through router

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
13oots2
DD-WRT Novice


Joined: 06 May 2008
Posts: 6

PostPosted: Sun Aug 28, 2011 13:35    Post subject: Problems accessing modem through router Reply with quote
I have a Linksys WRT54G-TM which has been flashed with DDWRT Special firmware. I can connect to the interweb with my TP-Link 8616 and Linksys setup but cannot access the modems setting page without first removing the router.

To access the TP-Link with address set at default 192.168.1.1 I have to set the PC's IP to 192.168.1.2. No matter what I have tried I either end up with a working modem without router or not being able to access modem settings.With the computers IP set to 192.168.1.2 I am unable to connect to the Linksys or get a connection

Any simple steps to remedy this situation so I can access both modem and router setting pages and still have an internet connection. Full thanks in advance
Sponsor
kt_haddock
DD-WRT Guru


Joined: 25 Dec 2009
Posts: 710

PostPosted: Sun Aug 28, 2011 14:01    Post subject: Reply with quote
Try this:
http://www.dd-wrt.com/wiki/index.php/Access_To_Modem_Configuration

_________________
[I prefer answere in whole sentence]
13oots2
DD-WRT Novice


Joined: 06 May 2008
Posts: 6

PostPosted: Sun Aug 28, 2011 23:57    Post subject: Reply with quote
kt_haddock wrote:
Try this:
http://www.dd-wrt.com/wiki/index.php/Access_To_Modem_Configuration


Have tried that changed modem to 192.168.1.2 and PC to 192.168.1.5. I now get second DDWRT page at 192.168.1.2 along with 192.168.1.1 after adding the commands. Am totally baffled and my only recourse is to unplug router and just use modem when I wish to check linespeed.. Was hoping there would be an easy solution to all this.
ThaCrip
DD-WRT User


Joined: 05 May 2008
Posts: 338

PostPosted: Mon Aug 29, 2011 17:10    Post subject: Reply with quote
kt_haddock wrote:
Try this:
http://www.dd-wrt.com/wiki/index.php/Access_To_Modem_Configuration


Thanks. this worked for me as it was getting annoying having to return the Router to DHCP mode and reboot so i could connect to 192.168.0.1 (the DSL modem) and then after i rebooted the DSL modem (so it would connect at full speed again (as it acts up somewhat often)) and it was going good i then had to turn back the dd-wrt to PPPoE mode and then reboot the dd-wrt router again to get it going.

now with what you linked to i can access the DSL Modem directly WITHOUT having to put the router back to DHCP mode now as i can leave the router in PPPoE mode and still access the DSL modem for a reboot when i need to Wink

i.e. it's much quicker/easier now for those us of who prefer PPPoE on the DD-WRT router instead of the DSL modem doing it itself and still need to access the DSL modem occasionally to make sure it's still connected at full speed.

since my DSL modem is 192.168.0.1 i just did this...

"ifconfig `nvram get wan_ifname`:0 192.168.0.2 netmask 255.255.255.0"

and the rest is the same as it shows in the link.

--------------------------------------------------

Quote:
Have tried that changed modem to 192.168.1.2 and PC to 192.168.1.5. I now get second DDWRT page at 192.168.1.2 along with 192.168.1.1 after adding the commands. Am totally baffled and my only recourse is to unplug router and just use modem when I wish to check linespeed.. Was hoping there would be an easy solution to all this.


i think i have seen where you messed up.

you said the DSL modem itself is 192.168.1.1 ... your router is 192.168.1.1 (unless you changed it) this will cause conflicts.

basically that page says this...

Quote:
Note: Many modems come configured to use the 192.168.1.x subnet. This is the same subnet that DD-WRT uses for the LAN by default. You need to either set the modem to use a different subnet or set the router's LAN to use an IP in a different subnet such as 192.168.2.1 so that they're not using the same subnet.


so you got to change the IP of DD-WRT basically... so instead of DD-WRT's default of 192.168.1.1 change to 192.168.2.1. (after you do this you will have to access the DD-WRT page at 192.168.2.1 instead of it's current 192.168.1.1)

after that you can do what that link haddock said and it will work. so if your DSL modem is 192.168.1.1 just put in....

ifconfig `nvram get wan_ifname`:0 192.168.1.2 netmask 255.255.255.0

then i believe you will be able to access your DSL modem at it's address of 192.168.1.1 like you said you normally can if the line is directly connected to your PC.

_________________
Primary Router: Linksys WRT54GS v1.1 /w dd-wrt.v24_mini_generic (r46640 May 13th 2021) ; new Panasonic capacitors Feb 11th 2020 | Backup Router: Linksys WRT54GS v6 /w dd-wrt.v24_micro_generic (r46640 May 13th 2021)
13oots2
DD-WRT Novice


Joined: 06 May 2008
Posts: 6

PostPosted: Tue Aug 30, 2011 10:21    Post subject: Reply with quote
ThaCrip wrote:
kt_haddock wrote:
Try this:
http://www.dd-wrt.com/wiki/index.php/Access_To_Modem_Configuration


Thanks. this worked for me as it was getting annoying having to return the Router to DHCP mode and reboot so i could connect to 192.168.0.1 (the DSL modem) and then after i rebooted the DSL modem (so it would connect at full speed again (as it acts up somewhat often)) and it was going good i then had to turn back the dd-wrt to PPPoE mode and then reboot the dd-wrt router again to get it going.

now with what you linked to i can access the DSL Modem directly WITHOUT having to put the router back to DHCP mode now as i can leave the router in PPPoE mode and still access the DSL modem for a reboot when i need to Wink

i.e. it's much quicker/easier now for those us of who prefer PPPoE on the DD-WRT router instead of the DSL modem doing it itself and still need to access the DSL modem occasionally to make sure it's still connected at full speed.

since my DSL modem is 192.168.0.1 i just did this...

"ifconfig `nvram get wan_ifname`:0 192.168.0.2 netmask 255.255.255.0"

and the rest is the same as it shows in the link.

--------------------------------------------------

Quote:
Have tried that changed modem to 192.168.1.2 and PC to 192.168.1.5. I now get second DDWRT page at 192.168.1.2 along with 192.168.1.1 after adding the commands. Am totally baffled and my only recourse is to unplug router and just use modem when I wish to check linespeed.. Was hoping there would be an easy solution to all this.


i think i have seen where you messed up.

you said the DSL modem itself is 192.168.1.1 ... your router is 192.168.1.1 (unless you changed it) this will cause conflicts.

basically that page says this...

Quote:
Note: Many modems come configured to use the 192.168.1.x subnet. This is the same subnet that DD-WRT uses for the LAN by default. You need to either set the modem to use a different subnet or set the router's LAN to use an IP in a different subnet such as 192.168.2.1 so that they're not using the same subnet.


so you got to change the IP of DD-WRT basically... so instead of DD-WRT's default of 192.168.1.1 change to 192.168.2.1. (after you do this you will have to access the DD-WRT page at 192.168.2.1 instead of it's current 192.168.1.1)

after that you can do what that link haddock said and it will work. so if your DSL modem is 192.168.1.1 just put in....

ifconfig `nvram get wan_ifname`:0 192.168.1.2 netmask 255.255.255.0

then i believe you will be able to access your DSL modem at it's address of 192.168.1.1 like you said you normally can if the line is directly connected to your PC.


Many many thanks for your clear concise instructions, followed them to the letter and low and behold working perfectly. It will teach me to read things properly and not attempt to do them when I am shattered. Guess a fresh perspective and refreshing my adapter address helped Embarassed
beingplanet
DD-WRT Novice


Joined: 30 Jul 2013
Posts: 2

PostPosted: Tue Jul 30, 2013 16:23    Post subject: Reply with quote
Hi. Sorry for digging up an old topic. Basically, I was having the same problem as 13oots2. Then I followed kt_haddock's and ThaCrip's instructions and everything's fine and dandy(thanks, btw). Now I can access my modem's setup page on 192.168.1.1 and my router on 192.168.2.1. However, if I input 192.162.1.2 on my browser, I also get the router's setup page. I just wanted to ask if this is normal. The script that I used to set this all up (from kt_haddock's post) was ifconfig `nvram get wan_ifname`:0 192.168.1.2 netmask 255.255.255.0. Just wanted to get your opinions on this, guys. Thanks! Very Happy
Malitiacurt
DD-WRT User


Joined: 16 Aug 2012
Posts: 190

PostPosted: Tue Jul 30, 2013 20:01    Post subject: Reply with quote
192.168.2.1 is your ddwrt router's LAN ip.

192.168.1.2 is your ddwrt router's WAN ip. It could be 77.88.99.1, but it's 192.168.1.X cause your modem/router combo hands out ip's on the 192.168.1.0/24 subnet.
madman999
DD-WRT Guru


Joined: 11 Jun 2012
Posts: 1042

PostPosted: Tue Jul 30, 2013 20:09    Post subject: Reply with quote
lots of modems get assigned the address of 192.168.100.1 onto their LAN interface as it;s management address or diagnostic page. Atleast that;s the way it works on several of my Time Warner modems by RCA, Mototola and Ubee.

it;s a good test to establish whether your router is speaking to the modem. To test, try browsing to this ip address from a PC on your network-it will pass through your router. I know it sounds counter intuitive but it does not matter what your local ip range is. In my testing from a 10.x.x.x address I was able to get to 192.168.100.1.

_________________
Please state what make and model router plus the build number and type of DD-WRT you are using. Screen prints and a network diagram can are also helpful. Before you create a new post, use the search function. Chances are your issue has happened to someone else.

Common F.A.Q.
Where can I get the latest test Firmware or older ones?
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/

Asus RT-AC66R on 3.x 28072 Giga
TP-Link Archer C9 on 3.x r54095
beingplanet
DD-WRT Novice


Joined: 30 Jul 2013
Posts: 2

PostPosted: Tue Jul 30, 2013 21:51    Post subject: Reply with quote
Malitiacurt wrote:
192.168.2.1 is your ddwrt router's LAN ip.

192.168.1.2 is your ddwrt router's WAN ip. It could be 77.88.99.1, but it's 192.168.1.X cause your modem/router combo hands out ip's on the 192.168.1.0/24 subnet.


Well, now it makes sense because I just tried to use my public IP add on the browser and it also brought me to my dd-wrt router's page.

madman999 wrote:
lots of modems get assigned the address of 192.168.100.1 onto their LAN interface as it;s management address or diagnostic page. Atleast that;s the way it works on several of my Time Warner modems by RCA, Mototola and Ubee.

it;s a good test to establish whether your router is speaking to the modem. To test, try browsing to this ip address from a PC on your network-it will pass through your router. I know it sounds counter intuitive but it does not matter what your local ip range is. In my testing from a 10.x.x.x address I was able to get to 192.168.100.1.


I'm sorry but your explanation got me confused a little bit. It's not you. It's because of my limited knowledge of networking. I feel I lost you when you used an IP address outside of what I'm using. But I tried accessing my router on some random IPs between the range of 192.168.1.3-254 and 192.168.2.2-254 but it wont get through the router gui.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum