It is currently Sat Feb 04, 2012 2:38 am


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Howto Fix Putty in Console ( putty opens and closes )
PostPosted: Sun May 03, 2009 4:42 am 
Hi,

Its 5:26 AM lol... after 6+ hours NONE stop research on how to fix putty on GNS3 as it was opening and closing after a few second.. and couldnt find a SINGLE article ANYWHERE,, i started doing my own research and thinking,

( Teraterm Pro worked fine but putty wasnt, and im a big fan of putty so ... hey :P i got to make it work and be a happy user ) lol

anyway a very simple idea kicked in my head, when i looked at the 'Terminal Command'

C:\Program Files\Putty\putty.exe -telnet %h %p
( C:\Program Files\Putty\putty.exe is my putty directory, you can put it any where i guess )

and for some strainge reasons my pc is getting localhost and 127.0.0.1 not the same, which should be..
and %h is the host ( which will use localhost ) and not 127.0.0.1 ( we want 127.0.0.1 )

so just simply replace %h with 127.0.0.1

C:\Program Files\Putty\putty.exe -telnet 127.0.0.1 %p

And you are good to go... worked for me, but close any other console as it wont abviously open 2 or more at the same time, 1 for each router.

Im using Windows Vista, but it should work for any other windows OS i guess.. I hope it helped you..

P.S i just done another check to see why it wont accept localhost but 127.0.0.1, and on my pc localhost is looking up my ipv6 ip, which i forgot to disable on my wireless, and 127.0.0.1 is looking up my ipv4 which im using now.. ( i checked by pinging, ) you see that localhost will get resolved to a ipv6 sort of thing...


Good Luck,

Putty I love you lol..






Top
  
 
 Post subject: Re: Howto Fix Putty in Console ( putty opens and closes )
PostPosted: Sun May 03, 2009 5:02 am 
Kudos to you Dracula_!

It works...for PuTTy anyway--I had to alter for MY path which is:

C:\Program Files (x86)\PuTTY\putty.exe -telnet 127.0.0.1 %p

but this comes up, responds and I have access...there still seems to be a kink with the 2600s, so I'm running with 36xx now...

I tried securecrt and it did not work, though that's trivial for me at this point--

Again, well done and thank you for your work on this-

You might want to ask the mods to sticky your post as there have been a few posts about this-

covkid-


Top
  
 
 Post subject: Re: Howto Fix Putty in Console ( putty opens and closes )
PostPosted: Sun May 03, 2009 5:24 am 
yes i just registered on this forum just to post this thread lol as i dont think any where on the web has this info..

well another thing that it should make it work, without hacing to change the %h is to disable ipv6 from your network card from networks in control panel,, right click, properties on your wireless adaptor or what ever you are using and remove the tick from ipv6,

I HAVNT tired this,, but im guessing it would work ...

and yes not a bad idea to sticky this..


Top
  
 
 Post subject: Re: Howto Fix Putty in Console ( putty opens and closes )
PostPosted: Tue Aug 04, 2009 8:20 pm 
Thanks Dracula_. Good job
I have been trying endlessly with console windows closes in a sec. I found your post and registered to say you thank you. Putty just worked great for me in GNS3 as per 127.0.0.1 instead for localhost. I guess lot of ppl has this problem in vista. This is the right solution. keep it up dracula_


Top
  
 
 Post subject: Re: Howto Fix Putty in Console ( putty opens and closes )
PostPosted: Wed Aug 05, 2009 6:46 am 
Offline

Joined: Mon Oct 13, 2008 11:26 am
Posts: 817
Location: Finland
Dracula_ wrote:
Hi,

Its 5:26 AM lol... after 6+ hours NONE stop research on how to fix putty on GNS3 as it was opening and closing after a few second.. and couldnt find a SINGLE article ANYWHERE,, i started doing my own research and thinking,

( Teraterm Pro worked fine but putty wasnt, and im a big fan of putty so ... hey :P i got to make it work and be a happy user ) lol

anyway a very simple idea kicked in my head, when i looked at the 'Terminal Command'

C:\Program Files\Putty\putty.exe -telnet %h %p
( C:\Program Files\Putty\putty.exe is my putty directory, you can put it any where i guess )

and for some strainge reasons my pc is getting localhost and 127.0.0.1 not the same, which should be..
and %h is the host ( which will use localhost ) and not 127.0.0.1 ( we want 127.0.0.1 )

so just simply replace %h with 127.0.0.1

C:\Program Files\Putty\putty.exe -telnet 127.0.0.1 %p

And you are good to go... worked for me, but close any other console as it wont abviously open 2 or more at the same time, 1 for each router.

Im using Windows Vista, but it should work for any other windows OS i guess.. I hope it helped you..

P.S i just done another check to see why it wont accept localhost but 127.0.0.1, and on my pc localhost is looking up my ipv6 ip, which i forgot to disable on my wireless, and 127.0.0.1 is looking up my ipv4 which im using now.. ( i checked by pinging, ) you see that localhost will get resolved to a ipv6 sort of thing...


Good Luck,

Putty I love you lol..


Hi,

In windows static DNS entrys is stored in following text file:
Code:
C:\Windows\System32\drivers\etc\hosts


And here is content (Vista):
Code:
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
::1             localhost


It show that 127.0.0.1 (address) is binded to localhost (name) in my case.

It would be nice to see this file in your case.

_________________
Br,
Kaage
Image Image


Top
 Profile  
 
 Post subject: Re: Howto Fix Putty in Console ( putty opens and closes )
PostPosted: Wed Oct 14, 2009 12:52 am 
Alright I give up.!!

Been trying to get putty running but all in vain!

I am hoping one of you gentlemen can help me out here :)

Basically I am new to this GNS3 thing, trying to run a simple lab where I am connecting 3 Routers.
So when i try to start the putty session for R1,works great...perfect..i have full access to my router(7200)
But when i start or try to start the putty session for R2 and R3 ,I get a putty window but doesnt response.It just stays there with 127.0.0.1:Putty written.
I did put the loopback address 127.0.0.1 instead of %h but still running into this issue!

could it be related to the IOS image im running??(i highly doubt cuz putty works fine if i just run it on R1)
So the problem is I cannot run Putty session when I have more than 1 router involved!
FYI...im using 7200 and image : (C7200-IS-M), Version 12.2(7a)
Also using MS Vista Home Edition.


Top
  
 
 Post subject: Re: Howto Fix Putty in Console ( putty opens and closes )
PostPosted: Tue Nov 02, 2010 9:18 pm 
The same problem I have in windows xp at work and in windows 7 at home, my IOS is c3640-i-mz.124-25d.bin






Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO