Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DSL console commands reference 1

Status
Not open for further replies.

davige

MIS
Mar 21, 2002
6
CA
Folks, I've been searching hi & lo for a DSL console reference on its commands. It is very similar to Cisco routers and switches, but was wondering if anyone had a simgular work that addressed a DSL modem's console commands (or, are they proprietary to the actual modem?). I own a D-Link DSL-300i, and plug into the console via serial port to configure the modem. It works fine, but was curious as to the other commands it contains. Any help will be most appreciated.

Regards,

davige
 
OK I solved the problem.

1. The Dlink support is helpless... The only thing they give some support is if you have a problem to have a connection with your isp.

2. They don't want to give the password even if you proof them your isp is not telus (they have a contract for that with telus), and even if you ask the shop where you buy the modem to contact them.

3. The user password are : orion99 orion99
(for the telnet connection you need a user name)

4. For security reasons, change the user password !
-> connect with telnet to the box (or with the console port)
The box's ip is 192.168.1.1 (don't forget to set your pc with an ip in the same range)
Once you have the connection type the command :
account username password
config save
where username is your new username and password your password.
Don't forget to change also the SNMP communities (read and write). I crashed my box while trying to write something in the box with snmp, if I could, someboy malicious could do also...)
Ok here is how to do it :
snmp access flush
snmp access add read community IP_address
snmp access add write community IP_address
config save

If you want to disable snmp just flush the config and config save.
If you need SNMP, use a community of your choice (let me remind that the community is a kind of password, thus don't set something too evident to find !) and limit to one or two IP (not everyone !!)

If you have questions regarding the modem feel free to send me a mail (yhan26@hotmail.com).

I hope this message could help some people.

Thanks to other users for the information they add in this wonderfull forum !
Bye bye






 
In case anyone is interested, I have just managed to shift my D-Link DSL-300G+ off the 192.168.0.x subnet, although I have broken its DHCP service in the process. (The DHCP server is still handing out 192.168.0.x addresses, and I can't see how to change that. I cannot renumber the addresses in the dynamic pool.)

First, use DHCP to get a 192.168.0.x address for your PC's ethernet card. Now telnet into the modem at 192.168.0.1. The default password is "private".

Enter the ip menu by typing:

ip

The modem's local ethernet device is called "ethernet" (funnily enough).

Choose your new IP address and subnet for the modem.

Use the "subnet" and "route" commands to reprogram the subnet and default route for the ethernet device:

route add def2 0.0.0.0 <relay address>
route delete default
route add default 0.0.0.0 <relay address> 00:00:00:00
route delete def2


The <relay address> is just a dummy address on your new subnet.

subnet add newnet ethernet <network> <netmask>
subnet delete ethernet.home
subnet add ethernet.home ethernet <network> <netmask>
subnet delete newnet


Your new <netmask> is a bitmask, e.g. ff:ff:ff:00 or 00:00:00:00

Now we reprogram the interface itself:

enable ethernet mtu 1500 <new address>

Your telnet session will go dead now, of course, so kill it and reconfigure the ethernet interface on your PC with another IP address on your new network and with the new netmask. You should not need to set a default route.

# ifconfig eth0 <another address> netmask <new netmask> broadcast <new broadcast addr>

You should now be able to ping the modem again. If you can't telnet into it then try requesting a new DHCP address from it anyway, or accessing the web console. One of these actions seems to &quot;prod&quot; it into offering the telnet service again on the new interface.

Once you've reconnected via telnet (and so proved that your new config WORKS - very important!), type

config save
restart


to save your new settings and reboot your modem. After a few seconds, your modem should come up with the new IP address and subnet.

You're done! You can't request an automatic local IP address for the web console any more, but at least the modem can sit happily on your LAN alongside your &quot;other&quot; 192.168.0.x network.

Chris
 
Hi Sivart,

i have had the same problem with my firmware screwing up when upgrading. my power and adsl lights are stuck and if i use the serial cable to connect I only get the following -

NBfs2
Helium PP Boot 7.0.0.7 (C2 23 Feb 2001)
Copyright (c) 2000.
SDRAM size = 0x800000
NPn
*** INCOMPATIBLE PP CODE AND NP CODE!
*** SHARED STRUCTURE VERSIONS: PP 29, NP 37
*** SHARED STRUCTURE SIZES: PP 552, NP 600
*** CHECK CONSISTENCY OF PP AND NP IMAGES

<<< atmos_exit >>>
Press 'R' to reboot

Anyone know how I can reinstall firmware from here or is it a lost cause?

Mark.
 
I've noticed if you press spacebar when turning on and off the modem you get a console screen. If I type help it gives me -

]help
Commands to the console are:
configeeprom display EEPROM configuration informationemergency FLASHFS
configflash display FLASH configuration informatione configuration information
copyimages {yes | no} copy network booted image files list environment variables
flashfs {auto | emergency} use automatic se
force boot from emergency FLASHFS
serialboot no
initialise initialise configuration information setenv <key> <value> set environment variable
listenv list environment variables<key> unset environment variable
mac <address> set MAC addresse following boot modes are supported by serial EEPR
serialboot yes boot from EEPROM
serialboot
serialboot no boot from FLASHet or USB
setenv <key> <value> set environment variablehernet boot via EEPROM from Ethernet only
unsetenv <key> unset environment variable serialboot usb boot via EEPROM from USB o
serialboot {yes | auto} boot via EEPROM, auto-select Ethernet or USB enter an image
erw <wrdaddress>

serialboot no boot from FLASH
dw <address> [<length>] dump words (hex/ascii)
enter <address> enter an image
erw <wrdaddress> read a single word from EEPROM
eww <wrdaddress> <value> write a single word to EEPROM
fdw <address> [<length>] dump flash words (hex/ascii)
help print this text
quit leave the console
rw <address> read a single word
why reason for console entry
ww <address> <value> write a single word
 
hey all, another dsl-300i question, i cant seem to understand how the setup works, my isp gives me a static ip address, what i want to do is have my modem use that address, and then hand out dhcp addresses over the lan, some might say that getting a router would be less of a hassle, i would tend to agree, but this wouldnt cost nothing to do if it is possible, i look forward to a reply thanks alot
 
hello ppl, i have a problem no one has been able to help i hope you guys can, i have an DSL-300G+ ADSL Modem, while changing the password through telnet, when i did the config save command, while doing that it crashed, from then the modem has stopped responding i have not been able to access the web menu through browser any more, modem flash utility does not detect it, and i tried hitting the reset button but nothing happens, when i on it only the power light stays on, nothing else flashes, is this the end or is there a way to save the modem?

plz help, thx!
 
STOP THIS THREAD!! A 2-year old thread with 45 messages is quite enough. START A NEW ONE WITH A NEW QUESTION!!

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top