 astor join:2008-08-25 Montreal, QC | How to telnet a TD- 8816? Hi: I want to know if someone have find a way to pass adsl monitor tests to a TD- 8816 TP link Modem on XP.
I really dont know how to telnet it. I have it connected to a
wrt 54G with tomato/mlppp. I have try to take a look on DMT, with no succes.
I never telnet a modem so if you could post every step to do that I will apreciate. Maybe is a good idea to make a tutorial of how to telnet a modem.
Thanks
|
|
 | You need a little magic to access the modem "live".
1. The router and the modem have the same default IP address (192.168.1.1). I suggest that you change your Router's LAN IP address from 192.168.1.1 to 192.168.0.1
Do this in Basic>Network (you also have to adjust the DHCP address range)
2. In Administration>Scripts>Firewall add this line:
iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
3. In Administration>Scripts>Init add this line:
ip addr add 192.168.1.2/24 dev vlan1 brd +
So, next time your router reboots or the firewall resets, the necessary command(s) will run (again).
Then you will be able to access the live modem via telnet or HTTP from your LAN, (or from the Router, if you have accessed the router via ssh).
telnet 192.168.1.1 (the default password is admin)
the following commands are useful:
w ad l n w ad l f w ad c
|
|
 astor join:2008-08-25 Montreal, QC 1 edit | reply to astor Hi in my case my router is already at 192.168.3.1 and my modem at 192.168.1.1 . If it's only necessary to be differents addresses I prefers to keep them with this adressing.
to telnet it ( before read your post)I bypass the router and I connect via ethernet directly to the notebook.
I open a cmd window and write:
telnet 192.168.1.1
It ask me for the password and I was on the telnet of the modem.
I write
wan adsl linedata near wan adsl linedata far
and it give me the line stats.
if I rewire with the router I have no acces.
1) Wich part I have to do of your answer, to make linestats without changing any wire via wireless connexion of tomato/mlppp?.
2) have I to do that "magic" on tomato/mlppp or on the td 8816 web ?
thank you very much.
I find this adsl monitor
»adslm.dohrenburg.net/adslm/adslm.php
but I cant figure out to put it to work.
|
|
 | reply to planiwa said by planiwa:You need a little magic to access the modem "live". 1. The router and the modem have the same default IP address (192.168.1.1). I suggest that you change your Router's LAN IP address from 192.168.1.1 to 192.168.0.1 Do this in Basic>Network (you also have to adjust the DHCP address range) 2. In Administration>Scripts>Firewall add this line: iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
3. In Administration>Scripts>Init add this line: ip addr add 192.168.1.2/24 dev vlan1 brd +
So, next time your router reboots or the firewall resets, the necessary command(s) will run (again). Then you will be able to access the live modem via telnet or HTTP from your LAN, (or from the Router, if you have accessed the router via ssh). telnet 192.168.1.1(the default password is admin) the following commands are useful: w ad l n w ad l f w ad c This definately does not work for me. I cannot connect to the modem using this at all. I am using Tomato 1.21 btw. Any thoughts?
ian |
|
 | reply to astor Hi Astor,
You might discover that 'RouterStats' is a lot easier to figure out:
 OrbMT on D-Link DSL 2320B, Bicephale, 2009-Feb-22
This example applies to the GNet BB0060B/GBB2060-Xi but i guess it's clear enough, the trick is to find the URL which leads directly to the HTTP page where the statistics to be monitored are displayed: if you can TelNet to the TP-Link you can reach its web GUI as well.
 |
|
 2 edits | reply to Thislilfishy If you can ssh to the router, I recommend running the ip command and the iptables command from the router's shell. No need to reset or reboot anything,
Then you should be able to access the modem. Once everything works for you, you can put it into the Admin scripts.
Can you run those two commands all right? What exactly doesn't work? Are you getting error messages?
What do the following commands say:
netstat -rn ifconfig vlan1 iptables -nvl nat
[Edit: Emphasis added.] |
|
 astor join:2008-08-25 Montreal, QC | reply to astor
the only problem is that I have to bypass the mlppp/tomato router to telnet to it. I could go to the web page of the mlppp/tomato , but I can't go to telnet or web interface of the modem only if I bypass the router.
Route Table =========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x2 ...00 1b 38 12 e0 04 ...... Realtek RTL8139/810x Family Fast Ethernet NIC - Packet Scheduler Miniport 0x3 ...00 1b 74 47 f7 d5 ...... Intel(R) PRO/Wireless 3945ABG Network Connection - Packet Scheduler Miniport =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.3.1 192.168.3.125 25 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.3.0 255.255.255.0 192.168.3.125 192.168.3.125 25 192.168.3.125 255.255.255.255 127.0.0.1 127.0.0.1 25 192.168.3.255 255.255.255.255 192.168.3.125 192.168.3.125 25 224.0.0.0 240.0.0.0 192.168.3.125 192.168.3.125 25 255.255.255.255 255.255.255.255 192.168.3.125 2 1 255.255.255.255 255.255.255.255 192.168.3.125 192.168.3.125 1 Default Gateway: 192.168.3.1 =========================================================================== Persistent Routes: None
ifconfig is not recognized as a command
samething with ip tables. |
|
 astor join:2008-08-25 Montreal, QC | reply to astor also when I telnet mlppp/tomato I get the user but I can't enter de pass: (admin). |
