Women in Technology

Hear us Roar

  Learning the Terminal in Jaguar, Part 1
Subject:   Using Terminal in Jag to help update router firmware
Date:   2002-12-16 12:25:50
From:   anonymous2
The manufacturer of my DSL/Cable router wants to update the router's firmware remotely and wants me to do the following: "first use terminal program on your MAC , telnet into your router, enable the WEB management function in your router. Then we remotely update the firmware for your router." I have not used the terminal program in my Jaguar operating system, so I really don't know how to accomplish what they are asking me to do. Can someone please help.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Using Terminal in Jag to help update router firmware
    2002-12-21 05:48:08  maniabug [View]

    You need to make sure first that your Mac and the router are on the same IP network, since telnet is a TCP/IP protocol (for what it's worth, telnet typically operates on TCP port 23). Your router's documentation should say what its default IP address is. If you set up for DHCP and get an address other than 169.254.x.x you should be ok.

    The command in terminal is simply "telnet". Your command line should look something like:

    [athena:~] jason% telnet

    then press return to send the command to the shell, which will invoke the telnet command and pass the single argument (the IP address) to it. telnet is engineered to interperet that argument to be the host you want to connect to, so it tries a connection. if the connection is successful, and the host at that IP address is listening for telnet connections, you'll be prompted to authenticate.

    Once you authenticate, you'll be presented with the router's text-based user interface. it may be rudimentary menus that let you explore the options using arrows, enter, and escape. Or it may be just another prompt expecting you to know commands to use. In the latter case, it's probably best to hit the manufacturer's web site for a PDF explaining how to use the router's command line interface; they vary and there's no one consistent syntax. If you're lost, try typing help or ? at the prompt. The basic structure of commands will probably be the same: you enter the name of a command and the router responds appopriately; commands may require arguments to give the router something to work with.

    Once you're done, use the router's exit command (or equivalent) to end the session gracefully. This will normally also end your telnet session too and give you your Mac OS X terminal prompt. Noting how your prompt changes as you use interactive programs like telnet will help you keep track of where you are as you use the terminal.

    If you don't get a response when trying to connect, or need to get out of telnet because it keeps prompting for a password you don't know, you can make telnet give up the connection attempt by typing ctrl-]. Hold down the control key and press ]. The prompt then shows that you're still in the telnet program. To get back to your shell, type quit. If you're curious what other commands you can type at that telnet prompt, type help instead:

    telnet> help
    Commands may be abbreviated. Commands are:
    close close current connection
    logout forcibly logout remote user and close the connection
    display display operating parameters
    mode try to enter line or character mode ('mode ?' for more)

    Hope this helps. -- Jason