Access Control

In this case, you can configure autocommand for a user to Telnet to the router. autocommand will execute the required command and exit the session. This way the user will not be able to keep its Telnet session:

username testconfig privilege 15 password 7 15060E1F1029242A2E3A32 username testconfig autocommand show run !

line vty 0 4 privilege level 15 password 7 110A1016141D login local

Test by Telnetting from R1 to


User Access Verification

Username: testconfig Password: testconfig Building configuration... Current configuration : 7022 bytes !

! Last configuration change at 23:46:49 AEDT Sun Jan 19 2003

! NVRAM config last updated at 00:15:25 AEDT Mon Jan 20 2003 !

version 12.1

no service single-slot-reload-enable service timestamps debug uptime service timestamps log uptime service password-encryption !

hostname r3 !

snipped !

[Connection to closed by foreign host] r1#

As you can see, as soon as the show run command output finished, the session was closed.

Configure R5 Telnet access to permit host only:

access-list 3 permit

line vty 0 4 access-class 3 in password 7 13061E010803 login

^ Previous


Was this article helpful?

0 0
The Ultimate Computer Repair Guide

The Ultimate Computer Repair Guide

Read how to maintain and repair any desktop and laptop computer. This Ebook has articles with photos and videos that show detailed step by step pc repair and maintenance procedures. There are many links to online videos that explain how you can build, maintain, speed up, clean, and repair your computer yourself. Put the money that you were going to pay the PC Tech in your own pocket.

Get My Free Ebook

Post a comment