RE: Login-String from router to aniother Device

From: Brian Dennis (bdennis@internetworkexpert.com)
Date: Tue Jan 10 2006 - 01:37:56 GMT-3


The problem is that the login-string appears to be sent before you can
enter the username and/or password. This means that you'll need to add
it in your login information to the login-string itself. See example
below:

Rack1R1#wr t
Building configuration...

Current configuration : 1066 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Rack1R1
!
logging queue-limit 100
enable password cisco
!
ip subnet-zero
!
!
no ip domain lookup
ip host TEST 150.1.1.1
!
!
!
interface Loopback0
 ip address 150.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 161.1.10.1 255.255.255.0
 duplex auto
 speed auto
!
ip http server
ip classless
!
!
!
login-string TEST ^C
cisco
term len 0
sho ver
^C
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
!
end

Rack1R1# telnet test
Trying TEST (150.1.1.1)... Open

User Access Verification

Password:
Password:
Rack1R1>term len 0
Rack1R1>sho ver
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-JS-M), Version 12.2(15)T16, RELEASE
SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Tue 19-Apr-05 12:23 by ssearch
Image text-base: 0x80008098, data-base: 0x81D1B5FC

ROM: System Bootstrap, Version 12.2(10r)1, RELEASE SOFTWARE (fc1)
ROM: C2600 Software (C2600-JS-M), Version 12.2(15)T16, RELEASE SOFTWARE
(fc2)

Rack1R1 uptime is 4 hours, 44 minutes
System returned to ROM by reload
System image file is "flash:c2600-js-mz.122-15.T16.bin"

cisco 2620 (MPC860) processor (revision 0x102) with 61440K/4096K bytes
of memory.
Processor board ID JAD04430GE7 (2143954775)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
SuperLAT software (copyright 1990 by Meridian Technology Corp).
TN3270 Emulation software.
1 FastEthernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
32K bytes of non-volatile configuration memory.
32768K bytes of processor board System flash (Read/Write)

Configuration register is 0x2102

Rack1R1>

You could also disable the need to login by using the "no login" option
under the VTY lines.

HTH,

Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
bdennis@internetworkexpert.com
 
Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987
Direct: 775-745-6404 (Outside the US and Canada)

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Schulz, Dave
Sent: Monday, January 09, 2006 6:38 PM
To: John Hooper ; nobody@groupstudy.com; ccielab@groupstudy.com
Subject: RE: Login-String from router to aniother Device

I have checked this one out, since these are of interest to me. I can't
get
it to work properly either, since the documentation on DocCD is not very
well
written. However, this section may help on the break command.....

With the login-string commands options, you can set a pause, prevent a
user
from issuing commands during a pause, send a Break character, and use a
percent sign (%) in the login string. The busy-message command and
login-string command are only useful with two-step protocol translation
sessions. For more information about protocol translation, see the
chapter
"Configuring Protocol Translation and Virtual Asynchronous Devices" in
this
publication.

Dave

-----Original Message-----
From: nobody@groupstudy.com
To: ccielab@groupstudy.com
Sent: 1/9/2006 1:03 AM
Subject: Login-String from router to aniother Device

G'Day Everyone,
                        I have been messing around with the login-string
command but I must be missing something with its configuration. From
what I
have read it is for defining a host to connect to and once connecting to
that
host via rlogin or telnet it will issue a login-script. Please correct
me if
I'm wrong ! Now additionally I want to add an ASCII escape character to
this
login-string. I do remember reading how you can add special characters
etc but
for the life of me I cannot remember where I read that information from.
What
I have done was define a host to connect to

Router(config)#ip host TEST x.x.x.x (where x.x.x.x is the remote host)

Then I configured a the login-string

Router(config)#login-string TEST $ <ascii escape character> Message
<ascii
escape character> <CR> $

I must be messing this up real bad as I cannot for the life of me get it
to
work. Any suggestions would be greatly appreciated.

Regards

John



This archive was generated by hypermail 2.1.4 : Wed Feb 01 2006 - 07:45:48 GMT-3