Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Important
Use the routers web interface to backup the router settings before playing.
Reinstalling the backup or in the worst case resetting to factory default and reinstalling the backup should get things back to how
they were.
Use these commands at your own risk.
Click on "start" in the bottom left corner of the desk top, in the search box (vista) or run box (windows xp) type command then
press enter.
A black command window should pop up, in here type telnet 192.168.1.254
You will be asked for your routers username and then password, it’s the same ones used to access the routers web interface.
https://lehollandaisvolant.net/tout/_misc/telnet/ 1/16
1/12/2019 Telnet Commands for a Thomson Router
Just enter the two commands as shown above to permanently disable the timeout.
Telnet example
This example displays the IP address of the DNS resolvers held in the router.
Issue the command "dns server route list"
Make a note of the interface shown here, it will be needed in some other commands on this page.
eg. the interface shown above is O2_ADSL2plus this may not be the same as shown by your router.
Command Comments
List all DNS resolvers set in the router. (
dns server route list optional )
dns server route flush Clear
dns server route add dns=208.67.222.222 metric=0
See note (1) below regarding "intf=Internet"
intf=Internet
dns server route add dns=208.67.220.220 metric=0
See note (1) below regarding "intf=Internet"
intf=Internet
List all DNS resolvers set in the router. (just
dns server route list checking)
saveall Make the change permanent.
https://lehollandaisvolant.net/tout/_misc/telnet/ 2/16
1/12/2019 Telnet Commands for a Thomson Router
Telnet script download to configure the DNS setting for R8 and R10 firmware
http://npr.me.uk/dns-script.zip
Command Comments
dns server route flush Clear
List all DNS resolvers set in the router. (just
dns server route list checking)
saveall Make the change permanent.
May need to reboot or renew the ppp session to obtain the DNS settings.
Command Comments
List all DNS resolvers set in the router. (
dns server forward dnsset list optional )
dns server forward dnsset flush Clear
dns server forward dnsset add set=0 dns=208.67.222.222
See note (1) below regarding "intf=Internet"
metric=0 intf=Internet
dns server forward dnsset add set=0 dns=208.67.220.220 See note (1) below regarding "intf=Internet"
metric=0 intf=Internet
List all DNS resolvers set in the router. (just
dns server forward dnsset list checking)
saveall Make the change permanent.
Telnet script download to configure the DNS setting for R8 and R10 firmware
http://npr.me.uk/dns-script.zip
Command Comments
dns server forward dnsset flush Clear
List all DNS resolvers set in the router. (just
dns server forward dnsset list checking)
saveall Make the change permanent.
May need to reboot or renew the ppp session to obtain the DNS settings.
https://lehollandaisvolant.net/tout/_misc/telnet/ 3/16
1/12/2019 Telnet Commands for a Thomson Router
Command Comments
View existing settings -- It's the "custom" section
dyndns service list we'll be changing
dyndns service modify name=custom Change service provider to dnsomatic.com
server=updates.dnsomatic.com updateinterval=10800 updateinterval is 3 hours. (10800 seconds)
saveall Make the change permanent.
Go to the routers web interface Toolbox > Dynamic DNS > Configure :-
Tick "Enabled"
Interface -- Internet -- See Note (1)
Username -- Opendns username
Password -- Opendns password
Service -- custom
Host -- enter your opendns network label or enter the catch all -- all.dnsomatic.com
Click "Apply"
Check the routers event log to confirm "dyndns host has been updated".
Command Comments
env get var=SESSIONTIMEOUT Check existing setting.
env set var=SESSIONTIMEOUT value=0 Disable session timeout.
saveall Make the change permanent.
Command Comments
See Telnet Scripting for a method to get these
xdsl info expand=enabled
stats quick.
Force connection modulation mode to ADSL1, ADSL2 or ADSL2+ (also disable Annex M)
A useful byproduct of this command is that it causes a resync.
ie resetting the modulation to default (ie no change) can be used to force the router to perform a resync.
Command Comments
Show all enabled modes.
xdsl debug multimode
(optional)
This forces ADSL1 (ie
xdsl debug multimode config=t1.413issue2+g992.1_annex_a
g992.1 Annex A)
This forces ADSL2 (ie
xdsl debug multimode config=t1.413issue2+g992.3_annex_a
g992.3 Annex A)
This forces ADSL2+ (ie
xdsl debug multimode config=t1.413issue2+g992.5_annex_a
g992.5 Annex A)
https://lehollandaisvolant.net/tout/_misc/telnet/ 4/16
1/12/2019 Telnet Commands for a Thomson Router
Command Comments
xdsl config status=down Drop ADSL connection
xdsl config status=up Raise ADSL connection
Command Comments
ppp ifdetach intf=Internet Drop PPP
ppp ifattach intf=Internet Connect PPP
Change router password -- I've found this troublesome using the web interface.
Command Comments
Must be an existing username ie "SuperUser" or
user config name=SuperUser password=mypassword
"Administrator"
user config name=Administrator password=mypassword
saveall Don't forget this!
Method 1
Command Comments
script add name=useroot command="user add name=me Change "me" and "pass" for your own username
password=pass role=root" and password.
https://lehollandaisvolant.net/tout/_misc/telnet/ 5/16
1/12/2019 Telnet Commands for a Thomson Router
Method 2
Commands Comments
user flush Delete all usernames and passwords
Exit telnet session and start a new one. No username or password needed.
user add name=MyUserName password=MyPassWord role=root Replace MyUserName and MyPassWord
defuser=enabled defremadmin=enabled deflocadmin=enabled with ones of your own.
saveall Make permanent.
Command Comments
ip iflist expand=enabled Show routers MAC and other stuff
ip ifdetach intf=Internet See note (1) below regarding "intf=Internet"
ip ifconfig intf=Internet hwaddr=00:xx:xx:xx:xx:xx See note (1) Replace "xx" with your spoof MAC
ip ifattach intf=Internet See note (1) below regarding "intf=Internet"
saveall Don't forget this!
Command Comments
service system list Show if enabled or disabled.
service system modify name=CWMP-S state=disabled Disable remote assistance from the ISP.
Disable checking for firmware updates etc
service system modify name=CWMP-C state=disabled
"phone home".
saveall Don't forget this!
Command Comments
Check if "interface group" is associated with
service system list name=PING_RESPONDER expand=enabled
WAN (ie enabled)
service system ifadd name=PING_RESPONDER group=wan Add to WAN "interface group" (ie enabled)
saveall Don't forget this!
Command Comments
https://lehollandaisvolant.net/tout/_misc/telnet/ 6/16
1/12/2019 Telnet Commands for a Thomson Router
service system ifdelete name=PING_RESPONDER group=wan Remove WAN from "interface group" (ie
disabled) -- Default
saveall Don't forget this!
Command Comments
wireless ifconfig Show wireless settings (optional)
wireless ifconfig interop=802.11b/g Disable wireless n
saveall Don't forget this!
Command Comments
wireless ifconfig interop=802.11b/g/n Enable wireless b, g and n -- Default
saveall Don't forget this!
Command Comments
wireless radio interop=802.11b/g Disable wireless n
saveall Don't forget this!
Command Comments
wireless radio interop=802.11b/g/n Enable wireless b, g and n -- Default
saveall Don't forget this!
Command Comments
wireless radio channelwidth=20 sgi=enabled Wireless Speed 144(n)
wireless radio channelwidth=20/40 sgi=disabled Wireless Speed 270(n)
wireless radio channelwidth=20/40 sgi=enabled Wireless Speed 300(n)
wireless radio channelwidth=20 sgi=disabled Wireless Speed 130(n) Default
saveall Don't forget this!
When in 270(n) or 300(n) mode the router is not very good at switching off the extra channels when not needed or when it may
cause interference to other wireless access points.
For this reason please use these modes responsibly.
Commands Comments
enabled = reduce dead spots in the wireless coverage
wireless radio cdd=enabled
disabled = default
https://lehollandaisvolant.net/tout/_misc/telnet/ 7/16
1/12/2019 Telnet Commands for a Thomson Router
Command Comments
ip iflist Show present setting (optional)
See note (1) regarding "intf=Internet" -- Set
ip ifconfig intf=Internet mtu=1458
MTU for WAN
ip ifconfig intf=LocalNetwork mtu=1458 Set MTU for LAN
saveall Don't forget this!
Command Comments
See note (1) regarding "intf=Internet" -- Set 1500
ip ifconfig intf=Internet mtu=1500
MTU for WAN
ip ifconfig intf=LocalNetwork mtu=1500 Set 1500 MTU for LAN
saveall Don't forget this!
Command Comments
Disable ethernet port 1. ( ethif1 = port 1, ethif2 =
eth device ifconfig intf=ethif1 state=disabled
port 2 etc )
saveall Don't forget this!
eth device iflist List state of ports (optional)
Command Comments
Enable ethernet port 1. ( ethif1 = port 1, ethif2 =
eth device ifconfig intf=ethif1 state=enabled
port 2 etc )
saveall Don't forget this!
saveall
Command Comments
Look in the "Flags" column,
hostmgr list
"C" indicates connected
Command Comments
The WPS button should now
wireless wps config state=enabled
work
saveall
Command Comments
syslog msgbuf show View router log in the telnet window.
syslog msgbuf send dest=192.168.1.67 Send all the log to syslog client at IP address
syslog msgbuf flush Clear the log
ftp://ftp.3com.com/pub/utilbin/win32/3CSyslog.zip
Free syslog client from 3Com
Link now dead, a google search will find a suitable syslog client.
syslog config activate=enabled Enable continuous update to a syslog client.
Rule to send all the log items to syslog client at
syslog ruleadd fac=all sev=debug dest=192.168.1.67
192.168.1.67
https://lehollandaisvolant.net/tout/_misc/telnet/ 9/16
1/12/2019 Telnet Commands for a Thomson Router
Command Comments
View the pool name and MAC address of the
dhcp server lease list
connected device
First delete the device.
dhcp server lease delete clientid=00:23:4d:xx:xx:xx
clientid = [the MAC address found above]
clientid = [the MAC address found above]
pool = [the pool name found above]
dhcp server lease add clientid=00:23:4d:xx:xx:xx pool=LAN_private
addr = [the lan IP you wish to assign - range
addr=192.168.1.100 leasetime=0
192.168.1.65 to 252]
leasetime=0 [infinite lease time]
saveall Don't forget this.
Reboot the device to obtain the new IP address
Caution -- If you forget the username or password you will be locked out of the router permanently.
Be very sure you know the risks before using this command.
Command
system config resetbutton=disabled
saveall
Command
system config resetbutton=enabled
saveall
Command
connection unbind application=SIP port=5060
saveall
Undo -- Default
Command
connection bind application=SIP port=5060
saveall
Disable Intrusion Detection (IDS) May help with online game problems but reduces security.
Command
ids config state=disabled
saveall
Undo
https://lehollandaisvolant.net/tout/_misc/telnet/ 10/16
1/12/2019 Telnet Commands for a Thomson Router
Command
ids config state=enabled
saveall
Command Comments
pwr config Optional - view state
pwr config cpu-lowspeed=disabled Disable slow speed CPU
saveall Make permanent
Undo -- default
Command Comments
pwr config cpu-lowspeed=enabled Enable slow speed CPU
saveall Make permanent
Note:
There are reports that having these power settings enabled can cause intermittent network and internet access problems.
Disabling all of these settings followed by a router reboot cured the problem.
Awaiting more information on this issue.
Command
connection bind application=CONE(UDP) port=3544
saveall
https://lehollandaisvolant.net/tout/_misc/telnet/ 11/16
1/12/2019 Telnet Commands for a Thomson Router
Command Comments
Enable address based
dsd config state=enabled
filtering.
dsd syslog config syslog=all Select what to log
saveall Make the change permanent.
Use this command to view
the log.
dsd syslog list Alternatively use a syslog
client as show in the syslog
commands above.
syslog msgbuf flush Empty the log. -- Optional
This may quickly fill the routers memory and cause unexpected issues.
Undo
Command Comments
dsd syslog config syslog=none
dsd config state=disabled
saveall
Command Comments
sntp list List the time servers
Add a time server.
sntp add name=2.uk.pool.ntp.org This can be done in the
routers GUI
Delete a time server.
sntp delete name=2.uk.pool.ntp.org This can be done in the
routers GUI
sntp config poll=360 Set poll interval to 6 hours.
saveall Default is 60 minutes.
system settime View system time settings
Unbind the FTP ALG -- Fix access problem to a local FTP server from the internet.
Normal port forward rules are still required.
Command Comments
connection bindlist Optional - view the bind list
connection unbind application=FTP
Unbind the FTP helper
port=21
connection bindlist Optional - view the bind list
saveall Make permanent
Undo
Command Comments
Bind the FTP helper to port
connection bind application=FTP port=21
21
https://lehollandaisvolant.net/tout/_misc/telnet/ 12/16
1/12/2019 Telnet Commands for a Thomson Router
DLNA Server (Media Sharing) Not Discovered Across LAN / WLAN. SOLVED This issue is present in
firmware 8.2.7.7 Don't know about other firmware versions.
Command Comments
View present state.
eth bridge igmpsnooping config If state=enabled then apply
the fix
eth bridge igmpsnooping config
Apply fix
brname=bridge state=disabled
saveall Make permanent
Command Comments
system qual led value=alloff Turn all LED's off
saveall Make permanent
Command Comments
system qual led value=unlock Enable LED's
saveall Make permanent
Command Comment
system locale Display present settings
system locale dec_symbol=. Assign the decimal point
system locale group_symbol=, Assign the comma
saveall Make permanent
No Auto Retrain
Prevent reconnecting after dropping the ADSL connection
Commands Comments
xdsl qual freeze-showtime state=enabled Stop reconnecting
saveall Make permanent
Undo
Commands Comments
xdsl qual freeze-showtime state=disable Default
https://lehollandaisvolant.net/tout/_misc/telnet/ 13/16
1/12/2019 Telnet Commands for a Thomson Router
Commands Comments
eth switch shaper iflist Use anytime to view shaper settings
eth switch shaper ifconfig port=1 ingress=disabled shaper=0 Ethernet port 1
state=enabled speed=384000 burstsize=16 Egress speed 384000 bps
eth switch shaper ifconfig port=1 ingress=enabled shaper=0 Ethernet port 1
state=enabled speed=768000 burstsize=16 Ingress speed 768000 bps
eth switch shaper config shaper=0 unicast=enabled multicast=enabled
Configure shaper 0 to throttle on ingress, not
broadcast=enabled control=disabled unknown=enabled
needed for egress
discard=disabled normalize=disabled exclude_ipg=disabled
saveall Make permanent
Change the port and speed to suit your requirements.
Speed automatically notches in steps of 64Kbps.
Note (1) :
The "intf=Internet" part of the above commands may need to be changed depending on the routers firmware.
ie "intf=Internet" should be correct for standard firmware.
O2 supplied routers may need "intf=Internet" replacing with :-
For O2 supplied routers on a LLU connections replace with "intf=O2_ADSL2plus" or in some cases
"intf=RoutedEthoA"
For O2 supplied routers on the Access service replace with "intf=O2_ADSL"
Hint - You can check which one to use for the WAN interface by looking at the results from the "dns server route list"
command.
See the screen capture below, in this case it's "intf=O2_ADSL2plus".
Note (2)
To close the telnet session type -- exit -- press "enter"
https://lehollandaisvolant.net/tout/_misc/telnet/ 14/16
1/12/2019 Telnet Commands for a Thomson Router
Reference
CLI Reference Guide TG857n v2 r8.4.3
This reference guide also shows all the hidden commands.
Source Produced by Alex at www.modem-help.co.uk
Multiple SSID
Telnet scripting
Enable WDS
Fix a problem with VPN (IPSec) Connections (Firmware Release 8.4.3 only)
Home Page
https://lehollandaisvolant.net/tout/_misc/telnet/ 15/16
1/12/2019 Telnet Commands for a Thomson Router
https://lehollandaisvolant.net/tout/_misc/telnet/ 16/16