Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Aaroona

3204 posts

Uber Geek
+1 received by user: 169


#138142 21-Dec-2013 16:39
Send private message

So in anticipation for my VDSL install on Christmas Eve, I went out and bought a Vigor DV130. So far the modem syncs 2-3mbps faster and does bridge mode perfectly.

My problem however, is while using bridge mode, I have lost connectively to my modem via HTTP for administration.

so my Modem is on 192.168.1.1/255.255.255.0

My router (DD-WRT) is on 192.168.2.1/255.255.255.0

How can I assign a static route to allow me to make changes to my modems settings (or check my WAN connection speed) going via my LAN?








Filter this topic showing only the reply marked as answer Create new topic
Ragnor
8279 posts

Uber Geek
+1 received by user: 585

Trusted

  #956035 22-Dec-2013 02:17
Send private message

Not sure about DD-WRT but in Tomato you can add commands to the init and firewall scripts via the GUI so you give the WAN interface a local ip address in the modem's range and add some iptables magic for routing

init: ip addr add 192.168.1.3/24 dev $(nvram get wan_ifname) brd +

firewall: iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 192.168.1.2/24 -j MASQUERADE



Ragnor
8279 posts

Uber Geek
+1 received by user: 585

Trusted

  #956036 22-Dec-2013 02:19
Send private message

Actually here's the DD-WRT wiki page for what you want to do, looks pretty similar

http://www.dd-wrt.com/wiki/index.php/Access_To_Modem_Configuration

Aaroona

3204 posts

Uber Geek
+1 received by user: 169


  #956083 22-Dec-2013 10:32
Send private message

Thanks for you reply - I must be being daft.

I can't seem to get either instructions to work, which in all likelyhood, means I'm doing something wrong.

So, based on the commands for DDWRT, I ran:

 

ifconfig `nvram get wan_ifname`:0 192.168.1.2 netmask 255.255.255.0

 

 

Then:

 

iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE

 

 

 

 

tried to access 192.168.1.2 and it just pointed to DDWRT.
Tried 192.168.1.1, no go there either..



Aaroona

3204 posts

Uber Geek
+1 received by user: 169


  #956089 22-Dec-2013 10:53
Send private message

I have no idea why, but for some reason its just jumped back into life.

These are the commands that ended up working for me: 

ifconfig `nvram get wan_ifname`:0 192.168.1.10 netmask 255.255.255.0

iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE



Which now, makes sense. I believe the vigor DV130 has a a virtual interface by default that is allocated the 192.168.1.2 address... the only reason I can think of why it didn't work.


Filter this topic showing only the reply marked as answer Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.