|
|
|
 | I'd search ROUTER specific threads since that's clearly a router issue...
 |
|
 astor join:2008-08-25 Montreal, QC 1 edit | reply to astor I think Is to routing the modem thru the router. I never did that . I know to do a port fordward but never a device routing.
Is something to let the 192.168.1.1 (modem) passing thru the 192.168.3.1 (mlppp/tomato) to see the computer 192.168.3.125 |
|
 | reply to astor said by astor:Hi in my case my router is already at 192.168.3.1 and my modem at 192.168.1.1 So, you've already done step 1, on your Router.
quote: 1) Wich part I have to do of your answer, ...?.
2 and 3, since you've done 1, on your Router.
quote: 2) have I to do that "magic" on tomato/mlppp or on the td 8816 web ?
Did you even look anywhere for the GUI web pages that I named in such detail for you?  |
|
 astor join:2008-08-25 Montreal, QC | reply to astor As my IP router address is 192.168.3.1
Have I to change the 192.168.1.0 to 192.168.3.0 ?
iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
and for the second "Magic" ip addr add 192.168.1.2/24 dev vlan1 brd +
Have I to change that to 192.168.3.2/24 ?
Sorry, I dont know what ssh is.
you say:
Did you even look anywhere for the GUI web pages that I named in such detail for you?
Sorry my ignorance, where I have to look on wich page?
Thank for your pacience. |
|
 3 edits | "Have I to change the 192.168.1.0 to 192.168.3.0 ?"
NO! Just do what I wrote.
"Have I to change that to 192.168.3.2/24 ?"
NO! Just do what I wrote.
"Sorry, I dont know what ssh is."
I never mentioned ssh to you.
"where I have to look on wich page?"
Look at the attached pictures.
(Don't forget to click the Save button.) :-) |
|
 astor join:2008-08-25 Montreal, QC | reply to planiwa said by planiwa:If you can ssh to the router, I recommend running the ip command and the iptables command from the router's shell. No need to reset or reboot anything, Then you should be able to access the modem. Once everything works for you, you can put it into the Admin scripts. Can you run those two commands all right? What exactly doesn't work? Are you getting error messages? What do the following commands say: netstat -rn ifconfig vlan1 iptables -nvl nat [Edit: Emphasis added.] I did all what you told me but without any succes. Have I to see the web interface at the same address,192.168.1.1 ? I get page error. |
|
 astor join:2008-08-25 Montreal, QC | reply to astor
Re: How to telnet a TD- 8816? RESOLVED Thank you very much : I have the fix for that .
just put the modem's IP into the "Route modem IP" field on the basic config page. This requires Tomato/MLPPP mp3alpha2 or later.
that work !!!. I have only to put 192.168.1.1 and the web interface apears. I download the version 3alpha 4 as Guspaz recommends me.
Thank you very much planiwa for your pacience, is very appreciated. |
|
 | Can someone who is tech-savvy please confirm or refute that the MLPPP version of Tomato somehow interferes with the generic solution (using vlan1) that I gave [*], when the [MLPPP-added] option "Route Modem IP" is not checked?
Also, how does this option cope when the modem and router turn out to be on the same subnet. I suppose I should ask: Is the MLPPP router's default LAN IP address 192.168.1.1, just as standard Tomato?
Could it be that the "Route Modem IP" option, rather than just being a convenience, is actually necessitated by the MLPPP patch?
[*] (assuming that the modem, but not the router is on the 192.168.1.0/24 subnet: # ip addr add 192.168.1.2/24 dev vlan1 brd + # iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE |
|
 astor join:2008-08-25 Montreal, QC | reply to astor
Re: How to telnet a TD- 8816? I think is better to ask that good question to guspaz one of the creator of mlppp/tomato. |
|
 | Hi guys, I'm a noob, and have no idea what these scripts do, but I got this to work finally, but this is what I used based on another thread that I read.
Administrations\Init sleep 5 ip addr add 192.168.1.10/24 dev br1 brd +
Administrations\Firewall /usr/sbin/iptables -I POSTROUTING -t nat -o br1 -d 192.168.1.0/24 -j MASQUERADE
The only difference is replace vlan1 with br1 I'm using Version 1.19-mp2 with the TD8816 set on Bridge Mode
Your modem will show on the Tomato Device List.
What is the difference in using a later version of the Tomato firmware? Is there any advantage over the 1.19-mp2 version? I just followed someone's post on redflagdeals.com and d/l the firmware from fixppp.org and selected the stable version. |
|
 Reviews:
·TekSavvy DSL
| reply to astor
I have that setup working. I drew up a very crude diagram of how I got it to work... Hope that helps! |
|
 | I'm near the edge of climax. Please continue!!!
 |
|