Tips for Windows Users

From X-Wrt

Jump to: navigation, search

Windows users can install two programs that will help with the configuration and administration of our routers.

These programs are PuTTY and winSCP

Contents

Setting Up boot_wait

Before using tftp to flash your router, boot_wait must be set.

If the root password is assigned, use PuTTY, else use telnet to get access to console of router and write the following lines

nvram set boot_wait=on
nvram set wait_time=30
nvram commit

Flash router with tftp from Windows

Download the appropriate image for your router to C:\firmware or to a directory of your choice.

With your Windows Box plugged into the router's lan port

Open Command line of Windows

To verify if you have a good IP settings write in the following command line

ping 192.168.1.1 

you will get something like this

Image:ping_screen.PNG


In the command line write...

cd \firmware

( or in the directory where you saved the image for your router )

and press enter

then write...

tftp -i 192.168.1.1 put image_name.bin

Do not press enter until you have unplugged and replugged the power for your router.

You will get a screen like this...

Image:Tftp_screen.jpg

Your router should now have new firmware, just wait until all processes are done and do not unplug the power.

telnet

Open Command line on Windows and type telnet 192.168.1.1

PuTTY

Installing PuTTY

After changing password of root, telnet is disabled, to have access to the console of our router we must use an emulator of terminal like PuTTY.

PuTTY is a free implementation of Telnet and SSH for Win32 and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham.

Download PuTTY

Using PuTTY

Once installed PuTTY run it and in Host Name(or IP address) write 192.168.1.1

Image:PuTTY.jpg

Press Open button. You will see a Warning Dialog Box, press Yes

Image:PuTTY_Warning.jpg

Write root for login as: and press enter. For root@192.168.1.1's password: write your password.

Image:PuTTY_OpenWrt_console.jpg

Now you are ready to write commands.

WinSCP

Installing WinSCP

WinSCP is an open source free SFTP client and FTP client for Windows. Legacy SCP protocol is also supported. Its main function is the safe copying of files between a local and a remote computer.

Download winSCP install it

Using WinSCP

Write 192.168.1.1 in Host name, root like User name and password of your router

Select SCP in File protocol

Press Login button.

Image:winSCP_Login.PNG

First time you login you will get a warning about a certificate of unknown host, accept this

After this you will see two errors...

Image:winSCP_Group_error.PNG

Image:winSCP_dir_error.PNG

Press Ok to both and you get Image:winSCP_root.PNG

You are now ready to browse and edit files on your router.

Open Command line on Windows

I don't remember in older windows, but in XP and Vista the client tftp is installed and can be used from the command line.

The easy way to open the command line in window, and similar for XP and Vista is open Run windows and write cmd

Image:XP_Start_Menu_Run.gif

Image:Vista_Start_Menu_Run.jpg

If your Windows doesn't have the Run command, yow can restore the RUN command follow this howto. This is for Windows Vista but in XP it is the same.

Image:XP_Run_Dialogbox.jpg

Image:vista_run.png

Press enter and you get windows like this

Image:command_line.PNG

You are now ready to write commands

Personal tools