cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1272
Views
0
Helpful
1
Replies

how to auto enter priv EXEC mode upon login on ASR1002?

zulfadlisyazwan
Level 1
Level 1

Hi all,

my problem:how to straight away enter priv EXEC mode when authenticated for asr1002?? Using XR12000, it can be done but asr1002 have to input enable passwd...my username for asr1002 have privilege 15 and i want to enter priv EXEC mode straight away after login without asking the enable passwd.

thanks

zul

1 Reply 1

zulfadlisyazwan
Level 1
Level 1

hi all,

My environments are rancid-2.3.3, centOS 5.5, freeradius-1.1.3-1.6.el5, cisco ASR1002 and cisco XR12000.

my problem:how to straight away enter priv EXEC mode when authenticated for asr1002??this can be done for XR12000.

[rancid@nms2 ~]$ clogin asr1002
asr1002
spawn telnet asr1002
Trying x.x.2x.3...
telnet: connect to address x.x.2x.3: Connection refused
telnet: Unable to connect to remote host: Connection refused
spawn ssh -c 3des -x -l rancid asr1002
rancid@asr1002's password:

asr1002-PE01>

~~~~~~~~~~~~~~~~~~~~~~~~~~
[rancid@nms2 ~]$ clogin xr12000
xr12000
spawn telnet xr12000
Trying y.y.y.y...
telnet: connect to address y.y.y.y: Connection refused
telnet: Unable to connect to remote host: Connection refused
spawn ssh -c 3des -x -l rancid xr12000


*****************************************************************************************

           Unauthorised access and/or misuse of the system is prohibited and
             constitutes an offence under CO XYZ terms and conditions.

*****************************************************************************************


rancid@xr12000's password:
RP/0/8/CPU0:xr12000-P#
RP/0/8/CPU0:xr12000-P#

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Both routers have same config in rancid (.cloginrc):

add user asr1002 rancid       
add userpassword asr1002 mys3cpass
add autoenable asr1002 1


add user xr12000 rancid       
add userpassword xr12000 mys3cpass
add autoenable xr12000 1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Frm RADIUS user file: rancid user have privilege 15:

rancid        Auth-Type := System
              Service-Type = NAS-Prompt-User,
              cisco-avpair = "shell:priv-lvl=15"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Not  sure this prob from my rancid config or cisco router config but one  thing for sure is XR12000 works fine...when local login to XR it works automatic in  priv EXEC mode but for asr1002 can't...at asr1002, already configured for authentication for radius server...don't think its radius config cause local login also the same for asr1002...