Access To Modem Configuration

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:25, 10 July 2006 (edit)
Gerrys (Talk | contribs)

← Previous diff
Revision as of 09:10, 30 July 2006 (edit) (undo)
Thedogcow (Talk | contribs)
m
Next diff →
Line 5: Line 5:
In this case the router create himself the PPPoE connection to the ISP server. But to work, the connection between the modem and the router must have an IP address. So usually the modem give an address to the client. but this address will never be used except in some case to access to the configuration interface of the modem. In this case the router create himself the PPPoE connection to the ISP server. But to work, the connection between the modem and the router must have an IP address. So usually the modem give an address to the client. but this address will never be used except in some case to access to the configuration interface of the modem.
-My modem is a Speedtouch 510, is IP address is 10.0.0.138 and it gives the 10.0.0.1 address to the device connected to him. The easiest way to know these address is to connect the modem directly to your computer and take a look to your network card configuration. The default gateway is the Modem address and the Card address is the one provided by the modem.+My modem is a Speedtouch 510, is IP address is 10.0.0.138 and it gives the 10.0.0.1 address to the device connected to him. The easiest way to know these address is to connect the modem directly to your computer and take a look to your network card configuration. The default gateway is the Modem address and the Card address is the one provided by the modem. It should be noted that a lot of modems come preconfigured to use the 192.168.1.x IP range. This will need to be changed for this to work.
So it's look like this. So it's look like this.
Line 25: Line 25:
* Go to ''Administration -> Diagnostics'' and click on ''run'' * Go to ''Administration -> Diagnostics'' and click on ''run''
* Enter * Enter
- ip addr add 10.0.0.1/8 dev vlan1 brd ++ ip addr add 10.0.0.1/24 dev vlan1 brd +
and click on ''Save Startup'' and click on ''Save Startup''
* Enter * Enter
- /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 10.0.0.0/8 -j MASQUERADE+ /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 10.0.0.0/24 -j MASQUERADE
and click on ''Save Firewall'' and click on ''Save Firewall''
[[Category:English documentation]] [[Category:English documentation]]

Revision as of 09:10, 30 July 2006

Contents


Case of a Bridged modem

Presentation

In this case the router create himself the PPPoE connection to the ISP server. But to work, the connection between the modem and the router must have an IP address. So usually the modem give an address to the client. but this address will never be used except in some case to access to the configuration interface of the modem.

My modem is a Speedtouch 510, is IP address is 10.0.0.138 and it gives the 10.0.0.1 address to the device connected to him. The easiest way to know these address is to connect the modem directly to your computer and take a look to your network card configuration. The default gateway is the Modem address and the Card address is the one provided by the modem. It should be noted that a lot of modems come preconfigured to use the 192.168.1.x IP range. This will need to be changed for this to work.

So it's look like this.

   |<---------- PPPOE link ---------->|    
   |                                  |    |====== 
  ISP ======= bridged ============== WRT ========= PCs
               modem |              |   |  |======
                     |              |   |
                     |<- 10.0.0.x ->|   |<-- 192.168.1.x -->>

By default if you type the IP address of the modem you have an "Impossible to contact the server" error.


The way to follow

Eventually replace the 10.0.0.x by your addresses

  • Go to Administration -> Diagnostics and click on run
  • Enter
ip addr add 10.0.0.1/24 dev vlan1 brd +

and click on Save Startup

  • Enter
/usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 10.0.0.0/24 -j MASQUERADE

and click on Save Firewall