How to use the DSL-50X Command Line Interface (CLI)

This section will detail tips and traps for people who choose to use the CLI. The CLI has a number of advantages over the web interface: it is much more powerful and does not suffer from some of the limitations imposed by the web interface (eg the number of ports which can be forwarded is limited when using the web interafce, but not when using the CLI).

The web interface also hides multiple operations under a single form submission (mainly for users who do not want/need to know what is really happening behind the scenes :-). Beware that you do not assume that operations using the web interface are the same when using the CLI.

The CLI operates almost identically whether you are accessing it via the serial console port using your favourite terminal program set to 9600 baud, 8 bit data word, 1 stop bit, no parity and hardware (CTS/RTS) handshaking or via telnet. Some result messages are not displayed in telnet mode (they are still displayed, but to the serial console).

Saving the router configuration permanently

Adding port forwarding (NAT) rules

Adding routes to the routing table

Reading the event log

The post-T8 versions of the firmware for the DSL-500 and DSL-504 record various events to a log file. The log looks like this:

[FIREWALL]2003/02/19 22:50:33-Chrismas:TCP_CHRISMAS,source:216.239.51.119
[FIREWALL]2003/02/19 23:14:38-Chrismas:TCP_CHRISMAS,source:216.239.33.101
[FIREWALL]2003/02/19 23:35:22-Chrismas:TCP_CHRISMAS,source:128.148.185.4
[BUN]2003/02/20 00:31:33-Chrismas:TCP_CHRISMAS,source:128.148.185.4
[PPP]2003/02/20 00:31:35-Connect:PPP Stop
[BUN]2003/02/20 00:32:01-Link:ADSL Link Up
[PPP]2003/02/20 00:32:05-Connect:PPP LCP reaches open state
[PPP]2003/02/20 00:32:05-Auth:PPP Start CHAP authentication
[PPP]2003/02/20 00:32:07-Connect:PPP IPCP reaches open state

There are several ways to read the log:

  1. Use the router's TFTP client to transfer the eventlog file from the router to your PC running a TFTP server;
  2. Use the serial console: log > view or isfs > cat eventlog;
  3. Use telnet: isfs > cat eventlog;
  4. Use my DSL-50X utility to retrieve it for you every 1/3/6/12/24 hours or manually on demand.

Back to the Info Dump


All queries to: Trev  
Copyright © 2003, Trevor B Roydhouse