(3 URLs to follow in case they get filtered) Setting the Disconnect Character: http://www.cisco.com/univercd/cc/td/doc/product/software/ssr83/tsc_r/54004.h tm#xtocid916279 Requires first to hit the Escape Character (default is CTRL+^) http://www.cisco.com/univercd/cc/td/doc/product/software/ssr83/tsc_r/54004.h tm#xtocid916277 Character map for reference: http://cisco.com/univercd/cc/td/doc/product/software/ssr90/tsc_r90/4271.htm Ok, so I've tried this on tty and vty lines, and it just doesn't seem to work. I've tested by setting a number of different disconnect characters (CTRL+D (dec 4) seemed a good choice). I can hit CTRL+D and it appears on the screen as ^D, and it stores it as a "disconnect-character 4" which matches my character map. Still, just doesn't work when I hit CTRL+^ followed by CTRL+D. Ok, finally got it to work, but it's not better than what is already available with CTRL+^,x and disconnect 1: If I telnet to my terminal server (tcp/23), then hit r6 (ip host alias for line 6 on tcp/2006), and then hit: CTRL+^ CTRL+^ CTRL+D it drops my entire session (kills my telnet to the terminal server, which also kills the r6 reverse telnet). If I telnet directly to line 6 (tcp/2006) it doesn't work. Ok, and I've found out why: I had disconnect-character 4 set on both my line vty 0 4 and line 6 (just for testing). When I removed it from line vty 0 4, it no longer works when I do a telnet and then reverse telnet to r6 on the terminal server. This was with a CS-516 running 9.1(9). I experimented further with a 4500 that I was consoling into running 11.3(11b). When I set character-disconnect 126 (DEL) on line con 0 (which makes a "~" character on the screen), and then did a reverse telnet out of this boxes line aux 0, if I hit CTRL+^ DEL then my console session was disconnected (as if I'd hit quit on the 4500 console). I tried the same command on the line vty 0 4 and line aux 0 and it would not do it for the reverse side. So it appears the disconnect-character only affects the INCOMING line to the router/terminal server (and then only if you're connected out to something else, not just sitting at EXEC mode), not the outgoing line. This doesn't work if you telnet directly to the line port (2001, etc.), but only if you first connect to the router (CON, VTY) and then reverse-telnet out. -- Jason Roysdon, CCNP+Security/CCDP, MCSE, CNA, Network+, A+ List email: [EMAIL PROTECTED] Homepage: http://jason.artoo.net/ -----Original Message----- From: Frank Kim [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 9:37 AM To: Jason Roysdon Subject: RE: CLARIFICATION: 2511 with reverse-telnet [7:5686] jason, i'm just trying to find out the 'impossible'. what's bugging me is that under the line configuration, there is a 'disconnect-character': conf t line 1 disconnect-character 27 Now, that 27 decimal is equivalent to a Control-[ in ascii. What do you think that is use for ? -Frank On Fri, 25 May 2001, Jason Roysdon wrote: > Why not look at it as a connection to any telnet device for which you have > no exit/quit command. Essentially, that's what you've got. There is no > global "disconnect" command to tell the remote host, you've just got to > disconnect your end. > > -----Original Message----- > From: Frank Kim [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 25, 2001 9:23 AM > To: Jason Roysdon > Subject: RE: CLARIFICATION: 2511 with reverse-telnet [7:5686] > > > The question arises from a logical sense. If you are able to establish a > a tcp session to a 2511, then you need to have some capabilities to > terminate such session while being in that active session. It's like if > you walk into a room but when you want to talk out, there is no way for > you to get out, unless you break the walls apart. Just tryin to see some > logic here. > > -Frank > > > On Fri, 25 May 2001, Jason Roysdon wrote: > > > Do it in two hops. Hit the terminal server and then have an short "ip > host" > > statement to jump you to the end device (or use the menu command). Then > you > > do have CTRL+^ and disconnection 1 followed by quit. > > > > Can you explain why a keystroke is easier than just hitting the "X" to > close > > the telnet app or using the disconnect option? What you really need to do > > is just have a local macro set up (so say you hit CTRL+D), that executes > an > > ALT+F,D to disconnect you. > > > > -----Original Message----- > > From: Frank Kim [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 25, 2001 12:55 AM > > To: Jason Roysdon > > Subject: Re: CLARIFICATION: 2511 with reverse-telnet [7:5686] > > > > > > Jason, > > My goal is to terminate the session without hitting the 'disconnect' > > button on the telnet application or closing. No clear line x on the > > terminal server too. Also, I think SSHv1 only supports on higher end > > routers. You cannot find an ios that supports ssh on 25xx nor 4x000 > > series. Let me know if you can find away to terminate a telnet session > > thru a terminal server. Thanks. > > > > -Frank > > > > On Thu, 24 May 2001, Jason Roysdon wrote: > > > > > Real simple: get a real telnet client that has a disconnect option > > (teraterm > > > is free and works great). As soon as the 2511 sees the telnet session > > close > > > it will drop the reverse telnet line out to the 2501 (you can very by > show > > > line on the 2501 to verify it's not in use). > > > > > > Teraterm also supports serial connections (and can send break unlike the > > > default NT4 Hyperterminal). There is also an SSHv1 add-on for > connecting > > to > > > Cisco gear (Cisco only uses SSHv1 so far). > > > > > > http://hp.vector.co.jp/authors/VA002416/teraterm.html > > > > > > > > > > > > -- > > > Jason Roysdon, CCNP+Security/CCDP, MCSE, CNA, Network+, A+ > > > List email: [EMAIL PROTECTED] > > > Homepage: http://jason.artoo.net/ > > > > > > > > > > > > ""Frank Kim"" wrote in message > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > Let's make it simple. Let's ignore the factor that there is a 2501 > > > > attached to a 2511's line 1. Just plain simple. You have: > > > > > > > > 1) 2511 router with e0 = 192.168.1.1/24 > > > > 2) an NT box with ip address of 192.168.1.2/24 > > > > > > > > Assuming that you have configured line 1 on the 2511 with transport > > input > > > > all and the rest. You sit on your NT box and u telnet to 192.168.1.1 > > > > 2001. Now you want to kill that telnet session. How will you do it > > > > without closing the telnet application n or hitting a disconnect on > the > > > > telnet application nor getting into the 2511 and do a clear line 1. > > Hope > > > > you know where I'm getting at. > > > > > > > > > > > > -Frank > > > > > > > > > > > > On Thu, 24 May 2001, Erick B. wrote: > > > > > > > > > Your telnet session is terminated at the 2511 but the > > > > > 2511 redirects you out line 1 directly, so your not > > > > > getting a console/terminal session from the 2511. If > > > > > you telnet to the 2511 then out line 1, then your > > > > > using the 2511 as a console/terminal session so it > > > > > behaves differently. This is the way I understand it > > > > > and best I can explain it. > > > > > > > > > > --- Frank Kim wrote: > > > > > > Erick, > > > > > > When you telnet into a 2511's ethernet address via > > > > > > port 2001 which as the > > > > > > 2501 attached to it, you are actually on the console > > > > > > of the > > > > > > 2501. Pressing exit, logout, or quit at that poing > > > > > > does not terminate > > > > > > your tcp session to the 2511 but it only bring you > > > > > > to the "Press RETURN to > > > > > > get started." screen of the 2501. I want to be able > > > > > > to terminate the tcp > > > > > > session to the 2511 without closing the telnet > > > > > > application. > > > > > > > > > > > > -Frank > > > > > > > > > > > > > > > > > > On Thu, 24 May > > > > > > 2001, Erick B. wrote: > > > > > > > > > > > > > I sent a reply to this earlier. This is a > > > > > > > telnet-client issue (your windows telnet client). > > > > > > The > > > > > > > windows telnet client has a disconnect option that > > > > > > > will disconnect the session and keep the telnet > > > > > > window > > > > > > > open, or you can click on the X or alt-f4 the > > > > > > window. > > > > > > > You can also do 'logout' on router which should > > > > > > > disconnect it. > > > > > > > > > > > > > > If you are looking to suspend and resume your > > > > > > telnet > > > > > > > session, then the windows client will not do this. > > > > > > You > > > > > > > will have to open multiple telnet windows, or > > > > > > telnet > > > > > > > into the 2511 and reverse telnet from there. When > > > > > > > you're telneting from the 2511 the 2511 lets you > > > > > > > suspend/resume session by using the escape > > > > > > sequence. > > > > > > > > > > > > > > If you're looking for a control-] style > > > > > > suspend/resume > > > > > > > which is common in unix platforms then you'll have > > > > > > to > > > > > > > look around for a unix-like telnet client for > > > > > > windows > > > > > > > that has that functionality. > > > > > > > > > > > > > > Ie: > > > > > > > > > > > > > > I telnet'd to a cisco router from a unix box, and > > > > > > hit > > > > > > > control-] and got this: > > > > > > > > > > > > > > telnet> ? > > > > > > > Commands may be abbreviated. Commands are: > > > > > > > > > > > > > > close close current connection > > > > > > > display display operating parameters > > > > > > > mode try to enter line or character > > > > > > mode > > > > > > > ('mode ?' for more) > > > > > > > open connect to a site > > > > > > > quit exit telnet > > > > > > > send transmit special characters ('send > > > > > > ?' > > > > > > > for more) > > > > > > > set set operating parameters ('set ?' > > > > > > for > > > > > > > more) > > > > > > > unset unset operating parameters ('unset > > > > > > ?' > > > > > > > for more) > > > > > > > status print status information > > > > > > > toggle toggle operating parameters > > > > > > ('toggle > > > > > > > ?' for more) > > > > > > > slc change state of special charaters > > > > > > > ('slc ?' for more) > > > > > > > ! run a TI command > > > > > > > environ change environment variables > > > > > > ('environ > > > > > > > ?' for more) > > > > > > > ? print help information > > > > > > > telnet> > > > > > > > > > > > > > > Erick > > > > > > > > > > > > > > --- Frank Kim wrote: > > > > > > > > Phil, > > > > > > > > Yes you have misunderstood once again. Let me > > > > > > > > clarify. I sit on an NT > > > > > > > > box. I use my mouse to click on start, then > > > > > > run, > > > > > > > > then i type in: telnet > > > > > > > > 192.168.1.1 2001 which brings me straight to the > > > > > > > > console of my 2501. Even > > > > > > > > I am accessing my 2501 via a TCP session over > > > > > > the > > > > > > > > 2511, but it looks as if > > > > > > > > the 2511 isn't there. Therefore, you can not > > > > > > use > > > > > > > > alias or type exit to > > > > > > > > get out of that session. Because whatever > > > > > > > > 'character' you input into the > > > > > > > > screen is for the 2501's console, not the 2511. > > > > > > So > > > > > > > > again, if a user has > > > > > > > > made a telnet session to 192.168.1.1 2001, how > > > > > > can > > > > > > > > he exit out of that > > > > > > > > telnet session WITHOUT having to 'close' the > > > > > > telnet > > > > > > > > application? Once > > > > > > > > again, the 'exit' command nor the ctrl-shift-6 x > > > > > > > > cannot be applied in this > > > > > > > > case. Let me know if I'm still confusing you. > > > > > > > > > > > > > > > > -Frank > > > > > > > > > > > > > > > > > > > > > > > > On Thu, 24 May 2001, Circusnuts wrote: > > > > > > > > > > > > > > > > > OK- you have NT client (Telnet)--2511-- > > > > > > > > async--2501. You have opened a > > > > > > > > > session with the 2511, to access the 2501 via > > > > > > > > async line 2001 (through the > > > > > > > > > first physical port on your octal cable). > > > > > > Your > > > > > > > > commands in the 2511 > > > > > > > > (Telnet > > > > > > > > > Hyper Term Window) only effect your > > > > > > relationship > > > > > > > > with the 2511/2501 or > > > > > > > > > direct configurations to the 2511. An Alias > > > > > > only > > > > > > > > gives you a custom > > > > > > > > > shortcut command, that you dictate (ex: Show > > > > > > IP > > > > > > > > BGP Neighbors might be made > > > > > > > > > to work as SIBN). The best way to exit the > > > > > > 2511 > > > > > > > > Telnet (& leave the 2511 > > > > > > > > > connection up) is to simply close your Telnet > > > > > > > > window. You can shortcut the > > > > > > > > > exit statement, maybe an Alias of "E." > > > > > > > > > > > > > > > > > > Have I misconstrued ??? > > > > > > > > > Phil > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > From: Frank Kim > > > > > > > > > To: > > > > > > > > > Sent: Thursday, May 24, 2001 1:51 AM > > > > > > > > > Subject: CLARIFICATION: 2511 with > > > > > > reverse-telnet > > > > > > > > [7:5686] > > > > > > > > > > > > > > > > > > > > > > > > > > > > Okay guys. I am really sorry for the waste > > > > > > of > > > > > > > > bandwidth. But so far, I > > > > > > > > > > think I have been misunderstood. Here is > > > > > > what I > > > > > > > > got: > > > > > > > > > > > > > > > > > > > > 1) 2511 with e0 = 192.168.1.1/24 > > > > > > > > > > 2) one 2501, console's port is attached to > > > > > > line > > > > > > > > 1 of 2511 > > > > > > > > > > 3) one NT box with ip of 192.168.1.2/24 > > > > > > > > > > > > > > > > > > > > I sit on my NT box and I initiate a telnet > > > > > > to > > > > > > > > 192.168.1.1 using port > > > > > > > > > > 2001. Remember, I am not doing it from a > > > > > > > > router. So ctrl-shift-6 x will > > > > > > > > > > not suspend my session. What I would like > > > > > > to do > > > > > > > > is to be able to exit > > > > > > > > > > from the telnet session by typing a > > > > > > keystroke > > > > > > > > such as control-] or > > > > > > > > > > so. And one more thing, typing 'exit' does > > > > > > not > > > > > > > > work. > > > > > > > > > > > > > > > > > > > > I apologize for all misunderstanding. > > > > > > Thanks > > > > > > > > for any help. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=5936&t=5936 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]